}
}
- /* Take a partial turn */
p_ptr->energy_use = 50;
/* Take off the item */
if (amt <= 0) return;
}
-
- /* Take a partial turn */
p_ptr->energy_use = 50;
/* Drop (some of) the item */
static void do_cmd_refill_lamp(void)
{
OBJECT_IDX item;
-
object_type *o_ptr;
object_type *j_ptr;
-
concptr q, s;
/* Restrict the choices */
o_ptr = choose_object(&item, q, s, (USE_INVEN | USE_FLOOR));
if (!o_ptr) return;
- /* Take a partial turn */
p_ptr->energy_use = 50;
/* Access the lantern */
o_ptr = choose_object(&item, q, s, (USE_INVEN | USE_FLOOR));
if (!o_ptr) return;
- /* Take a partial turn */
p_ptr->energy_use = 50;
/* Access the primary torch */
/* Describe the location */
if ((y2 == y1) && (x2 == x1))
{
-#ifdef JP
- strcpy(tmp_val, "真上");
-#else
- tmp_val[0] = '\0';
-#endif
-
+ strcpy(tmp_val, _("真上", "\0"));
}
else
{
-#ifdef JP
sprintf(tmp_val, "%s%s",
- ((y2 < y1) ? "北" : (y2 > y1) ? "南" : ""),
- ((x2 < x1) ? "西" : (x2 > x1) ? "東" : ""));
-#else
- sprintf(tmp_val, "%s%s of",
- ((y2 < y1) ? " North" : (y2 > y1) ? " South" : ""),
- ((x2 < x1) ? " West" : (x2 > x1) ? " East" : ""));
-#endif
-
+ ((y2 < y1) ? _("北", " North") : (y2 > y1) ? _("南", " South") : ""),
+ ((x2 < x1) ? _("西", " West") : (x2 > x1) ? _("東", " East") : ""));
}
/* Prepare to ask which way to look */