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/item-entity.h"
7 #include "system/player-type-definition.h"
10 * @brief 所持/装備オブジェクトIDの部位表現を返す /
11 * Return a string mentioning how a given item is carried
12 * @param player_ptr プレイヤーへの参照ポインタ
13 * @param i 部位表現を求めるプレイヤーの所持/装備オブジェクトID
14 * @return 部位表現の文字列ポインタ
16 concptr mention_use(PlayerType *player_ptr, int i)
20 /* Examine the location */
24 p = player_ptr->heavy_wield[0]
26 : ((has_two_handed_weapons(player_ptr) && can_attack_with_main_hand(player_ptr)) ? " 両手" : (left_hander ? " 左手" : " 右手"));
30 p = player_ptr->heavy_wield[0] ? "Just lifting" : (can_attack_with_main_hand(player_ptr) ? "Wielding" : "On arm");
36 p = player_ptr->heavy_wield[1]
38 : ((has_two_handed_weapons(player_ptr) && can_attack_with_sub_hand(player_ptr)) ? " 両手" : (left_hander ? " 右手" : " 左手"));
42 p = player_ptr->heavy_wield[1] ? "Just lifting" : (can_attack_with_sub_hand(player_ptr) ? "Wielding" : "On arm");
47 p = (adj_str_hold[player_ptr->stat_index[A_STR]] < player_ptr->inventory_list[i].weight / 10) ? _("運搬中", "Just holding") : _("射撃用", "Shooting");
50 p = (left_hander ? _("左手指", "On left hand") : _("右手指", "On right hand"));
53 p = (left_hander ? _("右手指", "On right hand") : _("左手指", "On left hand"));
56 p = _(" 首", "Around neck");
59 p = _(" 光源", "Light source");
62 p = _(" 体", "On body");
65 p = _("体の上", "About body");
68 p = _(" 頭", "On head");
71 p = _(" 手", "On hands");
74 p = _(" 足", "On feet");
77 p = _("ザック", "In pack");
85 * @brief 所持/装備オブジェクトIDの現在の扱い方の状態表現を返す /
86 * Return a string describing how a given item is being worn.
87 * @param i 状態表現を求めるプレイヤーの所持/装備オブジェクトID
88 * @return 状態表現内容の文字列ポインタ
90 * Currently, only used for items in the equipment, inventory.
92 concptr describe_use(PlayerType *player_ptr, int i)
98 p = player_ptr->heavy_wield[0]
100 : ((has_two_handed_weapons(player_ptr) && can_attack_with_main_hand(player_ptr)) ? "両手に装備している"
101 : (left_hander ? "左手に装備している" : "右手に装備している"));
104 case INVEN_MAIN_HAND:
105 p = player_ptr->heavy_wield[0] ? "just lifting" : (can_attack_with_main_hand(player_ptr) ? "attacking monsters with" : "wearing on your arm");
111 p = player_ptr->heavy_wield[1]
113 : ((has_two_handed_weapons(player_ptr) && can_attack_with_sub_hand(player_ptr)) ? "両手に装備している"
114 : (left_hander ? "右手に装備している" : "左手に装備している"));
118 p = player_ptr->heavy_wield[1] ? "just lifting" : (can_attack_with_sub_hand(player_ptr) ? "attacking monsters with" : "wearing on your arm");
123 p = (adj_str_hold[player_ptr->stat_index[A_STR]] < player_ptr->inventory_list[i].weight / 10) ? _("持つだけで精一杯の", "just holding")
124 : _("射撃用に装備している", "shooting missiles with");
126 case INVEN_MAIN_RING:
127 p = (left_hander ? _("左手の指にはめている", "wearing on your left hand") : _("右手の指にはめている", "wearing on your right hand"));
130 p = (left_hander ? _("右手の指にはめている", "wearing on your right hand") : _("左手の指にはめている", "wearing on your left hand"));
133 p = _("首にかけている", "wearing around your neck");
136 p = _("光源にしている", "using to light the way");
139 p = _("体に着ている", "wearing on your body");
142 p = _("身にまとっている", "wearing on your back");
145 p = _("頭にかぶっている", "wearing on your head");
148 p = _("手につけている", "wearing on your hands");
151 p = _("足にはいている", "wearing on your feet");
154 p = _("ザックに入っている", "carrying in your pack");