#include "cmd-zaprod.h"
#include "cmd-zapwand.h"
+#include "player-item.h"
#include "object-hook.h"
/* Note that we are in "inventory" mode */
command_wrk = FALSE;
-#ifdef ALLOW_EASY_FLOOR
-
/* Note that we are in "inventory" mode */
if (easy_floor) command_wrk = (USE_INVEN);
-
-#endif /* ALLOW_EASY_FLOOR */
-
- /* Save screen */
screen_save();
/* Hack -- show empty slots */
/* Get a new command */
command_new = inkey();
-
- /* Load screen */
screen_load();
{
int wid, hgt;
- /* Get size */
Term_get_size(&wid, &hgt);
/* Reset stuff */
/* Note that we are in "equipment" mode */
command_wrk = TRUE;
-#ifdef ALLOW_EASY_FLOOR
-
/* Note that we are in "equipment" mode */
if (easy_floor) command_wrk = (USE_EQUIP);
-
-#endif /* ALLOW_EASY_FLOOR */
-
- /* Save the screen */
screen_save();
/* Hack -- show empty slots */
/* Get a new command */
command_new = inkey();
-
- /* Restore the screen */
screen_load();
{
int wid, hgt;
- /* Get size */
Term_get_size(&wid, &hgt);
/* Reset stuff */
}
p_ptr->energy_use = 100;
-
- /* Get local object */
q_ptr = &forge;
/* Obtain local object */
/* Describe the result */
object_desc(o_name, o_ptr, 0);
-
msg_format(act, o_name, index_to_label(slot));
-
/* Cursed! */
if (object_is_cursed(o_ptr))
{
/* HACK : Add the line to message buffer */
message_add(out_val);
p_ptr->window |= (PW_MESSAGE);
- window_stuff();
+ handle_stuff();
/* Get an acceptable answer */
while (TRUE)
}
- /* Describe the object */
old_number = o_ptr->number;
o_ptr->number = amt;
object_desc(o_name, o_ptr, 0);
/* Description */
object_desc(o_name, o_ptr, 0);
-
- /* Describe */
msg_format(_("%sを調べている...", "Examining %s..."), o_name);
/* Describe it fully */
if (!screen_object(o_ptr, SCROBJ_FORCE_DETAIL)) msg_print(_("特に変わったところはないようだ。", "You see nothing special."));
o_ptr = &o_list[0 - item];
}
-
/* Take a partial turn */
p_ptr->energy_use = 50;
/* Refuel */
j_ptr->xtra4 += o_ptr->xtra4;
-
msg_print(_("ランプに油を注いだ。", "You fuel your lamp."));
- /* Comment */
if ((o_ptr->name2 == EGO_LITE_DARKNESS) && (j_ptr->xtra4 > 0))
{
j_ptr->xtra4 = 0;
cptr q, s;
-
/* Restrict the choices */
item_tester_hook = item_tester_refill_torch;
-#ifdef JP
- q = "どの松明で明かりを強めますか? ";
- s = "他に松明がない。";
-#else
- q = "Refuel with which torch? ";
- s = "You have no extra torches.";
-#endif
+ q = _("どの松明で明かりを強めますか? ", "Refuel with which torch? ");
+ s = _("他に松明がない。", "You have no extra torches.");
if (!get_item(&item, q, s, (USE_INVEN | USE_FLOOR))) return;
msg_print(_("松明を結合した。", "You combine the torches."));
- /* Comment */
if ((o_ptr->name2 == EGO_LITE_DARKNESS) && (j_ptr->xtra4 > 0))
{
j_ptr->xtra4 = 0;
*/
void do_cmd_look(void)
{
- /*TEST*/
p_ptr->window |= PW_MONSTER_LIST;
- window_stuff();
- /*TEST*/
+ handle_stuff();
/* Look around */
if (target_set(TARGET_LOOK))
int wid, hgt;
- /* Get size */
get_screen_size(&wid, &hgt);
p_ptr->update |= (PU_MONSTERS);
- /* Redraw map */
p_ptr->redraw |= (PR_MAP);
p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
-
- /* Handle stuff */
handle_stuff();
}
{
if (sym == ident_info[i][0]) break;
}
-
- /* Describe */
if (sym == KTRL('A'))
{
all = TRUE;
return;
}
-
/* Prompt */
put_str(_("思い出を見ますか? (k:殺害順/y/n): ", "Recall details? (k/y/n): "), 0, _(36, 40));
-
/* Query */
query = inkey();
/* Hack -- Auto-recall */
monster_race_track(r_idx);
-
- /* Hack -- Handle stuff */
handle_stuff();
/* Interact */
/* Recall */
if (recall)
{
- /* Save the screen */
screen_save();
/* Recall on screen */
}
item_tester_no_ryoute = TRUE;
- /* Prepare the hook */
item_tester_hook = item_tester_hook_use;
q = _("どれを使いますか?", "Use which item? ");