1 #include "inventory/inventory-describer.h"
2 #include "game-option/birth-options.h"
3 #include "inventory/inventory-slot-types.h"
4 #include "player/player-status-flags.h"
5 #include "player/player-status-table.h"
6 #include "system/object-type-definition.h"
9 * @brief 所持/装備オブジェクトIDの部位表現を返す /
10 * Return a string mentioning how a given item is carried
11 * @param owner_ptr プレーヤーへの参照ポインタ
12 * @param i 部位表現を求めるプレイヤーの所持/装備オブジェクトID
13 * @return 部位表現の文字列ポインタ
15 concptr mention_use(player_type *owner_ptr, int i)
19 /* Examine the location */
23 p = owner_ptr->heavy_wield[0]
25 : ((has_two_handed_weapons(owner_ptr) && can_attack_with_main_hand(owner_ptr)) ? " 両手" : (left_hander ? " 左手" : " 右手"));
29 p = owner_ptr->heavy_wield[0] ? "Just lifting" : (can_attack_with_main_hand(owner_ptr) ? "Wielding" : "On arm");
35 p = owner_ptr->heavy_wield[1]
37 : ((has_two_handed_weapons(owner_ptr) && can_attack_with_sub_hand(owner_ptr)) ? " 両手" : (left_hander ? " 右手" : " 左手"));
41 p = owner_ptr->heavy_wield[1] ? "Just lifting" : (can_attack_with_sub_hand(owner_ptr) ? "Wielding" : "On arm");
46 p = (adj_str_hold[owner_ptr->stat_ind[A_STR]] < owner_ptr->inventory_list[i].weight / 10) ? _("運搬中", "Just holding") : _("射撃用", "Shooting");
49 p = (left_hander ? _("左手指", "On left hand") : _("右手指", "On right hand"));
52 p = (left_hander ? _("右手指", "On right hand") : _("左手指", "On left hand"));
55 p = _(" 首", "Around neck");
58 p = _(" 光源", "Light source");
61 p = _(" 体", "On body");
64 p = _("体の上", "About body");
67 p = _(" 頭", "On head");
70 p = _(" 手", "On hands");
73 p = _(" 足", "On feet");
76 p = _("ザック", "In pack");
84 * @brief 所持/装備オブジェクトIDの現在の扱い方の状態表現を返す /
85 * Return a string describing how a given item is being worn.
86 * @param i 状態表現を求めるプレイヤーの所持/装備オブジェクトID
87 * @return 状態表現内容の文字列ポインタ
89 * Currently, only used for items in the equipment, inventory.
91 concptr describe_use(player_type *owner_ptr, int i)
97 p = owner_ptr->heavy_wield[0]
99 : ((has_two_handed_weapons(owner_ptr) && can_attack_with_main_hand(owner_ptr)) ? "両手に装備している"
100 : (left_hander ? "左手に装備している" : "右手に装備している"));
103 case INVEN_MAIN_HAND:
104 p = owner_ptr->heavy_wield[0] ? "just lifting" : (can_attack_with_main_hand(owner_ptr) ? "attacking monsters with" : "wearing on your arm");
110 p = owner_ptr->heavy_wield[1]
112 : ((has_two_handed_weapons(owner_ptr) && can_attack_with_sub_hand(owner_ptr)) ? "両手に装備している"
113 : (left_hander ? "右手に装備している" : "左手に装備している"));
117 p = owner_ptr->heavy_wield[1] ? "just lifting" : (can_attack_with_sub_hand(owner_ptr) ? "attacking monsters with" : "wearing on your arm");
122 p = (adj_str_hold[owner_ptr->stat_ind[A_STR]] < owner_ptr->inventory_list[i].weight / 10) ? _("持つだけで精一杯の", "just holding")
123 : _("射撃用に装備している", "shooting missiles with");
125 case INVEN_MAIN_RING:
126 p = (left_hander ? _("左手の指にはめている", "wearing on your left hand") : _("右手の指にはめている", "wearing on your right hand"));
129 p = (left_hander ? _("右手の指にはめている", "wearing on your right hand") : _("左手の指にはめている", "wearing on your left hand"));
132 p = _("首にかけている", "wearing around your neck");
135 p = _("光源にしている", "using to light the way");
138 p = _("体に着ている", "wearing on your body");
141 p = _("身にまとっている", "wearing on your back");
144 p = _("頭にかぶっている", "wearing on your head");
147 p = _("手につけている", "wearing on your hands");
150 p = _("足にはいている", "wearing on your feet");
153 p = _("ザックに入っている", "carrying in your pack");