Refactor messages.
object_type *o_ptr;
cptr q, s;
- /* Get an item */
#ifdef JP
q = "どのアイテムを登録しますか? ";
s = "アイテムを持っていない。";
object_type *o_ptr;
cptr q, s;
- /* Get an item */
#ifdef JP
q = "どのアイテムを検索しますか? ";
s = "アイテムを持っていない。";
return (back ? -1 : 1);
case KTRL('i'):
- /* Get an item */
return get_object_for_search(o_handle, search_strp);
case KTRL('l'):
prt(_("修復には材料となるもう1つの武器が必要です。", "Hand one material weapon to repair a broken weapon."), row, 2);
prt(_("材料に使用した武器はなくなります!", "The material weapon will disappear after repairing!!"), row+1, 2);
- /* Get an item */
q = _("どの折れた武器を修復しますか?", "Repair which broken weapon? ");
s = _("修復できる折れた武器がありません。", "You have no broken weapon to repair.");
object_desc(basenm, o_ptr, OD_NAME_ONLY);
prt(format(_("修復する武器 : %s", "Repairing: %s"), basenm), row+3, 2);
- /* Get an item */
q = _("材料となる武器は?", "Which weapon for material? ");
s = _("材料となる武器がありません。", "You have no material to repair.");
item_tester_no_ryoute = TRUE;
- /* Get an item */
q = _("どのアイテムを改良しますか?", "Improve which item? ");
s = _("改良できるものがありません。", "You have nothing to improve.");
/* Only accept legal items */
item_tester_hook = item_tester_hook_recharge;
- /* Get an item */
q = _("どのアイテムに魔力を充填しますか? ", "Recharge which item? ");
s = _("魔力を充填すべきアイテムがない。", "You have nothing to recharge.");
if (!get_item(&item, q, s, (USE_INVEN | USE_FLOOR))) return;
/* Prepare the hook */
item_tester_hook = item_tester_hook_activate;
- /* Get an item */
q = _("どのアイテムを始動させますか? ", "Activate which item? ");
s = _("始動できるアイテムを装備していない。", "You have nothing to activate.");
/* Restrict choices to food */\r
item_tester_hook = item_tester_hook_eatable;\r
\r
- /* Get an item */\r
q = _("どれを食べますか? ", "Eat which item? ");\r
s = _("食べ物がない。", "You have nothing to eat.");\r
\r
/* Restrict the choices */
item_tester_hook = item_tester_hook_wear;
- /* Get an item */
q = _("どれを装備しますか? ", "Wear/Wield which item? ");
s = _("装備可能なアイテムがない。", "You have nothing you can wear or wield.");
item_tester_no_ryoute = TRUE;
- /* Get an item */
q = _("どれを装備からはずしますか? ", "Take off which item? ");
s = _("はずせる装備がない。", "You are not wearing anything to take off.");
}
item_tester_no_ryoute = TRUE;
- /* Get an item */
q = _("どのアイテムを落としますか? ", "Drop which item? ");
s = _("落とせるアイテムを持っていない。", "You have nothing to drop.");
/* Hack -- force destruction */
if (command_arg > 0) force = TRUE;
- /* Get an item */
q = _("どのアイテムを壊しますか? ", "Destroy which item? ");
s = _("壊せるアイテムを持っていない。", "You have nothing to destroy.");
item_tester_no_ryoute = TRUE;
- /* Get an item */
q = _("どのアイテムを調べますか? ", "Examine which item? ");
s = _("調べられるアイテムがない。", "You have nothing to examine.");
cptr q, s;
item_tester_no_ryoute = TRUE;
- /* Get an item */
q = _("どのアイテムの銘を消しますか? ", "Un-inscribe which item? ");
s = _("銘を消せるアイテムがない。", "You have nothing to un-inscribe.");
cptr q, s;
item_tester_no_ryoute = TRUE;
- /* Get an item */
q = _("どのアイテムに銘を刻みますか? ", "Inscribe which item? ");
s = _("銘を刻めるアイテムがない。", "You have nothing to inscribe.");
/* Restrict the choices */
item_tester_hook = item_tester_refill_lantern;
- /* Get an item */
#ifdef JP
q = "どの油つぼから注ぎますか? ";
s = "油つぼがない。";
/* Restrict the choices */
item_tester_hook = item_tester_refill_torch;
- /* Get an item */
#ifdef JP
q = "どの松明で明かりを強めますか? ";
s = "他に松明がない。";
/* Prepare the hook */
item_tester_hook = item_tester_hook_use;
- /* Get an item */
q = _("どれを使いますか?", "Use which item? ");
s = _("使えるものがありません。", "You have nothing to use.");
/* Restrict choices to potions */\r
item_tester_hook = item_tester_hook_quaff;\r
\r
- /* Get an item */\r
q = _("どの薬を飲みますか? ", "Quaff which potion? ");\r
s = _("飲める薬がない。", "You have no potions to quaff.");\r
\r
/* Restrict choices to scrolls */\r
item_tester_hook = item_tester_hook_readable;\r
\r
- /* Get an item */\r
q = _("どの巻物を読みますか? ", "Read which scroll? ");\r
s = _("読める巻物がない。", "You have no scrolls to read.");\r
\r
/* Restrict choices to wands */\r
item_tester_tval = TV_STAFF;\r
\r
- /* Get an item */\r
q = _("どの杖を使いますか? ", "Use which staff? ");\r
s = _("使える杖がない。", "You have no staff to use.");\r
\r
/* Restrict choices to rods */
item_tester_tval = TV_ROD;
- /* Get an item */
q = _("どのロッドを振りますか? ", "Zap which rod? ");
s = _("使えるロッドがない。", "You have no rod to zap.");
void do_cmd_aim_wand(void)
{
OBJECT_IDX item;
- cptr q, s;
+ cptr q, s;
/* Restrict choices to wands */
item_tester_tval = TV_WAND;
set_action(ACTION_NONE);
}
- /* Get an item */
q = _("どの魔法棒で狙いますか? ", "Aim which wand? ");
s = _("使える魔法棒がない。", "You have no wand to aim.");
-
if (!get_item(&item, q, s, (USE_INVEN | USE_FLOOR))) return;
- /* Aim the wand */
do_cmd_aim_wand_aux(item);
}
/* Require proper missile */
item_tester_tval = p_ptr->tval_ammo;
- /* Get an item */
q = _("どれを撃ちますか? ", "Fire which item? ");
s = _("発射されるアイテムがありません。", "You have nothing to fire.");
if (!get_item(&item, q, s, (USE_INVEN | USE_FLOOR)))
}
else
{
- /* Get an item */
q = _("どのアイテムを投げますか? ", "Throw which item? ");
s = _("投げるアイテムがない。", "You have nothing to throw.");
if (!get_item(&item, q, s, (USE_INVEN | USE_FLOOR | USE_EQUIP)))
if (p_ptr->realm2 == REALM_NONE) item_tester_tval = mp_ptr->spell_book;
else item_tester_hook = item_tester_learn_spell;
- /* Get an item */
q = _("どの本を読みますか? ", "Browse which book? ");
s = _("読める本がない。", "You have no books that you can read.");
if (p_ptr->realm2 == REALM_NONE) item_tester_tval = mp_ptr->spell_book;
else item_tester_hook = item_tester_learn_spell;
- /* Get an item */
q = _("どの本から学びますか? ", "Study which book? ");
s = _("読める本がない。", "You have no books that you can read.");
/* Restrict choices to spell books */
item_tester_tval = mp_ptr->spell_book;
- /* Get an item */
q = _("どの呪文書を使いますか? ", "Use which book? ");
s = _("呪文書がない!", "You have no spell books!");
msg_format(_("%sは消え去った!", "%^s disappears!"), m_name);
}
-
delete_monster_idx(i);
}
}
{
int tries = 0;
POSITION dis = 1;
- int oy = p_ptr->y;
- int ox = p_ptr->x;
+ POSITION oy = p_ptr->y;
+ POSITION ox = p_ptr->x;
MONSTER_IDX m_idx = cave[oy][ox].m_idx;
/* Nothing to do if no monster */
monster_type *m_ptr;
/* Pick a (possibly illegal) location */
- int ny = rand_spread(oy, dis);
- int nx = rand_spread(ox, dis);
+ POSITION ny = rand_spread(oy, dis);
+ POSITION nx = rand_spread(ox, dis);
tries++;
cave_type *c_ptr = NULL;
feature_type *f_ptr;
saved_floor_type *sf_ptr;
- int quest_r_idx = 0;
+ MONRACE_IDX quest_r_idx = 0;
DUNGEON_IDX i;
/* Preserve pets and prepare to take these to next floor */
item_tester_tval = TV_HISSATSU_BOOK;
- /* Get an item */
q = _("どの書から学びますか? ", "Study which book? ");
s = _("読める書がない。", "You have no books that you can read.");
item_tester_hook = object_is_weapon_armour_ammo;
item_tester_no_ryoute = TRUE;
- /* Get an item */
q = _("どのアイテムから抽出しますか?", "Extract from which item? ");
s = _("抽出できるアイテムがありません。", "You have nothing you can extract from.");
item_tester_hook = object_is_weapon_armour_ammo;
item_tester_no_ryoute = TRUE;
- /* Get an item */
q = _("どのアイテムを改良しますか?", "Improve which item? ");
s = _("改良できるアイテムがありません。", "You have nothing to improve.");
item_tester_hook = object_is_smith;
- /* Get an item */
q = _("どのアイテムのエッセンスを消去しますか?", "Remove from which item? ");
s = _("エッセンスを付加したアイテムがありません。", "You have nothing to remove essence.");
item_tester_hook = item_tester_hook_convertible;
- /* Get an item */
q = _("どのアイテムから作りますか? ", "Convert which item? ");
s = _("材料を持っていない。", "You have no item to convert.");
if (!get_item(&item, q, s, (USE_INVEN | USE_FLOOR))) return FALSE;
item_tester_hook = item_tester_hook_convertible;
- /* Get an item */
q = _("どのアイテムから作りますか? ", "Convert which item? ");
s = _("材料を持っていない。", "You have no item to convert.");
if (!get_item(&item, q, s, (USE_INVEN | USE_FLOOR))) return FALSE;
/* Only accept legal items */
item_tester_hook = item_tester_hook_recharge;
- /* Get an item */
q = _("どのアイテムの魔力を取り込みますか? ", "Gain power of which item? ");
s = _("魔力を取り込めるアイテムがない。", "You have nothing to gain power.");
bool okay = FALSE;
item_tester_no_ryoute = TRUE;
- /* Get an item */
q = _("どのアイテムを調べますか?", "Meditate on which item? ");
s = _("調べるアイテムがありません。", "You have nothing appropriate.");
item_tester_hook = object_allow_enchant_melee_weapon;
item_tester_no_ryoute = TRUE;
- /* Get an item */
q = _("どの武器を強化しますか? ", "Enchant which weapon? ");
s = _("強化できる武器がない。", "You have nothing to enchant.");
/* Hack -- force destruction */
if (command_arg > 0) force = TRUE;
- /* Get an item */
q = _("どのアイテムを金に変えますか?", "Turn which item to gold? ");
s = _("金に変えられる物がありません。", "You have nothing to turn to gold.");
/* Enchant armor if requested */
if (num_ac) item_tester_hook = object_is_armour;
- /* Get an item */
q = _("どのアイテムを強化しますか? ", "Enchant which item? ");
s = _("強化できるアイテムがない。", "You have nothing to enchant.");
/* Enchant weapon/armour */
item_tester_hook = item_tester_hook_nameless_weapon_armour;
- /* Get an item */
q = _("どのアイテムを強化しますか? ", "Enchant which item? ");
s = _("強化できるアイテムがない。", "You have nothing to enchant.");
q = _("すべて鑑定済みです。 ", "All items are identified. ");
}
- /* Get an item */
s = _("鑑定するべきアイテムがない。", "You have nothing to identify.");
if (!get_item(&item, q, s, (USE_EQUIP | USE_INVEN | USE_FLOOR))) return (FALSE);
if (only_equip) item_tester_hook = object_is_weapon_armour_ammo;
item_tester_no_ryoute = TRUE;
- /* Get an item */
q = _("どれを使いますか?", "Use which item? ");
s = _("使えるものがありません。", "You have nothing you can use.");
q = _("すべて*鑑定*済みです。 ", "All items are *identified*. ");
}
- /* Get an item */
s = _("*鑑定*するべきアイテムがない。", "You have nothing to *identify*.");
if (!get_item(&item, q, s, (USE_EQUIP | USE_INVEN | USE_FLOOR))) return (FALSE);
/* Only accept legal items */
item_tester_hook = item_tester_hook_recharge;
- /* Get an item */
q = _("どのアイテムに魔力を充填しますか? ", "Recharge which item? ");
s = _("魔力を充填すべきアイテムがない。", "You have nothing to recharge.");
/* Bless only weapons */
item_tester_hook = object_is_weapon;
- /* Get an item */
q = _("どのアイテムを祝福しますか?", "Bless which weapon? ");
s = _("祝福できる武器がありません。", "You have weapon to bless.");
/* Assume enchant weapon */
item_tester_tval = TV_SHIELD;
- /* Get an item */
q = _("どの盾を磨きますか?", "Pulish which weapon? ");
s = _("磨く盾がありません。", "You have weapon to pulish.");
/* Select a piece of armour */
item_tester_hook = object_is_armour;
- /* Get an item */
q = _("どの防具に錆止めをしますか?", "Rustproof which piece of armour? ");
s = _("錆止めできるものがありません。", "You have nothing to rustproof.");
item_tester_hook = item_tester_hook_recharge;
- /* Get an item */
q = _("どのアイテムから魔力を吸収しますか?", "Drain which item? ");
s = _("魔力を吸収できるアイテムがありません。", "You have nothing to drain.");
/* Only allow items the store will buy */
item_tester_hook = store_will_buy;
- /* Get an item */
/* 我が家でおかしなメッセージが出るオリジナルのバグを修正 */
if (cur_store_num == STORE_HOME)
{
cptr q, s;
item_tester_no_ryoute = TRUE;
- /* Get an item */
q = "Play with which object? ";
s = "You have nothing to play with.";
if (!get_item(&item, q, s, (USE_EQUIP | USE_INVEN | USE_FLOOR))) return;