4 * Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke
6 * This software may be copied and distributed for educational, research,
7 * and not for profit purposes provided that this copyright and statement
8 * are included in all such copies. Other copyrights may also apply.
11 /* Purpose: Object code, part 1 */
21 * Reset the "visual" lists
23 * This involves resetting various things to their "default" state.
25 * If the "prefs" flag is TRUE, then we will also load the appropriate
26 * "user pref file" based on the current setting of the "use_graphics"
27 * flag. This is useful for switching "graphics" on/off.
29 * The features, objects, and monsters, should all be encoded in the
30 * relevant "font.pref" and/or "graf.prf" files. XXX XXX XXX
32 * The "prefs" parameter is no longer meaningful. XXX XXX XXX
34 void reset_visuals(void)
38 /* Extract some info about terrain features */
39 for (i = 0; i < max_f_idx; i++)
41 feature_type *f_ptr = &f_info[i];
43 /* Assume we will use the underlying values */
44 f_ptr->x_attr = f_ptr->d_attr;
45 f_ptr->x_char = f_ptr->d_char;
48 /* Extract default attr/char code for objects */
49 for (i = 0; i < max_k_idx; i++)
51 object_kind *k_ptr = &k_info[i];
53 /* Default attr/char */
54 k_ptr->x_attr = k_ptr->d_attr;
55 k_ptr->x_char = k_ptr->d_char;
58 /* Extract default attr/char code for monsters */
59 for (i = 0; i < max_r_idx; i++)
61 monster_race *r_ptr = &r_info[i];
63 /* Default attr/char */
64 r_ptr->x_attr = r_ptr->d_attr;
65 r_ptr->x_char = r_ptr->d_char;
72 /* Process "graf.prf" */
73 process_pref_file("graf.prf");
75 /* Access the "character" pref file */
76 sprintf(buf, "graf-%s.prf", player_base);
78 /* Process "graf-<playername>.prf" */
79 process_pref_file(buf);
87 /* Process "font.prf" */
88 process_pref_file("font.prf");
90 /* Access the "character" pref file */
91 sprintf(buf, "font-%s.prf", player_base);
93 /* Process "font-<playername>.prf" */
94 process_pref_file(buf);
100 * Obtain the "flags" for an item
102 void object_flags(object_type *o_ptr, u32b flgs[TR_FLAG_SIZE])
104 object_kind *k_ptr = &k_info[o_ptr->k_idx];
108 for (i = 0; i < TR_FLAG_SIZE; i++)
109 flgs[i] = k_ptr->flags[i];
114 artifact_type *a_ptr = &a_info[o_ptr->name1];
116 for (i = 0; i < TR_FLAG_SIZE; i++)
117 flgs[i] = a_ptr->flags[i];
123 ego_item_type *e_ptr = &e_info[o_ptr->name2];
125 for (i = 0; i < TR_FLAG_SIZE; i++)
126 flgs[i] |= e_ptr->flags[i];
128 if ((o_ptr->name2 == EGO_LITE_AURA_FIRE) && !o_ptr->xtra4 && (o_ptr->sval <= SV_LITE_LANTERN))
130 remove_flag(flgs, TR_SH_FIRE);
132 else if ((o_ptr->name2 == EGO_LITE_INFRA) && !o_ptr->xtra4 && (o_ptr->sval <= SV_LITE_LANTERN))
134 remove_flag(flgs, TR_INFRA);
136 else if ((o_ptr->name2 == EGO_LITE_EYE) && !o_ptr->xtra4 && (o_ptr->sval <= SV_LITE_LANTERN))
138 remove_flag(flgs, TR_RES_BLIND);
139 remove_flag(flgs, TR_SEE_INVIS);
143 /* Random artifact ! */
144 for (i = 0; i < TR_FLAG_SIZE; i++)
145 flgs[i] |= o_ptr->art_flags[i];
147 if (item_tester_hook_smith(o_ptr))
149 int add = o_ptr->xtra3 - 1;
151 if (add < TR_FLAG_MAX)
155 else if (add == ESSENCE_TMP_RES_ACID)
157 add_flag(flgs, TR_RES_ACID);
158 add_flag(flgs, TR_ACTIVATE);
160 else if (add == ESSENCE_TMP_RES_ELEC)
162 add_flag(flgs, TR_RES_ELEC);
163 add_flag(flgs, TR_ACTIVATE);
165 else if (add == ESSENCE_TMP_RES_FIRE)
167 add_flag(flgs, TR_RES_FIRE);
168 add_flag(flgs, TR_ACTIVATE);
170 else if (add == ESSENCE_TMP_RES_COLD)
172 add_flag(flgs, TR_RES_COLD);
173 add_flag(flgs, TR_ACTIVATE);
175 else if (add == ESSENCE_SH_FIRE)
177 add_flag(flgs, TR_RES_FIRE);
178 add_flag(flgs, TR_SH_FIRE);
180 else if (add == ESSENCE_SH_ELEC)
182 add_flag(flgs, TR_RES_ELEC);
183 add_flag(flgs, TR_SH_ELEC);
185 else if (add == ESSENCE_SH_COLD)
187 add_flag(flgs, TR_RES_COLD);
188 add_flag(flgs, TR_SH_COLD);
190 else if (add == ESSENCE_RESISTANCE)
192 add_flag(flgs, TR_RES_ACID);
193 add_flag(flgs, TR_RES_ELEC);
194 add_flag(flgs, TR_RES_FIRE);
195 add_flag(flgs, TR_RES_COLD);
197 else if (add == TR_IMPACT)
199 add_flag(flgs, TR_ACTIVATE);
207 * Obtain the "flags" for an item which are known to the player
209 void object_flags_known(object_type *o_ptr, u32b flgs[TR_FLAG_SIZE])
214 object_kind *k_ptr = &k_info[o_ptr->k_idx];
217 for (i = 0; i < TR_FLAG_SIZE; i++)
220 if (!object_aware_p(o_ptr)) return;
223 for (i = 0; i < TR_FLAG_SIZE; i++)
224 flgs[i] = k_ptr->flags[i];
226 /* Must be identified */
227 if (!object_known_p(o_ptr)) return;
229 /* Ego-item (known basic flags) */
232 ego_item_type *e_ptr = &e_info[o_ptr->name2];
234 for (i = 0; i < TR_FLAG_SIZE; i++)
235 flgs[i] |= e_ptr->flags[i];
237 if ((o_ptr->name2 == EGO_LITE_AURA_FIRE) && !o_ptr->xtra4 && (o_ptr->sval <= SV_LITE_LANTERN))
239 remove_flag(flgs, TR_SH_FIRE);
241 else if ((o_ptr->name2 == EGO_LITE_INFRA) && !o_ptr->xtra4 && (o_ptr->sval <= SV_LITE_LANTERN))
243 remove_flag(flgs, TR_INFRA);
245 else if ((o_ptr->name2 == EGO_LITE_EYE) && !o_ptr->xtra4 && (o_ptr->sval <= SV_LITE_LANTERN))
247 remove_flag(flgs, TR_RES_BLIND);
248 remove_flag(flgs, TR_SEE_INVIS);
253 #ifdef SPOIL_ARTIFACTS
254 /* Full knowledge for some artifacts */
255 if (artifact_p(o_ptr) || o_ptr->art_name) spoil = TRUE;
256 #endif /* SPOIL_ARTIFACTS */
258 #ifdef SPOIL_EGO_ITEMS
259 /* Full knowledge for some ego-items */
260 if (ego_item_p(o_ptr)) spoil = TRUE;
261 #endif /* SPOIL_EGO_ITEMS */
263 /* Need full knowledge or spoilers */
264 if (spoil || (o_ptr->ident & IDENT_MENTAL))
269 artifact_type *a_ptr = &a_info[o_ptr->name1];
271 for (i = 0; i < TR_FLAG_SIZE; i++)
272 flgs[i] = a_ptr->flags[i];
275 /* Random artifact ! */
276 for (i = 0; i < TR_FLAG_SIZE; i++)
277 flgs[i] |= o_ptr->art_flags[i];
280 if (item_tester_hook_smith(o_ptr))
282 int add = o_ptr->xtra3 - 1;
284 if (add < TR_FLAG_MAX)
288 else if (add == ESSENCE_TMP_RES_ACID)
290 add_flag(flgs, TR_RES_ACID);
292 else if (add == ESSENCE_TMP_RES_ELEC)
294 add_flag(flgs, TR_RES_ELEC);
296 else if (add == ESSENCE_TMP_RES_FIRE)
298 add_flag(flgs, TR_RES_FIRE);
300 else if (add == ESSENCE_TMP_RES_COLD)
302 add_flag(flgs, TR_RES_COLD);
304 else if (add == ESSENCE_SH_FIRE)
306 add_flag(flgs, TR_RES_FIRE);
307 add_flag(flgs, TR_SH_FIRE);
309 else if (add == ESSENCE_SH_ELEC)
311 add_flag(flgs, TR_RES_ELEC);
312 add_flag(flgs, TR_SH_ELEC);
314 else if (add == ESSENCE_SH_COLD)
316 add_flag(flgs, TR_RES_COLD);
317 add_flag(flgs, TR_SH_COLD);
319 else if (add == ESSENCE_RESISTANCE)
321 add_flag(flgs, TR_RES_ACID);
322 add_flag(flgs, TR_RES_ELEC);
323 add_flag(flgs, TR_RES_FIRE);
324 add_flag(flgs, TR_RES_COLD);
331 * Hack -- describe an item currently in a store's inventory
332 * This allows an item to *look* like the player is "aware" of it
334 void object_desc_store(char *buf, object_type *o_ptr, int pref, int mode)
336 /* Save the "aware" flag */
337 bool hack_aware = object_aware_p(o_ptr);
339 /* Save the "known" flag */
340 bool hack_known = (o_ptr->ident & (IDENT_KNOWN)) ? TRUE : FALSE;
343 /* Set the "known" flag */
344 o_ptr->ident |= (IDENT_KNOWN);
346 /* Force "aware" for description */
347 k_info[o_ptr->k_idx].aware = TRUE;
350 /* Describe the object */
351 object_desc(buf, o_ptr, pref, mode);
354 /* Restore "aware" flag */
355 k_info[o_ptr->k_idx].aware = hack_aware;
357 /* Clear the known flag */
358 if (!hack_known) o_ptr->ident &= ~(IDENT_KNOWN);
365 * Determine the "Activation" (if any) for an artifact
366 * Return a string, or NULL for "no activation"
368 cptr item_activation(object_type *o_ptr)
370 u32b flgs[TR_FLAG_SIZE];
372 /* Extract the flags */
373 object_flags(o_ptr, flgs);
375 /* Require activation ability */
377 if (!(have_flag(flgs, TR_ACTIVATE))) return ("¤Ê¤·");
379 if (!(have_flag(flgs, TR_ACTIVATE))) return ("nothing");
385 * We need to deduce somehow that it is a random artifact -- one
386 * problem: It could be a random artifact which has NOT YET received
387 * a name. Thus we eliminate other possibilities instead of checking
391 if (!(o_ptr->name1) &&
396 switch (o_ptr->xtra2)
401 return "ÂÀÍÛ¸÷Àþ : 10 ¥¿¡¼¥óËè";
403 return "beam of sunlight every 10 turns";
410 return "¥Þ¥¸¥Ã¥¯¡¦¥ß¥µ¥¤¥ë(2d6) : 2 ¥¿¡¼¥óËè";
412 return "magic missile (2d6) every 2 turns";
419 return "°½±À (12), Ⱦ·Â 3 , 4+d4 ¥¿¡¼¥óËè";
421 return "stinking cloud (12), rad. 3, every 4+d4 turns";
428 return "¥µ¥ó¥À¡¼¡¦¥Ü¥ë¥È(4d8) : 5+d5 ¥¿¡¼¥óËè";
430 return "lightning bolt (4d8) every 5+d5 turns";
437 return "¥¢¥·¥Ã¥É¡¦¥Ü¥ë¥È(5d8) : 6+d6 ¥¿¡¼¥óËè";
439 return "acid bolt (5d8) every 6+d6 turns";
446 return "¥¢¥¤¥¹¡¦¥Ü¥ë¥È(6d8) : 7+d7 ¥¿¡¼¥óËè";
448 return "frost bolt (6d8) every 7+d7 turns";
455 return "¥Õ¥¡¥¤¥¢¡¦¥Ü¥ë¥È(9d8) : 8+d8 ¥¿¡¼¥óËè";
457 return "fire bolt (9d8) every 8+d8 turns";
464 return "¥³¡¼¥ë¥É¡¦¥Ü¡¼¥ë (48) : 400 ¥¿¡¼¥óËè";
466 return "ball of cold (48) every 400 turns";
473 return "¥Õ¥¡¥¤¥¢¡¦¥Ü¡¼¥ë (72) : 400 ¥¿¡¼¥óËè";
475 return "ball of fire (72) every 400 turns";
482 return "¥Ò¥Ã¥È¥Ý¥¤¥ó¥ÈµÛ¼ý (100) : 100+d100 ¥¿¡¼¥óËè";
484 return "drain life (100) every 100+d100 turns";
491 return "¥³¡¼¥ë¥É¡¦¥Ü¡¼¥ë (100) : 300 ¥¿¡¼¥óËè";
493 return "ball of cold (100) every 300 turns";
500 return "¥µ¥ó¥À¡¼¡¦¥Ü¡¼¥ë (100) : 500 ¥¿¡¼¥óËè";
502 return "ball of lightning (100) every 500 turns";
509 return "¥Ò¥Ã¥È¥Ý¥¤¥ó¥ÈµÛ¼ý(120) : 400 ¥¿¡¼¥óËè";
511 return "drain life (120) every 400 turns";
518 return "µÛ·ì¥É¥ì¥¤¥ó (3*50) : 400 ¥¿¡¼¥óËè";
520 return "vampiric drain (3*50) every 400 turns";
527 return "Ìð (150) : 90+d90 ¥¿¡¼¥óËè";
529 return "arrows (150) every 90+d90 turns";
536 return "¥Õ¥¡¥¤¥¢¡¦¥Ü¡¼¥ë (120) : 225+d225 ¥¿¡¼¥óËè";
538 return "fire ball (120) every 225+d225 turns";
545 return "¥³¡¼¥ë¥É¡¦¥Ü¡¼¥ë (200) : 325+d325 ¥¿¡¼¥óËè";
547 return "ball of cold (200) every 325+d325 turns";
554 return "¥µ¥ó¥À¡¼¡¦¥Ü¡¼¥ë (250) : 425+d425 ¥¿¡¼¥óËè";
556 return "ball of lightning (250) every 425+d425 turns";
563 return "¥«¥Þ¥¤¥¿¥Á : 250 ¥¿¡¼¥óËè";
565 return "whirlwind attack every 250 turns";
572 return "µÛ·ì¥É¥ì¥¤¥ó (3*100) : 400 ¥¿¡¼¥óËè";
574 return "vampiric drain (3*100) every 400 turns";
581 return "call chaos : 350 ¥¿¡¼¥óËè"; /*nuke me*/
583 return "call chaos every 350 turns";
590 return "¥í¥±¥Ã¥È (120+level) : 400 ¥¿¡¼¥óËè";
592 return "launch rocket (120+level) every 400 turns";
599 return "¼Ù°Â໶ (level*5) : 300+d300 ¥¿¡¼¥óËè";
601 return "dispel evil (level*5) every 300+d300 turns";
608 return "¥¨¥ì¥á¥ó¥È¤Î¥Ö¥ì¥¹ (300) : 500 ¥¿¡¼¥óËè";
610 return "elemental breath (300) every 500 turns";
617 return "Á±ÎÉÂ໶ (level*5) : 300+d300 ¥¿¡¼¥óËè";
619 return "dispel good (level*5) every 300+d300 turns";
626 return "¥Ñ¥Ë¥Ã¥¯¡¦¥â¥ó¥¹¥¿¡¼ : 15 ¥¿¡¼¥óËè";
628 return "confuse monster every 15 turns";
635 return "¼þ°Ï¤Î¥â¥ó¥¹¥¿¡¼¤ò̲¤é¤»¤ë : 55 ¥¿¡¼¥óËè";
637 return "sleep nearby monsters every 55 turns";
644 return "ÃÏ¿Ì (Ⱦ·Â 10) : 50 ¥¿¡¼¥óËè";
646 return "earthquake (rad 10) every 50 turns";
653 return "¶²¹² : 3 * (level+10) ¥¿¡¼¥óËè";
655 return "terror every 3 * (level+10) turns";
662 return "¥Æ¥ì¥Ý¡¼¥È¡¦¥¢¥¦¥§¥¤ : 150 ¥¿¡¼¥óËè";
664 return "teleport away every 200 turns";
668 case ACT_BANISH_EVIL:
671 return "¼Ù°¾ÃÌÇ : 250+d250 ¥¿¡¼¥óËè";
673 return "banish evil every 250+d250 turns";
680 return "Ëõ»¦ : 500 ¥¿¡¼¥óËè";
682 return "genocide every 500 turns";
689 return "¼þÊÕËõ»¦ : 1000 ¥¿¡¼¥óËè";
691 return "mass genocide every 1000 turns";
695 case ACT_CHARM_ANIMAL:
698 return "ưʪ̥λ : 300 ¥¿¡¼¥óËè";
700 return "charm animal every 300 turns";
704 case ACT_CHARM_UNDEAD:
707 return "ÉԻཾ° : 333 ¥¿¡¼¥óËè";
709 return "enslave undead every 333 turns";
713 case ACT_CHARM_OTHER:
716 return "¥â¥ó¥¹¥¿¡¼Ì¥Î» : 400 ¥¿¡¼¥óËè";
718 return "charm monster every 400 turns";
722 case ACT_CHARM_ANIMALS:
725 return "ưʪͧÏ : 500 ¥¿¡¼¥óËè";
727 return "animal friendship every 500 turns";
731 case ACT_CHARM_OTHERS:
734 return "¼þÊÕ̥λ : 750 ¥¿¡¼¥óËè";
736 return "mass charm every 750 turns";
740 case ACT_SUMMON_ANIMAL:
743 return "ưʪ¾¤´ : 200+d300 ¥¿¡¼¥óËè";
745 return "summon animal every 200+d300 turns";
749 case ACT_SUMMON_PHANTOM:
752 return "»È¤¤Î´ : 200+d200 ¥¿¡¼¥óËè";
754 return "summon phantasmal servant every 200+d200 turns";
758 case ACT_SUMMON_ELEMENTAL:
761 return "¥¨¥ì¥á¥ó¥¿¥ë¾¤´ : 750 ¥¿¡¼¥óËè";
763 return "summon elemental every 750 turns";
767 case ACT_SUMMON_DEMON:
770 return "°Ë⾤´ : 666+d333 ¥¿¡¼¥óËè";
772 return "summon demon every 666+d333 turns";
776 case ACT_SUMMON_UNDEAD:
779 return "ÉԻྤ´ : 666+d333 ¥¿¡¼¥óËè";
781 return "summon undead every 666+d333 turns";
788 return "ͦµ¤²óÉü & 30 hp ²óÉü : 10 ¥¿¡¼¥óËè";
790 return "remove fear & heal 30 hp every 10 turns";
797 return "4d8 hp & ½ý²óÉü : 3+d3 ¥¿¡¼¥óËè";
799 return "heal 4d8 & wounds every 3+d3 turns";
803 case ACT_CURE_POISON:
806 return "ͦµ¤²óÉü/ÆǾä· : 5 ¥¿¡¼¥óËè";
808 return "remove fear and cure poison every 5 turns";
815 return "·Ð¸³ÃÍÉü³è : 450 ¥¿¡¼¥óËè";
817 return "restore life levels every 450 turns";
824 return "Á´¥¹¥Æ¡¼¥¿¥¹¤È·Ð¸³ÃͲóÉü : 750 ¥¿¡¼¥óËè";
826 return "restore stats and life levels every 750 turns";
833 return "700 hp ²óÉü : 250 ¥¿¡¼¥óËè";
835 return "heal 700 hit points every 250 turns";
842 return "1000 hp ²óÉü : 888 ¥¿¡¼¥óËè";
844 return "heal 1000 hit points every 888 turns";
851 return "°ì»þŪ¤Ê ESP (´ü´Ö 25+d30) : 200 ¥¿¡¼¥óËè";
853 return "temporary ESP (dur 25+d30) every 200 turns";
860 return "»Îµ¤¹âÍȤȽËÊ¡ (´ü´Ö 50+d50) : 100+d100 ¥¿¡¼¥óËè";
862 return "heroism and blessed (dur 50+d50) every 100+d100 turns";
869 return "Âмٰ·ë³¦ (´ü´Ö level*3 + d25) : 225+d225 ¥¿¡¼¥óËè";
871 return "protect evil (dur level*3 + d25) every 225+d225 turns";
878 return "±êÎä»ÀÅÅÆǤؤÎÂÑÀ (´ü´Ö 40+d40) : 200 ¥¿¡¼¥óËè";
880 return "resist elements (dur 40+d40) every 200 turns";
887 return "²Ã® (´ü´Ö 20+d20) : 250 ¥¿¡¼¥óËè";
889 return "speed (dur 20+d20) every 250 turns";
896 return "²Ã® (´ü´Ö 75+d75) : 200+d200 ¥¿¡¼¥óËè";
898 return "speed (dur 75+d75) every 200+d200 turns";
905 return "¥ì¥¤¥¹²½ (level/2 + d(level/2)) : 1000 ¥¿¡¼¥óËè";
907 return "wraith form (level/2 + d(level/2)) every 1000 turns";
914 return "̵Ũ (´ü´Ö 8+d8) : 1000 ¥¿¡¼¥óËè";
916 return "invulnerability (dur 8+d8) every 1000 turns";
923 return "¼þÊÕ¾ÈÌÀ (¥À¥á¡¼¥¸ 2d15) : 10+d10 ¥¿¡¼¥óËè";
925 return "light area (dam 2d15) every 10+d10 turns";
932 return "¼þÊÕ¾ÈÌÀ (¥À¥á¡¼¥¸ 2d15) & ¼þÊÕ¥Þ¥Ã¥× : 50+d50 ¥¿¡¼¥óËè";
934 return "light (dam 2d15) & map area every 50+d50 turns";
941 return "Á´´¶ÃÎ : 55+d55 ¥¿¡¼¥óËè";
943 return "detection every 55+d55 turns";
947 case ACT_DETECT_XTRA:
950 return "Á´´¶ÃΡ¢Ãµº÷¡¢*´ÕÄê* : 1000 ¥¿¡¼¥óËè";
952 return "detection, probing and identify true every 1000 turns";
959 return "*´ÕÄê* : 750 ¥¿¡¼¥óËè";
961 return "identify true every 750 turns";
968 return "´ÕÄê : 10 ¥¿¡¼¥óËè";
970 return "identify spell every 10 turns";
977 return "Çúȯ¥ë¡¼¥ó : 200 ¥¿¡¼¥óËè";
979 return "explosive rune every 200 turns";
986 return "¼é¤ê¤Î¥ë¡¼¥ó : 400 ¥¿¡¼¥óËè";
988 return "rune of protection every 400 turns";
995 return "¶õÊ¢½¼Â : 200 ¥¿¡¼¥óËè";
997 return "satisfy hunger every 200 turns";
1004 return "¥É¥¢Ç˲õ : 10 ¥¿¡¼¥óËè";
1006 return "destroy doors every 10 turns";
1013 return "´äÀÐÍϲò : 5 ¥¿¡¼¥óËè";
1015 return "stone to mud every 5 turns";
1022 return "ºÆ½¼Å¶ : 70 ¥¿¡¼¥óËè";
1024 return "recharging every 70 turns";
1031 return "Ï£¶â½Ñ : 500 ¥¿¡¼¥óËè";
1033 return "alchemy every 500 turns";
1040 return "¼¡¸µ¤ÎÈâ : 100 ¥¿¡¼¥óËè";
1042 return "dimension door every 100 turns";
1049 return "¥Æ¥ì¥Ý¡¼¥È (range 100) : 45 ¥¿¡¼¥óËè";
1051 return "teleport (range 100) every 45 turns";
1058 return "µ¢´Ô¤Î¾Û : 200 ¥¿¡¼¥óËè";
1060 return "word of recall every 200 turns";
1069 return "something undefined";
1076 /* Some artifacts can be activated */
1077 switch (o_ptr->name1)
1082 return "¥Õ¥¡¥¤¥¢¡¦¥Ü¥ë¥È(9d8) : 8+d8 ¥¿¡¼¥óËè";
1084 return "fire bolt (9d8) every 8+d8 turns";
1091 return "¥¢¥¤¥¹¡¦¥Ü¥ë¥È(6d8) : 7+d7 ¥¿¡¼¥óËè";
1093 return "frost bolt (6d8) every 7+d7 turns";
1100 return "¥µ¥ó¥À¡¼¡¦¥Ü¥ë¥È(4d8) : 5+d5 ¥¿¡¼¥óËè";
1102 return "lightning bolt (4d8) every 6+d6 turns";
1109 return "°½±À(12) : 4+d4 ¥¿¡¼¥óËè";
1111 return "stinking cloud (12) every 4+d4 turns";
1118 return "¥¢¥¤¥¹¡¦¥Ü¡¼¥ë(48) : 5+d5 ¥¿¡¼¥óËè";
1120 return "frost ball (48) every 5+d5 turns";
1127 return "¶²Éݽüµî/ÆǾä· : 5 ¥¿¡¼¥óËè";
1129 return "remove fear and cure poison every 5 turns";
1136 return "¥¢¥¤¥¹¡¦¥Ü¡¼¥ë(100) : 200 ¥¿¡¼¥óËè";
1138 return "frost ball (100) every 200 turns";
1145 return "¶Ç¤Î»ÕÃľ¤´ : 500+d500 ¥¿¡¼¥óËè";
1147 return "summon the Legion of the Dawn every 500+d500 turns";
1154 return "¥Õ¥¡¥¤¥¢¡¦¥Ü¡¼¥ë(72) : 400 ¥¿¡¼¥óËè";
1156 return "fire ball (72) every 400 turns";
1163 return "µðÂç¥Õ¥¡¥¤¥¢¡¦¥Ü¡¼¥ë(72) : 100 ¥¿¡¼¥óËè";
1165 return "large fire ball (72) every 100 turns";
1172 return "µðÂç¥Õ¥¡¥¤¥¢¡¦¥Ü¡¼¥ë(120) : 15 ¥¿¡¼¥óËè";
1174 return "large fire ball (120) every 15 turns";
1181 return "¥¹¥Ô¡¼¥É(20+d20¥¿¡¼¥ó) : 200 ¥¿¡¼¥óËè";
1183 return "haste self (20+d20 turns) every 200 turns";
1190 return "À¸Ì¿Îϵۼý(120) : 400 ¥¿¡¼¥óËè";
1192 return "drain life (120) every 400 turns";
1199 return "À¸Ì¿Îϵۼý(90) : 70 ¥¿¡¼¥óËè";
1201 return "drain life (90) every 70 turns";
1208 return "¥É¥¢/¥È¥é¥Ã¥×Ê´ºÕ : 10 ¥¿¡¼¥óËè";
1210 return "door and trap destruction every 10 turns";
1218 return "µ¢´Ô¤Î¾Û : 200 ¥¿¡¼¥óËè";
1220 return "word of recall every 200 turns";
1227 return "¥¹¥Ô¡¼¥É(20+d20¥¿¡¼¥ó) : 100+d100 ¥¿¡¼¥óËè";
1229 return "haste self (20+d20 turns) every 100+d100 turns";
1236 return "´ÕÄê : 10 ¥¿¡¼¥óËè";
1238 return "identify every 10 turns";
1245 return "õº÷¡¢Á´´¶ÃΡ¢Á´´ÕÄê : 1000 ¥¿¡¼¥óËè";
1247 return "probing, detection and full id every 1000 turns";
1254 return "¼þÊÕËõ»¦ : 1000 ¥¿¡¼¥óËè";
1256 return "mass genocide every 1000 turns";
1263 return "½ý¤Î¼£Ìþ(4d7) : 3+d3 ¥¿¡¼¥óËè";
1265 return "cure wounds (4d7) every 3+d3 turns";
1272 return "¿ÏÀè¤Î¥Õ¥¡¥¤¥¢¡¦¥Ü¥ë¥È : 999 ¥¿¡¼¥óËè";
1274 return "fire branding of bolts every 999 turns";
1281 return "¥Õ¥¡¥¤¥¢¡ª : 15 ¥¿¡¼¥óËè";
1283 return "fire! every 15 turns";
1288 case ART_WEREWINDLE:
1291 return "ƨÁö : 35 ¥¿¡¼¥óËè";
1293 return "a getaway every 35 turns";
1300 return "¥Æ¥ì¥Ý¡¼¥È : 25 ¥¿¡¼¥óËè";
1302 return "a teleport every 25 turns";
1309 return "¥µ¥ó¥À¡¼¡¦¥Ü¡¼¥ë (100) : 200 ¥¿¡¼¥óËè";
1311 return "lightning ball (100) every 200 turns";
1318 return "¥¢¥¤¥¹¡¦¥Ü¡¼¥ë (100) : 200 ¥¿¡¼¥óËè";
1320 return "Frost ball (100) every 200 turns";
1327 return "´äÀÐÍϲò : 5 ¥¿¡¼¥óËè";
1329 return "stone to mud every 5 turns";
1336 return "´äÀÐÍϲò : 2 ¥¿¡¼¥óËè";
1338 return "stone to mud every 2 turns";
1342 case ART_SOULKEEPER:
1345 return "ÂÎÎϲóÉü(1000) : 888 ¥¿¡¼¥óËè";
1347 return "heal (1000) every 888 turns";
1354 return ("²óÉü (777)¡¢Ìþ¤·¡¢»Îµ¤¹âÍÈ : 300 ¥¿¡¼¥óËè");
1356 return ("heal (777), curing and heroism every 300 turns");
1363 return "Ëõ»¦ : 500 ¥¿¡¼¥óËè";
1365 return "genocide every 500 turns";
1372 return "·Ð¸³ÃÍÉü³è : 450 ¥¿¡¼¥óËè";
1374 return "restore life levels every 450 turns";
1381 return "¥Æ¥ì¥Ý¡¼¥È¡¦¥¢¥¦¥§¥¤ : 150 ¥¿¡¼¥óËè";
1383 return "teleport away every 150 turns";
1391 return "Á´ÂÑÀ(20+d20¥¿¡¼¥ó) : 111 ¥¿¡¼¥óËè";
1393 return "resistance (20+d20 turns) every 111 turns";
1397 case ART_HOLCOLLETH:
1400 return "¥¹¥ê¡¼¥×(II) : 55 ¥¿¡¼¥óËè";
1402 return "Sleep II every 55 turns";
1409 return "ËâÎϽ¼Å¶ : 70 ¥¿¡¼¥óËè";
1411 return "recharge item I every 70 turns";
1418 return "¥Æ¥ì¥Ý¡¼¥È : 45 ¥¿¡¼¥óËè";
1420 return "teleport every 45 turns";
1427 return "¥Ñ¥Ë¥Ã¥¯¡¦¥â¥ó¥¹¥¿¡¼ : 15 ¥¿¡¼¥óËè";
1429 return "confuse monster every 15 turns";
1433 case ART_CAMMITHRIM:
1436 return "¥Þ¥¸¥Ã¥¯¡¦¥ß¥µ¥¤¥ë(2d6) : 2 ¥¿¡¼¥óËè";
1438 return "magic missile (2d6) every 2 turns";
1445 return "¥Õ¥¡¥¤¥¢¡¦¥Ü¥ë¥È(9d8) : 8+d8 ¥¿¡¼¥óËè";
1447 return "fire bolt (9d8) every 8+d8 turns";
1451 case ART_PAURNIMMEN:
1454 return "¥¢¥¤¥¹¡¦¥Ü¥ë¥È(6d8) : 7+d7 ¥¿¡¼¥óËè";
1456 return "frost bolt (6d8) every 7+d7 turns";
1463 return "¥µ¥ó¥À¡¼¡¦¥Ü¥ë¥È(4d8) : 5+d5 ¥¿¡¼¥óËè";
1465 return "lightning bolt (4d8) every 5+d5 turns";
1472 return "¥¢¥·¥Ã¥É¡¦¥Ü¥ë¥È(5d8) : 6+d6 ¥¿¡¼¥óËè";
1474 return "acid bolt (5d8) every 6+d6 turns";
1481 return "ËâË¡¤ÎÌð(150) : 90+d90 ¥¿¡¼¥óËè";
1483 return "a magical arrow (150) every 90+d90 turns";
1487 case ART_HOLHENNETH:
1490 return "Á´´¶ÃÎ : 55+d55 ¥¿¡¼¥óËè";
1492 return "detection every 55+d55 turns";
1499 return "ÂÎÎϲóÉü(700) : 250 ¥¿¡¼¥óËè";
1501 return "heal (700) every 250 turns";
1508 return "¥¹¥¿¡¼¡¦¥Ü¡¼¥ë(150) : 1000 ¥¿¡¼¥óËè";
1510 return "star ball (150) every 1000 turns";
1514 case ART_BLADETURNER:
1517 return "¥¨¥ì¥á¥ó¥È¤Î¥Ö¥ì¥¹ (300), »Îµ¤¹âÍÈ¡¢½ËÊ¡¡¢ÂÑÀ";
1519 return "breathe elements (300), hero, bless, and resistance";
1526 return "¥¤¥ë¥ß¥Í¡¼¥·¥ç¥ó : 10+d10 ¥¿¡¼¥óËè";
1528 return "illumination every 10+d10 turns";
1535 return "ËâË¡¤ÎÃϿޤȸ÷ : 50+d50 ¥¿¡¼¥óËè";
1537 return "magic mapping and light every 50+d50 turns";
1544 return "ÂÎÎϤȰú¤Âؤ¨¤ËÀéΤ´ã¤Èµ¢´Ô : 20+d20 ¥¿¡¼¥óËè";
1546 return "clairvoyance and recall, draining you every 20+d20 turns";
1554 return "¼Ù°Â໶(x5) : 200+d200 ¥¿¡¼¥óËè";
1556 return "dispel evil (x5) every 200+d200 turns";
1563 return "¼Ù°Â໶(x5) : 100+d100 ¥¿¡¼¥óËè";
1565 return "dispel evil (x5) every 100+d100 turns";
1573 return "Âмٰ·ë³¦ : 225+d225 ¥¿¡¼¥óËè";
1575 return "protection from evil every 225+d225 turns";
1582 return "Ã⩹¶·â(100) : 100+d100 ¥¿¡¼¥óËè";
1584 return "a strangling attack (100) every 100+d100 turns";
1591 return "¥¹¥Ô¡¼¥É(75+d75¥¿¡¼¥ó) : 100+d100 ¥¿¡¼¥óËè";
1593 return "haste self (75+d75 turns) every 150+d150 turns";
1600 return "µðÂç¥Õ¥¡¥¤¥¢¡¦¥Ü¡¼¥ë(300) : 225+d225 ¥¿¡¼¥óËè";
1602 return "large fire ball (300) every 225+d225 turns";
1609 return "µðÂ祢¥¤¥¹¡¦¥Ü¡¼¥ë(400) : 325+d325 ¥¿¡¼¥óËè";
1611 return "large frost ball (400) every 325+d325 turns";
1619 return "µðÂ祵¥ó¥À¡¼¡¦¥Ü¡¼¥ë(500) : 425+d425 ¥¿¡¼¥óËè";
1621 return "large lightning ball (500) every 425+d425 turns";
1629 return "¿®¤¸Æñ¤¤¤³¤È : 450+d450 ¥¿¡¼¥óËè";
1631 return "bizarre things every 450+d450 turns";
1635 case ART_DOR: case ART_TERROR: case ART_STONEMASK:
1638 return "Á´Êý¸þ¤Ø¤Î¶²Éݤθ÷Àþ : 3*(¥ì¥Ù¥ë+10) ¥¿¡¼¥óËè";
1640 return "rays of fear in every direction every 3*(level+10) turns";
1647 return "¤³¤Î³¬¤Ë¤¤¤ë¥æ¥Ë¡¼¥¯¥â¥ó¥¹¥¿¡¼¤òɽ¼¨ : 200¥¿¡¼¥óËè";
1649 return "list of the uniques on the level every 200 turns";
1652 case ART_STONE_LORE:
1655 return "´í¸±¤òȼ¤¦´ÕÄê : ¤¤¤Ä¤Ç¤â";
1657 return "perilous identify every turn";
1663 return "³²Ãî¤Î¶î½ü : 55+d55¥¿¡¼¥óËè";
1665 return "dispel small life every 55+d55 turns";
1671 return "¥â¥ó¥¹¥¿¡¼¶²¹² : 40+d40¥¿¡¼¥óËè";
1673 return "frighten monsters every 40+d40 turns";
1679 return "Âмٰ·ë³¦ : 200+d200 ¥¿¡¼¥óËè";
1681 return "protection from evil every 200 + d200 turns";
1687 return "ËâÎϤÎÌð(120) : 120+d120 ¥¿¡¼¥óËè";
1689 return "a mana bolt (120) every 120+d120 turns";
1695 return "»Îµ¤¹âÍÈ, ¥¹¥Ô¡¼¥É(50+d50¥¿¡¼¥ó) : 100+d200 ¥¿¡¼¥óËè";
1697 return "hero and +10 to speed (50) every 100+200d turns";
1703 return "âÁ¤·¤¤¸÷ : 250 ¥¿¡¼¥óËè";
1705 return "blinding light every 250 turns";
1711 return "ËâÎϽ¼Å¶ : 200 ¥¿¡¼¥óËè";
1713 return "Recharge item every 200 turns";
1719 return "ÏÓÎϤξ徺 : ³ÎΨ50%¤Ç²õ¤ì¤ë¡£";
1721 return "Increase STR (destroyed 50%)";
1727 return "ËâÎϤÎÍò(400) : 250+d250¥¿¡¼¥óËè";
1729 return "a mana storm every 250+d250 turns";
1735 return "ʪÂΤò°ú¤´ó¤»¤ë(½ÅÎÌ25kg¤Þ¤Ç) : 25+d25¥¿¡¼¥óËè";
1737 return "a telekinesis (500 lb) every 25+d25 turns";
1743 return "¥Ï¥¦¥ó¥É¾¤´ : 300+d150¥¿¡¼¥óËè";
1745 return "summon hound every 300+d150 turns";
1751 return "µðÂ祹¥¿¡¼¡¦¥Ü¡¼¥ë(200) : 200+d200 ¥¿¡¼¥óËè";
1753 return "large star ball (200) every 200+d200 turns";
1760 return "Îã¤Î¥¢¥ì : 150+d150 ¥¿¡¼¥óËè";
1762 return "reveal your identity every 150+d150 turns";
1769 return "Çï»ÒÌÚ¤òÂǤÁ¤Ê¤é¤¹ : ¤¤¤Ä¤Ç¤â";
1771 return "beat wooden clappers every turn";
1779 return "»Îµ¤¹âÍÈ : 30+d30¥¿¡¼¥óËè";
1781 return "heroism every 30+d30 turns";
1789 return "Ìþ¤· : 100¥¿¡¼¥óËè";
1791 return "curing every 100 turns";
1799 return "ưʪ̥λ : 200¥¿¡¼¥óËè";
1801 return "charm animal every 200 turns";
1808 return "¥¢¥¤¥¹¡¦¥Ü¥ë¥È(12d8) : 50 ¥¿¡¼¥óËè";
1810 return "frost bolt (12d8) every 50 turns";
1817 return "°ÀÊѹ¹ : 3333 ¥¿¡¼¥óËè";
1819 return "change zokusei every 3333 turns";
1826 return "¥¦¥©¡¼¥¿¡¼¡¦¥Ü¡¼¥ë(200) : 250 ¥¿¡¼¥óËè";
1828 return "water ball (200) every 250 turns";
1835 return "»Í¸ÔƧ¤ß : 100+d100¥¿¡¼¥óËè";
1837 return "shiko every 100+d100 turns";
1844 return "Î䵤¤ÎÂÑÀ : 40+d40¥¿¡¼¥óËè";
1846 return "resist cold every 40+d40 turns";
1853 return "Âý¤ÎÂç·²¾¤´ : 300+d150¥¿¡¼¥óËè";
1855 return "summon octopus every 300+d150 turns";
1861 return "°Å¹õ¤ÎÍò(250) : 150+d150 ¥¿¡¼¥óËè";
1863 return "darkness storm (250) every 150+d150 turns";
1870 if ((o_ptr->tval == TV_POLEARM) && (o_ptr->sval == SV_TSURIZAO))
1873 return "Äà¤ê¤ò¤¹¤ë : ¤¤¤Ä¤Ç¤â";
1875 return "fishing : every time";
1880 if (item_tester_hook_smith(o_ptr))
1882 switch (o_ptr->xtra3 - 1)
1884 case ESSENCE_TMP_RES_ACID:
1886 return "»À¤Ø¤ÎÂÑÀ : 50+d50¥¿¡¼¥óËè";
1888 return "resist acid every 50+d50 turns";
1891 case ESSENCE_TMP_RES_ELEC:
1893 return "ÅÅ·â¤Ø¤ÎÂÑÀ : 50+d50¥¿¡¼¥óËè";
1895 return "resist elec every 50+d50 turns";
1898 case ESSENCE_TMP_RES_FIRE:
1900 return "²Ð¤Ø¤ÎÂÑÀ : 50+d50¥¿¡¼¥óËè";
1902 return "resist fire every 50+d50 turns";
1905 case ESSENCE_TMP_RES_COLD:
1907 return "Î䵤¤Ø¤ÎÂÑÀ : 50+d50¥¿¡¼¥óËè";
1909 return "resist cold every 50+d50 turns";
1914 return "ÃÏ¿Ì : 100+d100 ¥¿¡¼¥óËè";
1916 return "earthquake every 100+d100 turns";
1921 if (o_ptr->name2 == EGO_TRUMP)
1924 return "¥Æ¥ì¥Ý¡¼¥È : 50+d50 ¥¿¡¼¥óËè";
1926 return "teleport every 50+d50 turns";
1931 if (o_ptr->name2 == EGO_LITE_ILLUMINATION)
1934 return "¥¤¥ë¥ß¥Í¡¼¥·¥ç¥ó : 10+d10 ¥¿¡¼¥óËè";
1936 return "illumination every 10+d10 turns";
1940 else if (o_ptr->name2 == EGO_EARTHQUAKES)
1943 return "ÃÏ¿Ì : 100+d100 ¥¿¡¼¥óËè";
1945 return "earthquake every 100+d100 turns";
1950 else if (o_ptr->name2 == EGO_JUMP)
1953 return "¥·¥ç¡¼¥È¡¦¥Æ¥ì¥Ý¡¼¥È : 10+d10 ¥¿¡¼¥óËè";
1955 return "blink every 10+d10 turns";
1960 if (o_ptr->tval == TV_RING)
1964 switch (o_ptr->name2)
1968 return "»Îµ¤¹âÍÈ : 100+d100¥¿¡¼¥óËè";
1970 return "heroism every 100+d100 turns";
1972 case EGO_RING_MAGIC_MIS:
1974 return "¥Þ¥¸¥Ã¥¯¡¦¥ß¥µ¥¤¥ë(2d6) : 2 ¥¿¡¼¥óËè";
1976 return "magic missile (2d6) every 2 turns";
1978 case EGO_RING_FIRE_BOLT:
1980 return "¥Õ¥¡¥¤¥¢¡¦¥Ü¥ë¥È(9d8) : 8+d8 ¥¿¡¼¥óËè";
1982 return "fire bolt (9d8) every 8+d8 turns";
1984 case EGO_RING_COLD_BOLT:
1986 return "¥¢¥¤¥¹¡¦¥Ü¥ë¥È(6d8) : 7+d7 ¥¿¡¼¥óËè";
1988 return "frost bolt (6d8) every 7+d7 turns";
1990 case EGO_RING_ELEC_BOLT:
1992 return "¥µ¥ó¥À¡¼¡¦¥Ü¥ë¥È(4d8) : 5+d5 ¥¿¡¼¥óËè";
1994 return "lightning bolt (4d8) every 5+d5 turns";
1996 case EGO_RING_ACID_BOLT:
1998 return "¥¢¥·¥Ã¥É¡¦¥Ü¥ë¥È(5d8) : 6+d6 ¥¿¡¼¥óËè";
2000 return "acid bolt (5d8) every 6+d6 turns";
2002 case EGO_RING_MANA_BOLT:
2004 return "ËâÎϤÎÌð(120) : 120+d120 ¥¿¡¼¥óËè";
2006 return "a mana bolt (120) every 120+d120 turns";
2008 case EGO_RING_FIRE_BALL:
2010 return "¥Õ¥¡¥¤¥¢¡¦¥Ü¡¼¥ë (100) : 80+d80 ¥¿¡¼¥óËè";
2012 return "fire ball (100) every 80+d80 turns";
2014 case EGO_RING_COLD_BALL:
2016 return "¥³¡¼¥ë¥É¡¦¥Ü¡¼¥ë (100) : 80+d80 ¥¿¡¼¥óËè";
2018 return "cold ball (100) every 80+d80 turns";
2020 case EGO_RING_ELEC_BALL:
2022 return "¥µ¥ó¥À¡¼¡¦¥Ü¡¼¥ë (100) : 80+d80 ¥¿¡¼¥óËè";
2024 return "elec ball (100) every 80+d80 turns";
2026 case EGO_RING_ACID_BALL:
2028 return "¥¢¥·¥Ã¥É¡¦¥Ü¡¼¥ë (100) : 80+d80 ¥¿¡¼¥óËè";
2030 return "acid ball (100) every 80+d80 turns";
2032 case EGO_RING_MANA_BALL:
2034 return "ËâÎϤÎÍò (250) : 300 ¥¿¡¼¥óËè";
2036 return "mana storm (250) every 300 turns";
2038 case EGO_RING_DRAGON_F:
2039 if (o_ptr->sval == SV_RING_FLAMES)
2041 return "²Ð±ê¤Î¥Ö¥ì¥¹ (200) ¤È²Ð¤Ø¤ÎÂÑÀ : 200 ¥¿¡¼¥óËè";
2043 return "breath of fire (200) and resist fire every 200 turns";
2047 return "²Ð±ê¤Î¥Ö¥ì¥¹ (200) : 250 ¥¿¡¼¥óËè";
2049 return "fire breath (200) every 250 turns";
2051 case EGO_RING_DRAGON_C:
2052 if (o_ptr->sval == SV_RING_ICE)
2054 return "Î䵤¤Î¥Ö¥ì¥¹ (200) ¤ÈÎ䵤¤Ø¤ÎÂÑÀ : 200 ¥¿¡¼¥óËè";
2056 return "breath of cold (200) and resist cold every 200 turns";
2060 return "Î䵤¤Î¥Ö¥ì¥¹ (200) : 250 ¥¿¡¼¥óËè";
2062 return "cold breath (200) every 250 turns";
2064 case EGO_RING_M_DETECT:
2066 return "Á´¥â¥ó¥¹¥¿¡¼´¶ÃÎ : 150 ¥¿¡¼¥óËè";
2068 return "detect all monsters every 150 turns";
2070 case EGO_RING_D_SPEED:
2072 return "¥¹¥Ô¡¼¥É(15+d30¥¿¡¼¥ó) : 100 ¥¿¡¼¥óËè";
2074 return "haste self (15+d30 turns) every 100 turns";
2076 case EGO_RING_BERSERKER:
2078 return "¶¸Àï»Î²½(25+d25¥¿¡¼¥ó) : 75+d75 ¥¿¡¼¥óËè";
2080 return "berserk (25+d25 turns) every 75+d75 turns";
2082 case EGO_RING_TELE_AWAY:
2084 return "¥Æ¥ì¥Ý¡¼¥È¡¦¥¢¥¦¥§¥¤ : 150 ¥¿¡¼¥óËè";
2086 return "teleport away every 150 turns";
2090 return "»Îµ¤¹âÍÈ¡¢½ËÊ¡¡¢µæ¶Ë¤ÎÂÑÀ : 777 ¥¿¡¼¥óËè";
2092 return "hero, bless, and ultimate resistance every 777 turns";
2096 switch (o_ptr->sval)
2098 case SV_RING_FLAMES:
2100 return "¥Õ¥¡¥¤¥¢¡¦¥Ü¡¼¥ë (100) ¤È²Ð¤Ø¤ÎÂÑÀ : 50+d50 ¥¿¡¼¥óËè";
2102 return "ball of fire (100) and resist fire every 50+d50 turns";
2107 return "¥³¡¼¥ë¥É¡¦¥Ü¡¼¥ë (100) ¤ÈÎ䵤¤Ø¤ÎÂÑÀ : 50+d50 ¥¿¡¼¥óËè";
2109 return "ball of cold (100) and resist cold every 50+d50 turns";
2114 return "¥¢¥·¥Ã¥É¡¦¥Ü¡¼¥ë (100) ¤È»À¤Ø¤ÎÂÑÀ : 50+d50 ¥¿¡¼¥óËè";
2116 return "ball of acid (100) and resist acid every 50+d50 turns";
2121 return "¥µ¥ó¥À¡¼¡¦¥Ü¡¼¥ë (100) ¤ÈÅÅ·â¤Ø¤ÎÂÑÀ : 50+d50 ¥¿¡¼¥óËè";
2123 return "ball of elec (100) and resist elec every 50+d50 turns";
2131 if (o_ptr->tval == TV_AMULET)
2135 switch (o_ptr->name2)
2139 return "´ÕÄê : 10 ¥¿¡¼¥óËè";
2141 return "identify every 10 turns";
2145 return "¥â¥ó¥¹¥¿¡¼Ì¥Î» : 200 ¥¿¡¼¥óËè";
2147 return "charm monster every 200 turns";
2151 return "¥·¥ç¡¼¥È¡¦¥Æ¥ì¥Ý¡¼¥È : 10+d10 ¥¿¡¼¥óËè";
2153 return "blink every 10+d10 turns";
2155 case EGO_AMU_TELEPORT:
2157 return "¥Æ¥ì¥Ý¡¼¥È : 50+d50 ¥¿¡¼¥óËè";
2159 return "teleport every 50+d50 turns";
2161 case EGO_AMU_D_DOOR:
2163 return "¼¡¸µ¤ÎÈâ : 200 ¥¿¡¼¥óËè";
2165 return "dimension door every 200 turns";
2167 case EGO_AMU_RES_FIRE_:
2169 return "²Ð±ê¤Ø¤ÎÂÑÀ : 50+d50¥¿¡¼¥óËè";
2171 return "resist fire every 50+d50 turns";
2173 case EGO_AMU_RES_COLD_:
2175 return "Î䵤¤Ø¤ÎÂÑÀ : 50+d50¥¿¡¼¥óËè";
2177 return "resist cold every 50+d50 turns";
2179 case EGO_AMU_RES_ELEC_:
2181 return "ÅÅ·â¤Ø¤ÎÂÑÀ : 50+d50¥¿¡¼¥óËè";
2183 return "resist elec every 50+d50 turns";
2185 case EGO_AMU_RES_ACID_:
2187 return "»À¤Ø¤ÎÂÑÀ : 50+d50¥¿¡¼¥óËè";
2189 return "resist acid every 50+d50 turns";
2191 case EGO_AMU_DETECTION:
2193 return "Á´´¶ÃÎ : 55+d55¥¿¡¼¥óËè";
2195 return "detect all floor every 55+d55 turns";
2201 if (o_ptr->tval == TV_WHISTLE)
2204 return "¥Ú¥Ã¥È¸Æ¤Ó´ó¤» : 100+d100¥¿¡¼¥óËè";
2206 return "call pet every 100+d100 turns";
2210 if (o_ptr->tval == TV_CAPTURE)
2213 return "¥â¥ó¥¹¥¿¡¼¤òÊᤨ¤ë¡¢Ëô¤Ï²òÊü¤¹¤ë¡£";
2215 return "captures or releases a monster.";
2219 /* Require dragon scale mail */
2221 if (o_ptr->tval != TV_DRAG_ARMOR) return ("´ñ̯¤Ê¸÷");
2223 if (o_ptr->tval != TV_DRAG_ARMOR) return ("a strange glow");
2227 /* Branch on the sub-type */
2228 switch (o_ptr->sval)
2230 case SV_DRAGON_BLUE:
2233 return "°ðºÊ¤Î¥Ö¥ì¥¹(100) : 150+d150 ¥¿¡¼¥óËè";
2235 return "breathe lightning (100) every 150+d150 turns";
2239 case SV_DRAGON_WHITE:
2242 return "Î䵤¤Î¥Ö¥ì¥¹(110) : 150+d150 ¥¿¡¼¥óËè";
2244 return "breathe frost (110) every 150+d150 turns";
2248 case SV_DRAGON_BLACK:
2251 return "»À¤Î¥Ö¥ì¥¹(130) : 150+d150 ¥¿¡¼¥óËè";
2253 return "breathe acid (130) every 150+d150 turns";
2257 case SV_DRAGON_GREEN:
2260 return "ÆǤΥ¬¥¹¤Î¥Ö¥ì¥¹(150) : 180+d180 ¥¿¡¼¥óËè";
2262 return "breathe poison gas (150) every 180+d180 turns";
2269 return "²Ð±ê¤Î¥Ö¥ì¥¹(200) : 200+d200 ¥¿¡¼¥óËè";
2271 return "breathe fire (200) every 200+d200 turns";
2275 case SV_DRAGON_MULTIHUED:
2278 return "Ëü¿§¤Î¥Ö¥ì¥¹(250) : 200+d200 ¥¿¡¼¥óËè";
2280 return "breathe multi-hued (250) every 200+d200 turns";
2284 case SV_DRAGON_BRONZE:
2287 return "º®Íð¤Î¥Ö¥ì¥¹(120) : 180+d180 ¥¿¡¼¥óËè";
2289 return "breathe confusion (120) every 180+d180 turns";
2293 case SV_DRAGON_GOLD:
2296 return "¹ì²»¤Î¥Ö¥ì¥¹(130) : 180+d180 ¥¿¡¼¥óËè";
2298 return "breathe sound (130) every 180+d180 turns";
2302 case SV_DRAGON_CHAOS:
2305 return "¥«¥ª¥¹/Îô²½¤Î¥Ö¥ì¥¹(220) : 200+d200 ¥¿¡¼¥óËè";
2307 return "breathe chaos/disenchant (220) every 200+d200 turns";
2314 return "¹ì²»/ÇËÊҤΥ֥쥹(230) : 200+d200 ¥¿¡¼¥óËè";
2316 return "breathe sound/shards (230) every 200+d200 turns";
2320 case SV_DRAGON_BALANCE:
2323 return "¥Ð¥é¥ó¥¹¤Î¥Ö¥ì¥¹ (250) 200+d200 ¥¿¡¼¥óËè";
2325 return "breathe balance (250) every 200+d200 turns";
2329 case SV_DRAGON_SHINING:
2332 return "Á®¸÷/°Å¹õ¤Î¥Ö¥ì¥¹(200) : 200+d200 ¥¿¡¼¥óËè";
2334 return "breathe light/darkness (200) every 200+d200 turns";
2338 case SV_DRAGON_POWER:
2341 return "¥¨¥ì¥á¥ó¥È¤Î¥Ö¥ì¥¹(300) : 200+d200 ¥¿¡¼¥óËè";
2343 return "breathe the elements (300) every 200+d200 turns";
2353 return "breathe air";
2360 * Describe a "fully identified" item
2362 bool screen_object(object_type *o_ptr, bool real)
2366 u32b flgs[TR_FLAG_SIZE];
2369 char o_name[MAX_NLEN];
2372 /* Extract the flags */
2373 object_flags(o_ptr, flgs);
2375 /* Extract the description */
2379 roff_to_buf(o_ptr->name1 ? (a_text + a_info[o_ptr->name1].text) :
2380 (k_text + k_info[lookup_kind(o_ptr->tval, o_ptr->sval)].text),
2381 77 - 15, temp, sizeof(temp));
2382 for (j = 0; temp[j]; j += 1 + strlen(&temp[j]))
2383 { info[i] = &temp[j]; i++;}
2386 /* Mega-Hack -- describe activation */
2387 if (have_flag(flgs, TR_ACTIVATE))
2390 info[i++] = "»ÏÆ°¤·¤¿¤È¤¤Î¸ú²Ì...";
2392 info[i++] = "It can be activated for...";
2395 info[i++] = item_activation(o_ptr);
2397 info[i++] = "...¤¿¤À¤·ÁõÈ÷¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£";
2399 info[i++] = "...if it is being worn.";
2404 /* Figurines, a hack */
2405 if (o_ptr->tval == TV_FIGURINE)
2408 info[i++] = "¤½¤ì¤ÏÅꤲ¤¿»þ¥Ú¥Ã¥È¤ËÊѲ½¤¹¤ë¡£";
2410 info[i++] = "It will transform into a pet when thrown.";
2415 /* Figurines, a hack */
2416 if (o_ptr->name1 == ART_STONEMASK)
2419 info[i++] = "¤½¤ì¤òÁõÈ÷¤·¤¿¼Ô¤ÏµÛ·ìµ´¤Ë¤Ê¤ë¡£";
2421 info[i++] = "It makes you turn into a vampire permanently.";
2426 if ((o_ptr->tval == TV_SWORD) && (o_ptr->sval == SV_DOKUBARI))
2429 info[i++] = "¤½¤ì¤ÏÁê¼ê¤ò°ì·â¤ÇÅݤ¹¤³¤È¤¬¤¢¤ë¡£";
2431 info[i++] = "It will attempt to kill a monster instantly.";
2436 if ((o_ptr->tval == TV_POLEARM) && (o_ptr->sval == SV_DEATH_SCYTHE))
2439 info[i++] = "¤½¤ì¤Ï¼«Ê¬¼«¿È¤Ë¹¶·â¤¬Ê֤äƤ¯¤ë¤³¤È¤¬¤¢¤ë¡£";
2441 info[i++] = "It causes you to strike yourself sometimes.";
2445 info[i++] = "¤½¤ì¤Ï̵Ũ¤Î¥Ð¥ê¥¢¤òÀÚ¤êÎö¤¯¡£";
2447 info[i++] = "It always penetrates invulnerability barriers.";
2451 if (o_ptr->name2 == EGO_2WEAPON)
2454 info[i++] = "¤½¤ì¤ÏÆóÅáή¤Ç¤ÎÌ¿ÃæΨ¤ò¸þ¾å¤µ¤»¤ë¡£";
2456 info[i++] = "It affects your ability to hit when you are wielding two weapons.";
2461 if (have_flag(flgs, TR_EASY_SPELL))
2464 info[i++] = "¤½¤ì¤ÏËâË¡¤ÎÆñ°×ÅÙ¤ò²¼¤²¤ë¡£";
2466 info[i++] = "It affects your ability to cast spells.";
2470 if (o_ptr->name2 == EGO_AMU_FOOL)
2473 info[i++] = "¤½¤ì¤ÏËâË¡¤ÎÆñ°×ÅÙ¤ò¾å¤²¤ë¡£";
2475 info[i++] = "It interferes with casting spells.";
2479 if (o_ptr->name2 == EGO_RING_THROW)
2482 info[i++] = "¤½¤ì¤Ïʪ¤ò¶¯¤¯Åꤲ¤ë¤³¤È¤ò²Äǽ¤Ë¤¹¤ë¡£";
2484 info[i++] = "It provides great strength when you throw an item.";
2488 if (o_ptr->name2 == EGO_AMU_NAIVETY)
2491 info[i++] = "¤½¤ì¤ÏËâË¡Äñ¹³ÎϤò²¼¤²¤ë¡£";
2493 info[i++] = "It decreases your magic resistance.";
2497 if (o_ptr->tval == TV_STATUE)
2499 monster_race *r_ptr = &r_info[o_ptr->pval];
2501 if (o_ptr->pval == MON_BULLGATES)
2503 info[i++] = "¤½¤ì¤ÏÉô²°¤Ë¾þ¤ë¤ÈÃѤº¤«¤·¤¤¡£";
2505 info[i++] = "It is shameful.";
2507 else if ( r_ptr->flags2 & (RF2_ELDRITCH_HORROR))
2509 info[i++] = "¤½¤ì¤ÏÉô²°¤Ë¾þ¤ë¤È¶²¤¤¡£";
2511 info[i++] = "It is fearful.";
2515 info[i++] = "¤½¤ì¤ÏÉô²°¤Ë¾þ¤ë¤È³Ú¤·¤¤¡£";
2517 info[i++] = "It is cheerful.";
2521 /* Hack -- describe lite's */
2522 if (o_ptr->tval == TV_LITE)
2524 if (o_ptr->name2 == EGO_LITE_DARKNESS)
2527 info[i++] = "¤½¤ì¤ÏÁ´¤¯¸÷¤é¤Ê¤¤¡£";
2529 info[i++] = "It provides no light.";
2532 if (o_ptr->sval == SV_LITE_FEANOR ||
2533 o_ptr->sval == SV_LITE_LANTERN)
2536 info[i++] = "¤½¤ì¤ÏÌÀ¤ê¤ÎȾ·Â¤ò¶¹¤á¤ë(Ⱦ·Â¤Ë-2)¡£";
2538 info[i++] = "It decreases radius of light source by 2.";
2544 info[i++] = "¤½¤ì¤ÏÌÀ¤ê¤ÎȾ·Â¤ò¶¹¤á¤ë(Ⱦ·Â¤Ë-1)¡£";
2546 info[i++] = "It decreases radius of light source by 1.";
2550 else if (artifact_p(o_ptr))
2553 info[i++] = "¤½¤ì¤Ï±Ê±ó¤Ê¤ëÌÀ¤«¤ê(Ⱦ·Â 3)¤ò¼ø¤±¤ë¡£";
2555 info[i++] = "It provides light (radius 3) forever.";
2559 else if (o_ptr->name2 == EGO_LITE_SHINE)
2561 if (o_ptr->sval == SV_LITE_FEANOR)
2564 info[i++] = "¤½¤ì¤Ï±Ê±ó¤Ê¤ëÌÀ¤«¤ê(Ⱦ·Â 3)¤ò¼ø¤±¤ë¡£";
2566 info[i++] = "It provides light (radius 3) forever.";
2570 else if (o_ptr->sval == SV_LITE_LANTERN)
2573 info[i++] = "¤½¤ì¤ÏdzÎÁÊäµë¤Ë¤è¤Ã¤ÆÌÀ¤«¤ê(Ⱦ·Â 3)¤ò¼ø¤±¤ë¡£";
2575 info[i++] = "It provides light (radius 3) when fueled.";
2582 info[i++] = "¤½¤ì¤ÏdzÎÁÊäµë¤Ë¤è¤Ã¤ÆÌÀ¤«¤ê(Ⱦ·Â 2)¤ò¼ø¤±¤ë¡£";
2584 info[i++] = "It provides light (radius 2) when fueled.";
2591 if (o_ptr->sval == SV_LITE_FEANOR)
2594 info[i++] = "¤½¤ì¤Ï±Ê±ó¤Ê¤ëÌÀ¤«¤ê(Ⱦ·Â 2)¤ò¼ø¤±¤ë¡£";
2596 info[i++] = "It provides light (radius 2) forever.";
2600 else if (o_ptr->sval == SV_LITE_LANTERN)
2603 info[i++] = "¤½¤ì¤ÏdzÎÁÊäµë¤Ë¤è¤Ã¤ÆÌÀ¤«¤ê(Ⱦ·Â 2)¤ò¼ø¤±¤ë¡£";
2605 info[i++] = "It provides light (radius 2) when fueled.";
2612 info[i++] = "¤½¤ì¤ÏdzÎÁÊäµë¤Ë¤è¤Ã¤ÆÌÀ¤«¤ê(Ⱦ·Â 1)¤ò¼ø¤±¤ë¡£";
2614 info[i++] = "It provides light (radius 1) when fueled.";
2619 if (o_ptr->name2 == EGO_LITE_LONG)
2622 info[i++] = "¤½¤ì¤ÏŤ¤¥¿¡¼¥óÌÀ¤«¤ê¤ò¼ø¤±¤ë¡£";
2624 info[i++] = "It provides light for much longer time.";
2630 /* And then describe it fully */
2632 if (have_flag(flgs, TR_RIDING))
2634 if ((o_ptr->tval == TV_POLEARM) && ((o_ptr->sval == SV_LANCE) || (o_ptr->sval == SV_HEAVY_LANCE)))
2636 info[i++] = "¤½¤ì¤Ï¾èÇÏÃæ¤ÏÈó¾ï¤Ë»È¤¤¤ä¤¹¤¤¡£";
2638 info[i++] = "It is made for use while riding.";
2642 info[i++] = "¤½¤ì¤Ï¾èÇÏÃæ¤Ç¤â»È¤¤¤ä¤¹¤¤¡£";
2644 info[i++] = "It is suitable for use while riding.";
2648 if (have_flag(flgs, TR_STR))
2651 info[i++] = "¤½¤ì¤ÏÏÓÎϤ˱ƶÁ¤òµÚ¤Ü¤¹";
2653 info[i++] = "It affects your strength.";
2657 if (have_flag(flgs, TR_INT))
2660 info[i++] = "¤½¤ì¤ÏÃÎǽ¤Ë±Æ¶Á¤òµÚ¤Ü¤¹";
2662 info[i++] = "It affects your intelligence.";
2666 if (have_flag(flgs, TR_WIS))
2669 info[i++] = "¤½¤ì¤Ï¸¤µ¤Ë±Æ¶Á¤òµÚ¤Ü¤¹";
2671 info[i++] = "It affects your wisdom.";
2675 if (have_flag(flgs, TR_DEX))
2678 info[i++] = "¤½¤ì¤Ï´ïÍѤµ¤Ë±Æ¶Á¤òµÚ¤Ü¤¹";
2680 info[i++] = "It affects your dexterity.";
2684 if (have_flag(flgs, TR_CON))
2687 info[i++] = "¤½¤ì¤ÏÂѵ×ÎϤ˱ƶÁ¤òµÚ¤Ü¤¹";
2689 info[i++] = "It affects your constitution.";
2693 if (have_flag(flgs, TR_CHR))
2696 info[i++] = "¤½¤ì¤ÏÌ¥ÎϤ˱ƶÁ¤òµÚ¤Ü¤¹";
2698 info[i++] = "It affects your charisma.";
2703 if (have_flag(flgs, TR_MAGIC_MASTERY))
2706 info[i++] = "¤½¤ì¤ÏËâË¡Æ»¶ñ»ÈÍÑǽÎϤ˱ƶÁ¤òµÚ¤Ü¤¹";
2708 info[i++] = "It affects your ability to use magic devices.";
2712 if (have_flag(flgs, TR_STEALTH))
2715 info[i++] = "¤½¤ì¤Ï±£Ì©¹ÔưǽÎϤ˱ƶÁ¤òµÚ¤Ü¤¹";
2717 info[i++] = "It affects your stealth.";
2721 if (have_flag(flgs, TR_SEARCH))
2724 info[i++] = "¤½¤ì¤Ïõº÷ǽÎϤ˱ƶÁ¤òµÚ¤Ü¤¹";
2726 info[i++] = "It affects your searching.";
2730 if (have_flag(flgs, TR_INFRA))
2733 info[i++] = "¤½¤ì¤ÏÀÖ³°Àþ»ëÎϤ˱ƶÁ¤òµÚ¤Ü¤¹";
2735 info[i++] = "It affects your infravision.";
2739 if (have_flag(flgs, TR_TUNNEL))
2742 info[i++] = "¤½¤ì¤ÏºÎ·¡Ç½ÎϤ˱ƶÁ¤òµÚ¤Ü¤¹";
2744 info[i++] = "It affects your ability to tunnel.";
2748 if (have_flag(flgs, TR_SPEED))
2751 info[i++] = "¤½¤ì¤Ï¥¹¥Ô¡¼¥É¤Ë±Æ¶Á¤òµÚ¤Ü¤¹";
2753 info[i++] = "It affects your speed.";
2757 if (have_flag(flgs, TR_BLOWS))
2760 info[i++] = "¤½¤ì¤ÏÂÇ·â²ó¿ô¤Ë±Æ¶Á¤òµÚ¤Ü¤¹";
2762 info[i++] = "It affects your attack speed.";
2767 if (have_flag(flgs, TR_BRAND_ACID))
2770 info[i++] = "¤½¤ì¤Ï»À¤Ë¤è¤Ã¤ÆÂ礤ʥÀ¥á¡¼¥¸¤òÍ¿¤¨¤ë";
2772 info[i++] = "It does extra damage from acid.";
2776 if (have_flag(flgs, TR_BRAND_ELEC))
2779 info[i++] = "¤½¤ì¤ÏÅÅ·â¤Ë¤è¤Ã¤ÆÂ礤ʥÀ¥á¡¼¥¸¤òÍ¿¤¨¤ë";
2781 info[i++] = "It does extra damage from electricity.";
2785 if (have_flag(flgs, TR_BRAND_FIRE))
2788 info[i++] = "¤½¤ì¤Ï²Ð±ê¤Ë¤è¤Ã¤ÆÂ礤ʥÀ¥á¡¼¥¸¤òÍ¿¤¨¤ë";
2790 info[i++] = "It does extra damage from fire.";
2794 if (have_flag(flgs, TR_BRAND_COLD))
2797 info[i++] = "¤½¤ì¤ÏÎ䵤¤Ë¤è¤Ã¤ÆÂ礤ʥÀ¥á¡¼¥¸¤òÍ¿¤¨¤ë";
2799 info[i++] = "It does extra damage from frost.";
2804 if (have_flag(flgs, TR_BRAND_POIS))
2807 info[i++] = "¤½¤ì¤ÏŨ¤òÆǤ¹¤ë¡£";
2809 info[i++] = "It poisons your foes.";
2814 if (have_flag(flgs, TR_CHAOTIC))
2817 info[i++] = "¤½¤ì¤Ï¥«¥ª¥¹Åª¤Ê¸ú²Ì¤òµÚ¤Ü¤¹¡£";
2819 info[i++] = "It produces chaotic effects.";
2824 if (have_flag(flgs, TR_VAMPIRIC))
2827 info[i++] = "¤½¤ì¤ÏŨ¤«¤é¥Ò¥Ã¥È¥Ý¥¤¥ó¥È¤òµÛ¼ý¤¹¤ë¡£";
2829 info[i++] = "It drains life from your foes.";
2834 if (have_flag(flgs, TR_IMPACT))
2837 info[i++] = "¤½¤ì¤ÏÃϿ̤òµ¯¤³¤¹¤³¤È¤¬¤Ç¤¤ë¡£";
2839 info[i++] = "It can cause earthquakes.";
2844 if (have_flag(flgs, TR_VORPAL))
2847 info[i++] = "¤½¤ì¤ÏÈó¾ï¤ËÀÚ¤ìÌ£¤¬±Ô¤¯Å¨¤òÀÚÃǤ¹¤ë¤³¤È¤¬¤Ç¤¤ë¡£";
2849 info[i++] = "It is very sharp and can cut your foes.";
2854 if (have_flag(flgs, TR_KILL_DRAGON))
2857 info[i++] = "¤½¤ì¤Ï¥É¥é¥´¥ó¤Ë¤È¤Ã¤Æ¤ÎŷŨ¤Ç¤¢¤ë¡£";
2859 info[i++] = "It is a great bane of dragons.";
2863 else if (have_flag(flgs, TR_SLAY_DRAGON))
2866 info[i++] = "¤½¤ì¤Ï¥É¥é¥´¥ó¤ËÂФ·¤ÆÆä˶²¤ë¤Ù¤ÎϤòȯ´ø¤¹¤ë¡£";
2868 info[i++] = "It is especially deadly against dragons.";
2873 if (have_flag(flgs, TR_KILL_ORC))
2876 info[i++] = "¤½¤ì¤Ï¥ª¡¼¥¯¤Ë¤È¤Ã¤Æ¤ÎŷŨ¤Ç¤¢¤ë¡£";
2878 info[i++] = "It is a great bane of orcs.";
2882 if (have_flag(flgs, TR_SLAY_ORC))
2885 info[i++] = "¤½¤ì¤Ï¥ª¡¼¥¯¤ËÂФ·¤ÆÆä˶²¤ë¤Ù¤ÎϤòȯ´ø¤¹¤ë¡£";
2887 info[i++] = "It is especially deadly against orcs.";
2892 if (have_flag(flgs, TR_KILL_TROLL))
2895 info[i++] = "¤½¤ì¤Ï¥È¥í¥ë¤Ë¤È¤Ã¤Æ¤ÎŷŨ¤Ç¤¢¤ë¡£";
2897 info[i++] = "It is a great bane of trolls.";
2901 if (have_flag(flgs, TR_SLAY_TROLL))
2904 info[i++] = "¤½¤ì¤Ï¥È¥í¥ë¤ËÂФ·¤ÆÆä˶²¤ë¤Ù¤ÎϤòȯ´ø¤¹¤ë¡£";
2906 info[i++] = "It is especially deadly against trolls.";
2911 if (have_flag(flgs, TR_KILL_GIANT))
2914 info[i++] = "¤½¤ì¤Ïµð¿Í¤Ë¤È¤Ã¤Æ¤ÎŷŨ¤Ç¤¢¤ë¡£";
2916 info[i++] = "It is a great bane of giants.";
2919 else if (have_flag(flgs, TR_SLAY_GIANT))
2922 info[i++] = "¤½¤ì¤Ï¥¸¥ã¥¤¥¢¥ó¥È¤ËÂФ·¤ÆÆä˶²¤ë¤Ù¤ÎϤòȯ´ø¤¹¤ë¡£";
2924 info[i++] = "It is especially deadly against giants.";
2929 if (have_flag(flgs, TR_KILL_DEMON))
2932 info[i++] = "¤½¤ì¤Ï¥Ç¡¼¥â¥ó¤Ë¤È¤Ã¤Æ¤ÎŷŨ¤Ç¤¢¤ë¡£";
2934 info[i++] = "It is a great bane of demons.";
2938 if (have_flag(flgs, TR_SLAY_DEMON))
2941 info[i++] = "¤½¤ì¤Ï¥Ç¡¼¥â¥ó¤ËÂФ·¤ÆÀ»¤Ê¤ëÎϤòȯ´ø¤¹¤ë¡£";
2943 info[i++] = "It strikes at demons with holy wrath.";
2948 if (have_flag(flgs, TR_KILL_UNDEAD))
2951 info[i++] = "¤½¤ì¤Ï¥¢¥ó¥Ç¥Ã¥É¤Ë¤È¤Ã¤Æ¤ÎŷŨ¤Ç¤¢¤ë¡£";
2953 info[i++] = "It is a great bane of undead.";
2957 if (have_flag(flgs, TR_SLAY_UNDEAD))
2960 info[i++] = "¤½¤ì¤Ï¥¢¥ó¥Ç¥Ã¥É¤ËÂФ·¤ÆÀ»¤Ê¤ëÎϤòȯ´ø¤¹¤ë¡£";
2962 info[i++] = "It strikes at undead with holy wrath.";
2967 if (have_flag(flgs, TR_KILL_EVIL))
2970 info[i++] = "¤½¤ì¤Ï¼Ù°¤Ê¤ë¸ºß¤Ë¤È¤Ã¤Æ¤ÎŷŨ¤Ç¤¢¤ë¡£";
2972 info[i++] = "It is a great bane of evil monsters.";
2976 if (have_flag(flgs, TR_SLAY_EVIL))
2979 info[i++] = "¤½¤ì¤Ï¼Ù°¤Ê¤ë¸ºß¤ËÂФ·¤ÆÀ»¤Ê¤ëÎϤǹ¶·â¤¹¤ë¡£";
2981 info[i++] = "It fights against evil with holy fury.";
2986 if (have_flag(flgs, TR_KILL_ANIMAL))
2989 info[i++] = "¤½¤ì¤Ï¼«Á³³¦¤Îưʪ¤Ë¤È¤Ã¤Æ¤ÎŷŨ¤Ç¤¢¤ë¡£";
2991 info[i++] = "It is a great bane of natural creatures.";
2995 if (have_flag(flgs, TR_SLAY_ANIMAL))
2998 info[i++] = "¤½¤ì¤Ï¼«Á³³¦¤Îưʪ¤ËÂФ·¤ÆÆä˶²¤ë¤Ù¤ÎϤòȯ´ø¤¹¤ë¡£";
3000 info[i++] = "It is especially deadly against natural creatures.";
3005 if (have_flag(flgs, TR_KILL_HUMAN))
3008 info[i++] = "¤½¤ì¤Ï¿Í´Ö¤Ë¤È¤Ã¤Æ¤ÎŷŨ¤Ç¤¢¤ë¡£";
3010 info[i++] = "It is a great bane of humans.";
3014 if (have_flag(flgs, TR_SLAY_HUMAN))
3017 info[i++] = "¤½¤ì¤Ï¿Í´Ö¤ËÂФ·¤ÆÆä˶²¤ë¤Ù¤ÎϤòȯ´ø¤¹¤ë¡£";
3019 info[i++] = "It is especially deadly against humans.";
3024 if (have_flag(flgs, TR_FORCE_WEAPON))
3027 info[i++] = "¤½¤ì¤Ï»ÈÍѼԤÎËâÎϤò»È¤Ã¤Æ¹¶·â¤¹¤ë¡£";
3029 info[i++] = "It powerfully strikes at a monster using your mana.";
3033 if (have_flag(flgs, TR_DEC_MANA))
3036 info[i++] = "¤½¤ì¤ÏËâÎϤξÃÈñ¤ò²¡¤µ¤¨¤ë¡£";
3038 info[i++] = "It decreases your mana consumption.";
3042 if (have_flag(flgs, TR_SUST_STR))
3045 info[i++] = "¤½¤ì¤Ï¤¢¤Ê¤¿¤ÎÏÓÎϤò°Ý»ý¤¹¤ë¡£";
3047 info[i++] = "It sustains your strength.";
3051 if (have_flag(flgs, TR_SUST_INT))
3054 info[i++] = "¤½¤ì¤Ï¤¢¤Ê¤¿¤ÎÃÎǽ¤ò°Ý»ý¤¹¤ë¡£";
3056 info[i++] = "It sustains your intelligence.";
3060 if (have_flag(flgs, TR_SUST_WIS))
3063 info[i++] = "¤½¤ì¤Ï¤¢¤Ê¤¿¤Î¸¤µ¤ò°Ý»ý¤¹¤ë¡£";
3065 info[i++] = "It sustains your wisdom.";
3069 if (have_flag(flgs, TR_SUST_DEX))
3072 info[i++] = "¤½¤ì¤Ï¤¢¤Ê¤¿¤Î´ïÍѤµ¤ò°Ý»ý¤¹¤ë¡£";
3074 info[i++] = "It sustains your dexterity.";
3078 if (have_flag(flgs, TR_SUST_CON))
3081 info[i++] = "¤½¤ì¤Ï¤¢¤Ê¤¿¤ÎÂѵ×ÎϤò°Ý»ý¤¹¤ë¡£";
3083 info[i++] = "It sustains your constitution.";
3087 if (have_flag(flgs, TR_SUST_CHR))
3090 info[i++] = "¤½¤ì¤Ï¤¢¤Ê¤¿¤ÎÌ¥ÎϤò°Ý»ý¤¹¤ë¡£";
3092 info[i++] = "It sustains your charisma.";
3097 if (have_flag(flgs, TR_IM_ACID))
3100 info[i++] = "¤½¤ì¤Ï»À¤ËÂФ¹¤ë´°Á´¤ÊÌȱ֤ò¼ø¤±¤ë¡£";
3102 info[i++] = "It provides immunity to acid.";
3106 if (have_flag(flgs, TR_IM_ELEC))
3109 info[i++] = "¤½¤ì¤ÏÅÅ·â¤ËÂФ¹¤ë´°Á´¤ÊÌȱ֤ò¼ø¤±¤ë¡£";
3111 info[i++] = "It provides immunity to electricity.";
3115 if (have_flag(flgs, TR_IM_FIRE))
3118 info[i++] = "¤½¤ì¤Ï²Ð¤ËÂФ¹¤ë´°Á´¤ÊÌȱ֤ò¼ø¤±¤ë¡£";
3120 info[i++] = "It provides immunity to fire.";
3124 if (have_flag(flgs, TR_IM_COLD))
3127 info[i++] = "¤½¤ì¤Ï´¨¤µ¤ËÂФ¹¤ë´°Á´¤ÊÌȱ֤ò¼ø¤±¤ë¡£";
3129 info[i++] = "It provides immunity to cold.";
3134 if (have_flag(flgs, TR_THROW))
3137 info[i++] = "¤½¤ì¤ÏŨ¤ËÅꤲ¤ÆÂ礤ʥÀ¥á¡¼¥¸¤òÍ¿¤¨¤ë¤³¤È¤¬¤Ç¤¤ë¡£";
3139 info[i++] = "It is perfectly balanced for throwing.";
3143 if (have_flag(flgs, TR_FREE_ACT))
3146 info[i++] = "¤½¤ì¤ÏËãáã¤ËÂФ¹¤ë´°Á´¤ÊÌȱ֤ò¼ø¤±¤ë¡£";
3148 info[i++] = "It provides immunity to paralysis.";
3152 if (have_flag(flgs, TR_HOLD_LIFE))
3155 info[i++] = "¤½¤ì¤ÏÀ¸Ì¿Îϵۼý¤ËÂФ¹¤ëÂÑÀ¤ò¼ø¤±¤ë¡£";
3157 info[i++] = "It provides resistance to life draining.";
3161 if (have_flag(flgs, TR_RES_FEAR))
3164 info[i++] = "¤½¤ì¤Ï¶²Éݤؤδ°Á´¤ÊÂÑÀ¤ò¼ø¤±¤ë¡£";
3166 info[i++] = "It makes you completely fearless.";
3170 if (have_flag(flgs, TR_RES_ACID))
3173 info[i++] = "¤½¤ì¤Ï»À¤Ø¤ÎÂÑÀ¤ò¼ø¤±¤ë¡£";
3175 info[i++] = "It provides resistance to acid.";
3179 if (have_flag(flgs, TR_RES_ELEC))
3182 info[i++] = "¤½¤ì¤ÏÅÅ·â¤Ø¤ÎÂÑÀ¤ò¼ø¤±¤ë¡£";
3184 info[i++] = "It provides resistance to electricity.";
3188 if (have_flag(flgs, TR_RES_FIRE))
3191 info[i++] = "¤½¤ì¤Ï²Ð¤Ø¤ÎÂÑÀ¤ò¼ø¤±¤ë¡£";
3193 info[i++] = "It provides resistance to fire.";
3197 if (have_flag(flgs, TR_RES_COLD))
3200 info[i++] = "¤½¤ì¤Ï´¨¤µ¤Ø¤ÎÂÑÀ¤ò¼ø¤±¤ë¡£";
3202 info[i++] = "It provides resistance to cold.";
3206 if (have_flag(flgs, TR_RES_POIS))
3209 info[i++] = "¤½¤ì¤ÏÆǤؤÎÂÑÀ¤ò¼ø¤±¤ë¡£";
3211 info[i++] = "It provides resistance to poison.";
3216 if (have_flag(flgs, TR_RES_LITE))
3219 info[i++] = "¤½¤ì¤ÏÁ®¸÷¤Ø¤ÎÂÑÀ¤ò¼ø¤±¤ë¡£";
3221 info[i++] = "It provides resistance to light.";
3225 if (have_flag(flgs, TR_RES_DARK))
3228 info[i++] = "¤½¤ì¤Ï°Å¹õ¤Ø¤ÎÂÑÀ¤ò¼ø¤±¤ë¡£";
3230 info[i++] = "It provides resistance to dark.";
3235 if (have_flag(flgs, TR_RES_BLIND))
3238 info[i++] = "¤½¤ì¤ÏÌÕÌܤؤÎÂÑÀ¤ò¼ø¤±¤ë¡£";
3240 info[i++] = "It provides resistance to blindness.";
3244 if (have_flag(flgs, TR_RES_CONF))
3247 info[i++] = "¤½¤ì¤Ïº®Íð¤Ø¤ÎÂÑÀ¤ò¼ø¤±¤ë¡£";
3249 info[i++] = "It provides resistance to confusion.";
3253 if (have_flag(flgs, TR_RES_SOUND))
3256 info[i++] = "¤½¤ì¤Ï¹ì²»¤Ø¤ÎÂÑÀ¤ò¼ø¤±¤ë¡£";
3258 info[i++] = "It provides resistance to sound.";
3262 if (have_flag(flgs, TR_RES_SHARDS))
3265 info[i++] = "¤½¤ì¤ÏÇËÊҤؤÎÂÑÀ¤ò¼ø¤±¤ë¡£";
3267 info[i++] = "It provides resistance to shards.";
3272 if (have_flag(flgs, TR_RES_NETHER))
3275 info[i++] = "¤½¤ì¤ÏÃϹö¤Ø¤ÎÂÑÀ¤ò¼ø¤±¤ë¡£";
3277 info[i++] = "It provides resistance to nether.";
3281 if (have_flag(flgs, TR_RES_NEXUS))
3284 info[i++] = "¤½¤ì¤Ï°ø²Ìº®Íð¤Ø¤ÎÂÑÀ¤ò¼ø¤±¤ë¡£";
3286 info[i++] = "It provides resistance to nexus.";
3290 if (have_flag(flgs, TR_RES_CHAOS))
3293 info[i++] = "¤½¤ì¤Ï¥«¥ª¥¹¤Ø¤ÎÂÑÀ¤ò¼ø¤±¤ë¡£";
3295 info[i++] = "It provides resistance to chaos.";
3299 if (have_flag(flgs, TR_RES_DISEN))
3302 info[i++] = "¤½¤ì¤ÏÎô²½¤Ø¤ÎÂÑÀ¤ò¼ø¤±¤ë¡£";
3304 info[i++] = "It provides resistance to disenchantment.";
3309 if (have_flag(flgs, TR_FEATHER))
3312 info[i++] = "¤½¤ì¤ÏÃè¤ËÉ⤯¤³¤È¤ò²Äǽ¤Ë¤¹¤ë¡£";
3314 info[i++] = "It allows you to levitate.";
3318 if (have_flag(flgs, TR_LITE))
3320 if ((o_ptr->name2 == EGO_DARK) || (o_ptr->name1 == ART_NIGHT))
3322 info[i++] = "¤½¤ì¤ÏÌÀ¤«¤ê¤ÎȾ·Â¤ò¶¹¤á¤ë(Ⱦ·Â¤Ë-1)¡£";
3324 info[i++] = "It decreases radius of your light source by 1.";
3328 info[i++] = "¤½¤ì¤Ï±Ê±ó¤ÎÌÀ¤«¤ê¤ò¼ø¤±¤ë(Ⱦ·Â¤Ë+1)¡£";
3330 info[i++] = "It provides permanent light. (radius +1)";
3334 if (have_flag(flgs, TR_SEE_INVIS))
3337 info[i++] = "¤½¤ì¤ÏÆ©ÌÀ¤Ê¥â¥ó¥¹¥¿¡¼¤ò¸«¤ë¤³¤È¤ò²Äǽ¤Ë¤¹¤ë¡£";
3339 info[i++] = "It allows you to see invisible monsters.";
3343 if (have_flag(flgs, TR_TELEPATHY))
3346 info[i++] = "¤½¤ì¤Ï¥Æ¥ì¥Ñ¥·¡¼Ç½ÎϤò¼ø¤±¤ë¡£";
3348 info[i++] = "It gives telepathic powers.";
3352 if (have_flag(flgs, TR_ESP_ANIMAL))
3355 info[i++] = "¤½¤ì¤Ï¼«Á³³¦¤ÎÀ¸Êª¤ò´¶ÃΤ¹¤ë¡£";
3357 info[i++] = "It senses natural creatures.";
3361 if (have_flag(flgs, TR_ESP_UNDEAD))
3364 info[i++] = "¤½¤ì¤Ï¥¢¥ó¥Ç¥Ã¥É¤ò´¶ÃΤ¹¤ë¡£";
3366 info[i++] = "It senses undead.";
3370 if (have_flag(flgs, TR_ESP_DEMON))
3373 info[i++] = "¤½¤ì¤Ï°Ëâ¤ò´¶ÃΤ¹¤ë¡£";
3375 info[i++] = "It senses demons.";
3379 if (have_flag(flgs, TR_ESP_ORC))
3382 info[i++] = "¤½¤ì¤Ï¥ª¡¼¥¯¤ò´¶ÃΤ¹¤ë¡£";
3384 info[i++] = "It senses orcs.";
3388 if (have_flag(flgs, TR_ESP_TROLL))
3391 info[i++] = "¤½¤ì¤Ï¥È¥í¥ë¤ò´¶ÃΤ¹¤ë¡£";
3393 info[i++] = "It senses trolls.";
3397 if (have_flag(flgs, TR_ESP_GIANT))
3400 info[i++] = "¤½¤ì¤Ïµð¿Í¤ò´¶ÃΤ¹¤ë¡£";
3402 info[i++] = "It senses giants.";
3406 if (have_flag(flgs, TR_ESP_DRAGON))
3409 info[i++] = "¤½¤ì¤Ï¥É¥é¥´¥ó¤ò´¶ÃΤ¹¤ë¡£";
3411 info[i++] = "It senses dragons.";
3415 if (have_flag(flgs, TR_ESP_HUMAN))
3418 info[i++] = "¤½¤ì¤Ï¿Í´Ö¤ò´¶ÃΤ¹¤ë¡£";
3420 info[i++] = "It senses humans.";
3424 if (have_flag(flgs, TR_ESP_EVIL))
3427 info[i++] = "¤½¤ì¤Ï¼Ù°¤Ê¸ºß¤ò´¶ÃΤ¹¤ë¡£";
3429 info[i++] = "It senses evil creatures.";
3433 if (have_flag(flgs, TR_ESP_GOOD))
3436 info[i++] = "¤½¤ì¤ÏÁ±Îɤʸºß¤ò´¶ÃΤ¹¤ë¡£";
3438 info[i++] = "It senses good creatures.";
3442 if (have_flag(flgs, TR_ESP_NONLIVING))
3445 info[i++] = "¤½¤ì¤Ï³èÆ°¤¹¤ë̵À¸ÊªÂΤò´¶ÃΤ¹¤ë¡£";
3447 info[i++] = "It senses non-living creatures.";
3451 if (have_flag(flgs, TR_ESP_UNIQUE))
3454 info[i++] = "¤½¤ì¤ÏÆÃÊ̤ʶ¯Å¨¤ò´¶ÃΤ¹¤ë¡£";
3456 info[i++] = "It senses unique monsters.";
3460 if (have_flag(flgs, TR_SLOW_DIGEST))
3463 info[i++] = "¤½¤ì¤Ï¤¢¤Ê¤¿¤Î¿·ÄÄÂå¼Õ¤òÃÙ¤¯¤¹¤ë¡£";
3465 info[i++] = "It slows your metabolism.";
3469 if (have_flag(flgs, TR_REGEN))
3472 info[i++] = "¤½¤ì¤ÏÂÎÎϲóÉüÎϤò¶¯²½¤¹¤ë¡£";
3474 info[i++] = "It speeds your regenerative powers.";
3478 if (have_flag(flgs, TR_WARNING))
3481 info[i++] = "¤½¤ì¤Ï´í¸±¤ËÂФ·¤Æ·Ù¹ð¤òȯ¤¹¤ë¡£";
3483 info[i++] = "It warns you of danger";
3487 if (have_flag(flgs, TR_REFLECT))
3490 info[i++] = "¤½¤ì¤ÏÌð¤ä¥Ü¥ë¥È¤òÈ¿¼Í¤¹¤ë¡£";
3492 info[i++] = "It reflects bolts and arrows.";
3496 if (have_flag(flgs, TR_SH_FIRE))
3499 info[i++] = "¤½¤ì¤Ï±ê¤Î¥Ð¥ê¥¢¤òÄ¥¤ë¡£";
3501 info[i++] = "It produces a fiery sheath.";
3505 if (have_flag(flgs, TR_SH_ELEC))
3508 info[i++] = "¤½¤ì¤ÏÅŵ¤¤Î¥Ð¥ê¥¢¤òÄ¥¤ë¡£";
3510 info[i++] = "It produces an electric sheath.";
3514 if (have_flag(flgs, TR_SH_COLD))
3517 info[i++] = "¤½¤ì¤ÏÎ䵤¤Î¥Ð¥ê¥¢¤òÄ¥¤ë¡£";
3519 info[i++] = "It produces a sheath of coldness.";
3523 if (have_flag(flgs, TR_NO_MAGIC))
3526 info[i++] = "¤½¤ì¤ÏÈ¿ËâË¡¥Ð¥ê¥¢¤òÄ¥¤ë¡£";
3528 info[i++] = "It produces an anti-magic shell.";
3532 if (have_flag(flgs, TR_NO_TELE))
3535 info[i++] = "¤½¤ì¤Ï¥Æ¥ì¥Ý¡¼¥È¤ò¼ÙË⤹¤ë¡£";
3537 info[i++] = "It prevents teleportation.";
3541 if (have_flag(flgs, TR_XTRA_MIGHT))
3544 info[i++] = "¤½¤ì¤ÏÌ𡿥ܥë¥È¡¿ÃƤò¤è¤ê¶¯ÎϤËȯ¼Í¤¹¤ë¤³¤È¤¬¤Ç¤¤ë¡£";
3546 info[i++] = "It fires missiles with extra might.";
3550 if (have_flag(flgs, TR_XTRA_SHOTS))
3553 info[i++] = "¤½¤ì¤ÏÌ𡿥ܥë¥È¡¿ÃƤòÈó¾ï¤ËÁ᤯ȯ¼Í¤¹¤ë¤³¤È¤¬¤Ç¤¤ë¡£";
3555 info[i++] = "It fires missiles excessively fast.";
3560 if (have_flag(flgs, TR_BLESSED))
3563 info[i++] = "¤½¤ì¤Ï¿À¤Ë½ËÊ¡¤µ¤ì¤Æ¤¤¤ë¡£";
3565 info[i++] = "It has been blessed by the gods.";
3570 if (cursed_p(o_ptr))
3572 if (o_ptr->curse_flags & TRC_PERMA_CURSE)
3575 info[i++] = "¤½¤ì¤Ï±Ê±ó¤Î¼ö¤¤¤¬¤«¤±¤é¤ì¤Æ¤¤¤ë¡£";
3577 info[i++] = "It is permanently cursed.";
3581 else if (o_ptr->curse_flags & TRC_HEAVY_CURSE)
3584 info[i++] = "¤½¤ì¤Ï¶¯ÎϤʼö¤¤¤¬¤«¤±¤é¤ì¤Æ¤¤¤ë¡£";
3586 info[i++] = "It is heavily cursed.";
3593 info[i++] = "¤½¤ì¤Ï¼ö¤ï¤ì¤Æ¤¤¤ë¡£";
3595 info[i++] = "It is cursed.";
3601 if ((have_flag(flgs, TR_TY_CURSE)) || (o_ptr->curse_flags & TRC_TY_CURSE))
3604 info[i++] = "¤½¤ì¤ÏÂÀ¸Å¤Î²Ò¡¹¤·¤¤±åÇ°¤¬½É¤Ã¤Æ¤¤¤ë¡£";
3606 info[i++] = "It carries an ancient foul curse.";
3610 if ((have_flag(flgs, TR_AGGRAVATE)) || (o_ptr->curse_flags & TRC_AGGRAVATE))
3613 info[i++] = "¤½¤ì¤ÏÉÕ¶á¤Î¥â¥ó¥¹¥¿¡¼¤òÅܤ餻¤ë¡£";
3615 info[i++] = "It aggravates nearby creatures.";
3619 if ((have_flag(flgs, TR_DRAIN_EXP)) || (o_ptr->curse_flags & TRC_DRAIN_EXP))
3622 info[i++] = "¤½¤ì¤Ï·Ð¸³ÃͤòµÛ¤¤¼è¤ë¡£";
3624 info[i++] = "It drains experience.";
3628 if (o_ptr->curse_flags & TRC_SLOW_REGEN)
3631 info[i++] = "¤½¤ì¤Ï²óÉüÎϤò¼å¤á¤ë¡£";
3633 info[i++] = "It slows your regenerative powers.";
3637 if (o_ptr->curse_flags & TRC_ADD_L_CURSE)
3640 info[i++] = "¤½¤ì¤Ï¼å¤¤¼ö¤¤¤òÁý¤ä¤¹¡£";
3642 info[i++] = "It adds weak curses.";
3646 if (o_ptr->curse_flags & TRC_ADD_H_CURSE)
3649 info[i++] = "¤½¤ì¤Ï¶¯ÎϤʼö¤¤¤òÁý¤ä¤¹¡£";
3651 info[i++] = "It adds heavy curses.";
3655 if (o_ptr->curse_flags & TRC_CALL_ANIMAL)
3658 info[i++] = "¤½¤ì¤Ïưʪ¤ò¸Æ¤Ó´ó¤»¤ë¡£";
3660 info[i++] = "It attracts animals.";
3664 if (o_ptr->curse_flags & TRC_CALL_DEMON)
3667 info[i++] = "¤½¤ì¤Ï°Ëâ¤ò¸Æ¤Ó´ó¤»¤ë¡£";
3669 info[i++] = "It attracts demons.";
3673 if (o_ptr->curse_flags & TRC_CALL_DRAGON)
3676 info[i++] = "¤½¤ì¤Ï¥É¥é¥´¥ó¤ò¸Æ¤Ó´ó¤»¤ë¡£";
3678 info[i++] = "It attracts dragons.";
3682 if (o_ptr->curse_flags & TRC_COWARDICE)
3685 info[i++] = "¤½¤ì¤Ï¶²ÉÝ´¶¤ò°ú¤µ¯¤³¤¹¡£";
3687 info[i++] = "It makes you subject to cowardice.";
3691 if ((have_flag(flgs, TR_TELEPORT)) || (o_ptr->curse_flags & TRC_TELEPORT))
3694 info[i++] = "¤½¤ì¤Ï¥é¥ó¥À¥à¤Ê¥Æ¥ì¥Ý¡¼¥È¤ò°ú¤µ¯¤³¤¹¡£";
3696 info[i++] = "It induces random teleportation.";
3700 if (o_ptr->curse_flags & TRC_LOW_MELEE)
3703 info[i++] = "¤½¤ì¤Ï¹¶·â¤ò³°¤·¤ä¤¹¤¤¡£";
3705 info[i++] = "It causes you to miss blows.";
3709 if (o_ptr->curse_flags & TRC_LOW_AC)
3712 info[i++] = "¤½¤ì¤Ï¹¶·â¤ò¼õ¤±¤ä¤¹¤¤¡£";
3714 info[i++] = "It helps your enemies' blows.";
3718 if (o_ptr->curse_flags & TRC_LOW_MAGIC)
3721 info[i++] = "¤½¤ì¤ÏËâË¡¤ò¾§¤¨¤Ë¤¯¤¯¤¹¤ë¡£";
3723 info[i++] = "It encumbers you while spellcasting.";
3727 if (o_ptr->curse_flags & TRC_FAST_DIGEST)
3730 info[i++] = "¤½¤ì¤Ï¤¢¤Ê¤¿¤Î¿·ÄÄÂå¼Õ¤ò®¤¯¤¹¤ë¡£";
3732 info[i++] = "It speeds your metabolism.";
3736 if (o_ptr->curse_flags & TRC_DRAIN_HP)
3739 info[i++] = "¤½¤ì¤Ï¤¢¤Ê¤¿¤ÎÂÎÎϤòµÛ¤¤¼è¤ë¡£";
3741 info[i++] = "It drains you.";
3745 if (o_ptr->curse_flags & TRC_DRAIN_MANA)
3748 info[i++] = "¤½¤ì¤Ï¤¢¤Ê¤¿¤ÎËâÎϤòµÛ¤¤¼è¤ë¡£";
3750 info[i++] = "It drains your mana.";
3755 /* Describe about this kind of object instead of THIS fake object */
3758 switch (o_ptr->tval)
3761 switch (o_ptr->sval)
3763 case SV_RING_LORDLY:
3765 info[i++] = "¤½¤ì¤Ï´ö¤Ä¤«¤Î¥é¥ó¥À¥à¤ÊÂÑÀ¤ò¼ø¤±¤ë¡£";
3767 info[i++] = "It provides some random resistances.";
3770 case SV_RING_WARNING:
3772 info[i++] = "¤½¤ì¤Ï¤Ò¤È¤Ä¤ÎÄãµé¤ÊESP¤ò¼ø¤±¤ë»ö¤¬¤¢¤ë¡£";
3774 info[i++] = "It may provide a low rank ESP.";
3781 switch (o_ptr->sval)
3783 case SV_AMULET_RESISTANCE:
3785 info[i++] = "¤½¤ì¤ÏÆǤؤÎÂÑÀ¤ò¼ø¤±¤ë»ö¤¬¤¢¤ë¡£";
3787 info[i++] = "It may provides resistance to poison.";
3790 info[i++] = "¤½¤ì¤Ï¥é¥ó¥À¥à¤ÊÂÑÀ¤ò¼ø¤±¤ë»ö¤¬¤¢¤ë¡£";
3792 info[i++] = "It may provide a random resistances.";
3795 case SV_AMULET_THE_MAGI:
3797 info[i++] = "¤½¤ì¤ÏºÇÂç¤Ç£³¤Ä¤Þ¤Ç¤ÎÄãµé¤ÊESP¤ò¼ø¤±¤ë¡£";
3799 info[i++] = "It provides up to three low rank ESPs.";
3807 if (have_flag(flgs, TR_IGNORE_ACID) &&
3808 have_flag(flgs, TR_IGNORE_ELEC) &&
3809 have_flag(flgs, TR_IGNORE_FIRE) &&
3810 have_flag(flgs, TR_IGNORE_COLD))
3813 info[i++] = "¤½¤ì¤Ï»À¡¦Åŷ⡦²Ð±ê¡¦Î䵤¤Ç¤Ï½ý¤Ä¤«¤Ê¤¤¡£";
3815 info[i++] = "It cannot be harmed by the elements.";
3820 if (have_flag(flgs, TR_IGNORE_ACID))
3823 info[i++] = "¤½¤ì¤Ï»À¤Ç¤Ï½ý¤Ä¤«¤Ê¤¤¡£";
3825 info[i++] = "It cannot be harmed by acid.";
3828 if (have_flag(flgs, TR_IGNORE_ELEC))
3831 info[i++] = "¤½¤ì¤ÏÅÅ·â¤Ç¤Ï½ý¤Ä¤«¤Ê¤¤¡£";
3833 info[i++] = "It cannot be harmed by electricity.";
3836 if (have_flag(flgs, TR_IGNORE_FIRE))
3839 info[i++] = "¤½¤ì¤Ï²Ð±ê¤Ç¤Ï½ý¤Ä¤«¤Ê¤¤¡£";
3841 info[i++] = "It cannot be harmed by fire.";
3844 if (have_flag(flgs, TR_IGNORE_COLD))
3847 info[i++] = "¤½¤ì¤ÏÎ䵤¤Ç¤Ï½ý¤Ä¤«¤Ê¤¤¡£";
3849 info[i++] = "It cannot be harmed by cold.";
3854 /* No special effects */
3855 if (!i) return (FALSE);
3857 /* Save the screen */
3861 Term_get_size(&wid, &hgt);
3863 /* Display Item name */
3865 object_desc(o_name, o_ptr, TRUE, 3);
3867 object_desc_store(o_name, o_ptr, TRUE, 0);
3871 /* Erase the screen */
3872 for (k = 1; k < hgt; k++) prt("", k, 13);
3874 /* Label the information */
3875 if ((o_ptr->tval == TV_STATUE) && (o_ptr->sval == SV_PHOTO))
3877 monster_race *r_ptr = &r_info[o_ptr->pval];
3878 int namelen = strlen(r_name + r_ptr->name);
3879 prt(format("%s: '", r_name + r_ptr->name), 1, 15);
3880 c_prt(r_ptr->d_attr, format("%c", r_ptr->d_char), 1, 18+namelen);
3881 prt("'", 1, 19+namelen);
3885 prt(" ¥¢¥¤¥Æ¥à¤ÎǽÎÏ:", 1, 15);
3887 prt(" Item Attributes:", 1, 15);
3890 /* We will print on top of the map (column 13) */
3891 for (k = 2, j = 0; j < i; j++)
3894 prt(info[j], k++, 15);
3896 /* Every 20 entries (lines 2 to 21), start over */
3897 if ((k == hgt - 2) && (j+1 < i))
3900 prt("-- ³¤¯ --", k, 15);
3902 prt("-- more --", k, 15);
3905 for (; k > 2; k--) prt("", k, 15);
3911 prt("[²¿¤«¥¡¼¤ò²¡¤¹¤È¥²¡¼¥à¤ËÌá¤ê¤Þ¤¹]", k, 15);
3913 prt("[Press any key to continue]", k, 15);
3918 /* Restore the screen */
3921 /* Gave knowledge */
3928 * Convert an inventory index into a one character label
3929 * Note that the label does NOT distinguish inven/equip.
3931 char index_to_label(int i)
3933 /* Indexes for "inven" are easy */
3934 if (i < INVEN_RARM) return (I2A(i));
3936 /* Indexes for "equip" are offset */
3937 return (I2A(i - INVEN_RARM));
3942 * Convert a label into the index of an item in the "inven"
3943 * Return "-1" if the label does not indicate a real item
3945 s16b label_to_inven(int c)
3950 i = (islower(c) ? A2I(c) : -1);
3952 /* Verify the index */
3953 if ((i < 0) || (i > INVEN_PACK)) return (-1);
3955 /* Empty slots can never be chosen */
3956 if (!inventory[i].k_idx) return (-1);
3958 /* Return the index */
3964 * Convert a label into the index of a item in the "equip"
3965 * Return "-1" if the label does not indicate a real item
3967 s16b label_to_equip(int c)
3972 i = (islower(c) ? A2I(c) : -1) + INVEN_RARM;
3974 /* Verify the index */
3975 if ((i < INVEN_RARM) || (i >= INVEN_TOTAL)) return (-1);
3977 /* Empty slots can never be chosen */
3978 if (!inventory[i].k_idx) return (-1);
3980 /* Return the index */
3987 * Determine which equipment slot (if any) an item likes
3989 s16b wield_slot(object_type *o_ptr)
3991 /* Slot for equipment */
3992 switch (o_ptr->tval)
3999 if (!inventory[INVEN_RARM].k_idx) return (INVEN_RARM);
4000 if (inventory[INVEN_LARM].k_idx) return (INVEN_RARM);
4001 return (INVEN_LARM);
4008 if (!inventory[INVEN_LARM].k_idx) return (INVEN_LARM);
4009 if (inventory[INVEN_RARM].k_idx) return (INVEN_LARM);
4010 return (INVEN_RARM);
4020 /* Use the right hand first */
4021 if (!inventory[INVEN_RIGHT].k_idx) return (INVEN_RIGHT);
4023 /* Use the left hand for swapping (by default) */
4024 return (INVEN_LEFT);
4030 return (INVEN_NECK);
4035 return (INVEN_LITE);
4042 return (INVEN_BODY);
4047 return (INVEN_OUTER);
4053 return (INVEN_HEAD);
4058 return (INVEN_HANDS);
4063 return (INVEN_FEET);
4067 /* No slot available */
4073 * Return a string mentioning how a given item is carried
4075 cptr mention_use(int i)
4079 /* Examine the location */
4083 case INVEN_RARM: p = p_ptr->ryoute ? " ξ¼ê" : (left_hander ? " º¸¼ê" : " ±¦¼ê"); break;
4085 case INVEN_RARM: p = "Wielding"; break;
4089 case INVEN_LARM: p = (left_hander ? " ±¦¼ê" : " º¸¼ê"); break;
4091 case INVEN_LARM: p = "On arm"; break;
4095 case INVEN_BOW: p = "¼Í·âÍÑ"; break;
4097 case INVEN_BOW: p = "Shooting"; break;
4101 case INVEN_LEFT: p = (left_hander ? "±¦¼ê»Ø" : "º¸¼ê»Ø"); break;
4103 case INVEN_LEFT: p = "On left hand"; break;
4107 case INVEN_RIGHT: p = (left_hander ? "º¸¼ê»Ø" : "±¦¼ê»Ø"); break;
4109 case INVEN_RIGHT: p = "On right hand"; break;
4113 case INVEN_NECK: p = " ¼ó"; break;
4115 case INVEN_NECK: p = "Around neck"; break;
4119 case INVEN_LITE: p = " ¸÷¸»"; break;
4121 case INVEN_LITE: p = "Light source"; break;
4125 case INVEN_BODY: p = " ÂÎ"; break;
4127 case INVEN_BODY: p = "On body"; break;
4131 case INVEN_OUTER: p = "ÂΤξå"; break;
4133 case INVEN_OUTER: p = "About body"; break;
4137 case INVEN_HEAD: p = " Ƭ"; break;
4139 case INVEN_HEAD: p = "On head"; break;
4143 case INVEN_HANDS: p = " ¼ê"; break;
4145 case INVEN_HANDS: p = "On hands"; break;
4149 case INVEN_FEET: p = " "; break;
4151 case INVEN_FEET: p = "On feet"; break;
4155 default: p = "¥¶¥Ã¥¯"; break;
4157 default: p = "In pack"; break;
4162 /* Hack -- Heavy weapon */
4163 if (i == INVEN_RARM)
4165 if (p_ptr->heavy_wield[0])
4176 /* Hack -- Heavy weapon */
4177 if (i == INVEN_LARM)
4179 if (p_ptr->heavy_wield[1])
4190 /* Hack -- Heavy bow */
4194 o_ptr = &inventory[i];
4195 if (adj_str_hold[p_ptr->stat_ind[A_STR]] < o_ptr->weight / 10)
4206 /* Return the result */
4212 * Return a string describing how a given item is being worn.
4213 * Currently, only used for items in the equipment, not inventory.
4215 cptr describe_use(int i)
4222 case INVEN_RARM: p = p_ptr->ryoute ? " ξ¼ê¤ËÁõÈ÷¤·¤Æ¤¤¤ë" : (left_hander ? " º¸¼ê¤ËÁõÈ÷¤·¤Æ¤¤¤ë" : " ±¦¼ê¤ËÁõÈ÷¤·¤Æ¤¤¤ë"); break;
4224 case INVEN_RARM: p = "attacking monsters with"; break;
4228 case INVEN_LARM: p = (left_hander ? " ±¦¼ê¤ËÁõÈ÷¤·¤Æ¤¤¤ë" : " º¸¼ê¤ËÁõÈ÷¤·¤Æ¤¤¤ë"); break;
4230 case INVEN_LARM: p = "wearing on your arm"; break;
4234 case INVEN_BOW: p = "¼Í·âÍѤËÁõÈ÷¤·¤Æ¤¤¤ë"; break;
4236 case INVEN_BOW: p = "shooting missiles with"; break;
4240 case INVEN_LEFT: p = (left_hander ? "±¦¼ê¤Î»Ø¤Ë¤Ï¤á¤Æ¤¤¤ë" : "º¸¼ê¤Î»Ø¤Ë¤Ï¤á¤Æ¤¤¤ë"); break;
4242 case INVEN_LEFT: p = "wearing on your left hand"; break;
4246 case INVEN_RIGHT: p = (left_hander ? "º¸¼ê¤Î»Ø¤Ë¤Ï¤á¤Æ¤¤¤ë" : "±¦¼ê¤Î»Ø¤Ë¤Ï¤á¤Æ¤¤¤ë"); break;
4248 case INVEN_RIGHT: p = "wearing on your right hand"; break;
4252 case INVEN_NECK: p = "¼ó¤Ë¤«¤±¤Æ¤¤¤ë"; break;
4254 case INVEN_NECK: p = "wearing around your neck"; break;
4258 case INVEN_LITE: p = "¸÷¸»¤Ë¤·¤Æ¤¤¤ë"; break;
4260 case INVEN_LITE: p = "using to light the way"; break;
4264 case INVEN_BODY: p = "ÂΤËÃå¤Æ¤¤¤ë"; break;
4266 case INVEN_BODY: p = "wearing on your body"; break;
4270 case INVEN_OUTER: p = "¿È¤Ë¤Þ¤È¤Ã¤Æ¤¤¤ë"; break;
4272 case INVEN_OUTER: p = "wearing on your back"; break;
4276 case INVEN_HEAD: p = "Ƭ¤Ë¤«¤Ö¤Ã¤Æ¤¤¤ë"; break;
4278 case INVEN_HEAD: p = "wearing on your head"; break;
4282 case INVEN_HANDS: p = "¼ê¤Ë¤Ä¤±¤Æ¤¤¤ë"; break;
4284 case INVEN_HANDS: p = "wearing on your hands"; break;
4288 case INVEN_FEET: p = "¤ˤϤ¤¤Æ¤¤¤ë"; break;
4290 case INVEN_FEET: p = "wearing on your feet"; break;
4294 default: p = "¥¶¥Ã¥¯¤ËÆþ¤Ã¤Æ¤¤¤ë"; break;
4296 default: p = "carrying in your pack"; break;
4301 /* Hack -- Heavy weapon */
4302 if (i == INVEN_RARM)
4305 int hold = adj_str_hold[p_ptr->stat_ind[A_STR]];
4307 if (p_ptr->ryoute) hold *= 2;
4308 o_ptr = &inventory[i];
4309 if (hold < o_ptr->weight / 10)
4320 /* Hack -- Heavy bow */
4324 o_ptr = &inventory[i];
4325 if (adj_str_hold[p_ptr->stat_ind[A_STR]] < o_ptr->weight / 10)
4328 p = "»ý¤Ä¤À¤±¤ÇÀº°ìÇÕ¤Î";
4336 /* Return the result */
4341 /* Hack: Check if a spellbook is one of the realms we can use. -- TY */
4343 bool check_book_realm(const byte book_tval, const byte book_sval)
4345 if (book_tval < TV_LIFE_BOOK) return FALSE;
4346 if (p_ptr->pclass == CLASS_SORCERER)
4348 return is_magic(tval2realm(book_tval));
4350 else if (p_ptr->pclass == CLASS_RED_MAGE)
4352 if (is_magic(tval2realm(book_tval)))
4353 return ((book_tval == TV_ARCANE_BOOK) || (book_sval < 2));
4355 return (REALM1_BOOK == book_tval || REALM2_BOOK == book_tval);
4360 * Check an item against the item tester info
4362 bool item_tester_okay(object_type *o_ptr)
4364 /* Hack -- allow listing empty slots */
4365 if (item_tester_full) return (TRUE);
4367 /* Require an item */
4368 if (!o_ptr->k_idx) return (FALSE);
4370 /* Hack -- ignore "gold" */
4371 if (o_ptr->tval == TV_GOLD) return (FALSE);
4373 /* Check the tval */
4374 if (item_tester_tval)
4376 /* Is it a spellbook? If so, we need a hack -- TY */
4377 if ((item_tester_tval <= TV_DEATH_BOOK) &&
4378 (item_tester_tval >= TV_LIFE_BOOK))
4379 return check_book_realm(o_ptr->tval, o_ptr->sval);
4381 if (item_tester_tval != o_ptr->tval) return (FALSE);
4384 /* Check the hook */
4385 if (item_tester_hook)
4387 if (!(*item_tester_hook)(o_ptr)) return (FALSE);
4398 * Choice window "shadow" of the "show_inven()" function
4400 void display_inven(void)
4402 register int i, n, z = 0;
4404 byte attr = TERM_WHITE;
4406 char o_name[MAX_NLEN];
4410 Term_get_size(&wid, &hgt);
4412 /* Find the "final" slot */
4413 for (i = 0; i < INVEN_PACK; i++)
4415 o_ptr = &inventory[i];
4417 /* Skip non-objects */
4418 if (!o_ptr->k_idx) continue;
4424 /* Display the pack */
4425 for (i = 0; i < z; i++)
4427 /* Examine the item */
4428 o_ptr = &inventory[i];
4430 /* Start with an empty "index" */
4431 tmp_val[0] = tmp_val[1] = tmp_val[2] = ' ';
4433 /* Is this item "acceptable"? */
4434 if (item_tester_okay(o_ptr))
4436 /* Prepare an "index" */
4437 tmp_val[0] = index_to_label(i);
4439 /* Bracket the "index" --(-- */
4443 /* Display the index (or blank space) */
4444 Term_putstr(0, i, 3, TERM_WHITE, tmp_val);
4446 /* Obtain an item description */
4447 object_desc(o_name, o_ptr, TRUE, 3);
4449 /* Obtain the length of the description */
4453 attr = tval_to_attr[o_ptr->tval % 128];
4455 /* Grey out charging items */
4461 /* Display the entry itself */
4462 Term_putstr(3, i, n, attr, o_name);
4464 /* Erase the rest of the line */
4465 Term_erase(3+n, i, 255);
4467 /* Display the weight if needed */
4468 if (show_weights && o_ptr->weight)
4470 int wgt = o_ptr->weight * o_ptr->number;
4472 sprintf(tmp_val, "%3d.%1d kg", lbtokg1(wgt),lbtokg2(wgt) );
4474 sprintf(tmp_val, "%3d.%1d lb", wgt / 10, wgt % 10);
4477 prt(tmp_val, i, wid - 9);
4481 /* Erase the rest of the window */
4482 for (i = z; i < hgt; i++)
4484 /* Erase the line */
4485 Term_erase(0, i, 255);
4492 * Choice window "shadow" of the "show_equip()" function
4494 void display_equip(void)
4498 byte attr = TERM_WHITE;
4500 char o_name[MAX_NLEN];
4504 Term_get_size(&wid, &hgt);
4506 /* Display the equipment */
4507 for (i = INVEN_RARM; i < INVEN_TOTAL; i++)
4509 /* Examine the item */
4510 o_ptr = &inventory[i];
4512 /* Start with an empty "index" */
4513 tmp_val[0] = tmp_val[1] = tmp_val[2] = ' ';
4515 /* Is this item "acceptable"? */
4516 if (item_tester_okay(o_ptr))
4518 /* Prepare an "index" */
4519 tmp_val[0] = index_to_label(i);
4521 /* Bracket the "index" --(-- */
4525 /* Display the index (or blank space) */
4526 Term_putstr(0, i - INVEN_RARM, 3, TERM_WHITE, tmp_val);
4528 /* Obtain an item description */
4529 if ((i == INVEN_LARM) && p_ptr->ryoute)
4532 strcpy(o_name, "(Éð´ï¤òξ¼ê»ý¤Á)");
4534 strcpy(o_name, "(wielding with two-hands)");
4540 object_desc(o_name, o_ptr, TRUE, 3);
4541 attr = tval_to_attr[o_ptr->tval % 128];
4544 /* Obtain the length of the description */
4547 /* Grey out charging items */
4553 /* Display the entry itself */
4554 Term_putstr(3, i - INVEN_RARM, n, attr, o_name);
4556 /* Erase the rest of the line */
4557 Term_erase(3+n, i - INVEN_RARM, 255);
4559 /* Display the weight (if needed) */
4560 if (show_weights && o_ptr->weight)
4562 int wgt = o_ptr->weight * o_ptr->number;
4564 sprintf(tmp_val, "%3d.%1d kg", lbtokg1(wgt) , lbtokg2(wgt));
4566 sprintf(tmp_val, "%3d.%1d lb", wgt / 10, wgt % 10);
4569 prt(tmp_val, i - INVEN_RARM, wid - (show_labels ? 28 : 9));
4572 /* Display the slot description (if needed) */
4575 Term_putstr(wid - 20, i - INVEN_RARM, -1, TERM_WHITE, " <-- ");
4576 prt(mention_use(i), i - INVEN_RARM, wid - 15);
4580 /* Erase the rest of the window */
4581 for (i = INVEN_TOTAL - INVEN_RARM; i < hgt; i++)
4583 /* Clear that line */
4584 Term_erase(0, i, 255);
4591 * Find the "first" inventory object with the given "tag".
4593 * A "tag" is a numeral "n" appearing as "@n" anywhere in the
4594 * inscription of an object. Alphabetical characters don't work as a
4597 * Also, the tag "@xn" will work as well, where "n" is a any tag-char,
4598 * and "x" is the "current" command_cmd code.
4600 static int get_tag(int *cp, char tag)
4606 /**** Find a tag in the form of {@x#} (allow alphabet tag) ***/
4608 /* Check every inventory object */
4609 for (i = 0; i < INVEN_PACK; ++i)
4611 object_type *o_ptr = &inventory[i];
4613 /* Skip non-objects */
4614 if (!o_ptr->k_idx) continue;
4616 /* Skip empty inscriptions */
4617 if (!o_ptr->inscription) continue;
4619 /* Skip non-choice */
4620 if (!item_tester_okay(o_ptr)) continue;
4623 s = strchr(quark_str(o_ptr->inscription), '@');
4625 /* Process all tags */
4628 /* Check the special tags */
4629 if ((s[1] == command_cmd) && (s[2] == tag))
4631 /* Save the actual inventory ID */
4638 /* Find another '@' */
4639 s = strchr(s + 1, '@');
4644 /**** Find a tag in the form of {@#} (allows only numerals) ***/
4646 /* Don't allow {@#} with '#' being alphabet */
4647 if (tag < '0' || '9' < tag)
4653 /* Check every object */
4654 for (i = 0; i < INVEN_TOTAL; ++i)
4656 object_type *o_ptr = &inventory[i];
4658 /* Skip non-objects */
4659 if (!o_ptr->k_idx) continue;
4661 /* Skip empty inscriptions */
4662 if (!o_ptr->inscription) continue;
4664 /* Skip non-choice */
4665 if (!item_tester_okay(o_ptr)) continue;
4668 s = strchr(quark_str(o_ptr->inscription), '@');
4670 /* Process all tags */
4673 /* Check the normal tags */
4676 /* Save the actual inventory ID */
4683 /* Find another '@' */
4684 s = strchr(s + 1, '@');
4695 * Display the inventory.
4697 * Hack -- do not display "trailing" empty slots
4699 int show_inven(int target_item)
4701 cptr alphabet_chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
4702 int i, j, k, l, z = 0;
4703 int col, cur_col, len;
4705 char o_name[MAX_NLEN];
4709 char out_desc[23][MAX_NLEN];
4710 int target_item_label = 0;
4712 char inven_spellbook_label[52+1];
4716 /* Starting column */
4720 Term_get_size(&wid, &hgt);
4722 /* Default "max-length" */
4723 len = wid - col - 1;
4726 /* Find the "final" slot */
4727 for (i = 0; i < INVEN_PACK; i++)
4729 o_ptr = &inventory[i];
4731 /* Skip non-objects */
4732 if (!o_ptr->k_idx) continue;
4738 /*** Move around label characters with correspond tags ***/
4740 /* Prepare normal labels */
4741 strcpy(inven_spellbook_label, alphabet_chars);
4743 /* Move each label */
4744 for (i = 0; i < 52; i++)
4747 char c = alphabet_chars[i];
4749 /* Find a tag with this label */
4750 if (get_tag(&index, c))
4752 /* Delete the over writen label */
4753 if (inven_spellbook_label[i] == c)
4754 inven_spellbook_label[i] = ' ';
4756 /* Move the label to the place of correspond tag */
4757 inven_spellbook_label[index] = c;
4761 /* Display the inventory */
4762 for (k = 0, i = 0; i < z; i++)
4764 o_ptr = &inventory[i];
4766 /* Is this item acceptable? */
4767 if (!item_tester_okay(o_ptr)) continue;
4769 /* Describe the object */
4770 object_desc(o_name, o_ptr, TRUE, 3);
4772 /* Save the object index, color, and description */
4774 out_color[k] = tval_to_attr[o_ptr->tval % 128];
4776 /* Grey out charging items */
4779 out_color[k] = TERM_L_DARK;
4782 (void)strcpy(out_desc[k], o_name);
4784 /* Find the predicted "line length" */
4785 l = strlen(out_desc[k]) + 5;
4787 /* Be sure to account for the weight */
4788 if (show_weights) l += 9;
4790 /* Account for icon if displayed */
4791 if (show_item_graph)
4794 if (use_bigtile) l++;
4797 /* Maintain the maximum length */
4798 if (l > len) len = l;
4800 /* Advance to next "line" */
4804 /* Find the column to start in */
4805 col = (len > wid - 4) ? 0 : (wid - len - 1);
4807 /* Output each entry */
4808 for (j = 0; j < k; j++)
4814 o_ptr = &inventory[i];
4816 /* Clear the line */
4817 prt("", j + 1, col ? col - 2 : col);
4819 if (use_menu && target_item)
4821 if (j == (target_item-1))
4824 strcpy(tmp_val, "¡Õ");
4826 strcpy(tmp_val, "> ");
4828 target_item_label = i;
4830 else strcpy(tmp_val, " ");
4832 else if (i <= INVEN_PACK)
4834 sprintf(tmp_val, "%c)", inven_spellbook_label[i]);
4838 /* Prepare an index --(-- */
4839 sprintf(tmp_val, "%c)", index_to_label(i));
4842 /* Clear the line with the (possibly indented) index */
4843 put_str(tmp_val, j + 1, col);
4847 /* Display graphics for object, if desired */
4848 if (show_item_graph)
4850 byte a = object_attr(o_ptr);
4851 char c = object_char(o_ptr);
4854 if (a & 0x80) a |= 0x40;
4857 Term_draw(cur_col, j + 1, a, c);
4862 Term_draw(cur_col, j + 1, 255, -1);
4868 /* Display the entry itself */
4869 c_put_str(out_color[j], out_desc[j], j + 1, cur_col);
4871 /* Display the weight if needed */
4874 int wgt = o_ptr->weight * o_ptr->number;
4876 (void)sprintf(tmp_val, "%3d.%1d kg", lbtokg1(wgt) , lbtokg2(wgt) );
4878 (void)sprintf(tmp_val, "%3d.%1d lb", wgt / 10, wgt % 10);
4881 prt(tmp_val, j + 1, wid - 9);
4885 /* Make a "shadow" below the list (only if needed) */
4886 if (j && (j < 23)) prt("", j + 1, col ? col - 2 : col);
4888 /* Save the new column */
4891 return target_item_label;
4897 * Display the equipment.
4899 int show_equip(int target_item)
4902 int col, cur_col, len;
4905 char o_name[MAX_NLEN];
4908 char out_desc[23][MAX_NLEN];
4909 int target_item_label = 0;
4913 /* Starting column */
4917 Term_get_size(&wid, &hgt);
4919 /* Maximal length */
4920 len = wid - col - 1;
4923 /* Scan the equipment list */
4924 for (k = 0, i = INVEN_RARM; i < INVEN_TOTAL; i++)
4926 o_ptr = &inventory[i];
4928 /* Is this item acceptable? */
4929 if (!item_tester_okay(o_ptr) && (!((i == INVEN_LARM) && p_ptr->ryoute) || item_tester_no_ryoute)) continue;
4932 object_desc(o_name, o_ptr, TRUE, 3);
4934 if ((i == INVEN_LARM) && p_ptr->ryoute)
4937 (void)strcpy(out_desc[k],"(Éð´ï¤òξ¼ê»ý¤Á)");
4939 (void)strcpy(out_desc[k],"(wielding with two-hands)");
4945 (void)strcpy(out_desc[k], o_name);
4946 out_color[k] = tval_to_attr[o_ptr->tval % 128];
4950 /* Grey out charging items */
4953 out_color[k] = TERM_L_DARK;
4956 /* Extract the maximal length (see below) */
4958 l = strlen(out_desc[k]) + (2 + 1);
4960 l = strlen(out_desc[k]) + (2 + 3);
4964 /* Increase length for labels (if needed) */
4966 if (show_labels) l += (7 + 2);
4968 if (show_labels) l += (14 + 2);
4972 /* Increase length for weight (if needed) */
4973 if (show_weights) l += 9;
4975 if (show_item_graph) l += 2;
4977 /* Maintain the max-length */
4978 if (l > len) len = l;
4980 /* Advance the entry */
4984 /* Hack -- Find a column to start in */
4986 col = (len > wid - 6) ? 0 : (wid - len - 1);
4988 col = (len > wid - 4) ? 0 : (wid - len - 1);
4992 /* Output each entry */
4993 for (j = 0; j < k; j++)
4999 o_ptr = &inventory[i];
5001 /* Clear the line */
5002 prt("", j + 1, col ? col - 2 : col);
5004 if (use_menu && target_item)
5006 if (j == (target_item-1))
5009 strcpy(tmp_val, "¡Õ");
5011 strcpy(tmp_val, "> ");
5013 target_item_label = i;
5015 else strcpy(tmp_val, " ");
5018 /* Prepare an index --(-- */
5019 sprintf(tmp_val, "%c)", index_to_label(i));
5021 /* Clear the line with the (possibly indented) index */
5022 put_str(tmp_val, j+1, col);
5026 /* Display graphics for object, if desired */
5027 if (show_item_graph)
5029 byte a = object_attr(o_ptr);
5030 char c = object_char(o_ptr);
5033 if (a & 0x80) a |= 0x40;
5036 Term_draw(cur_col, j + 1, a, c);
5041 Term_draw(cur_col, j + 1, 255, -1);
5049 /* Mention the use */
5051 (void)sprintf(tmp_val, "%-7s: ", mention_use(i));
5053 (void)sprintf(tmp_val, "%-14s: ", mention_use(i));
5056 put_str(tmp_val, j+1, cur_col);
5058 /* Display the entry itself */
5060 c_put_str(out_color[j], out_desc[j], j+1, cur_col + 9);
5062 c_put_str(out_color[j], out_desc[j], j+1, cur_col + 16);
5069 /* Display the entry itself */
5070 c_put_str(out_color[j], out_desc[j], j+1, cur_col);
5073 /* Display the weight if needed */
5076 int wgt = o_ptr->weight * o_ptr->number;
5078 (void)sprintf(tmp_val, "%3d.%1d kg", lbtokg1(wgt) , lbtokg2(wgt) );
5080 (void)sprintf(tmp_val, "%3d.%d lb", wgt / 10, wgt % 10);
5083 prt(tmp_val, j + 1, wid - 9);
5087 /* Make a "shadow" below the list (only if needed) */
5088 if (j && (j < 23)) prt("", j + 1, col ? col - 2 : col);
5090 /* Save the new column */
5093 return target_item_label;
5100 * Flip "inven" and "equip" in any sub-windows
5102 void toggle_inven_equip(void)
5107 for (j = 0; j < 8; j++)
5110 if (!angband_term[j]) continue;
5112 /* Flip inven to equip */
5113 if (window_flag[j] & (PW_INVEN))
5116 window_flag[j] &= ~(PW_INVEN);
5117 window_flag[j] |= (PW_EQUIP);
5120 p_ptr->window |= (PW_EQUIP);
5123 /* Flip inven to equip */
5124 else if (window_flag[j] & (PW_EQUIP))
5127 window_flag[j] &= ~(PW_EQUIP);
5128 window_flag[j] |= (PW_INVEN);
5131 p_ptr->window |= (PW_INVEN);
5139 * Verify the choice of an item.
5141 * The item can be negative to mean "item on floor".
5143 static bool verify(cptr prompt, int item)
5145 char o_name[MAX_NLEN];
5146 char out_val[MAX_NLEN+20];
5153 o_ptr = &inventory[item];
5159 o_ptr = &o_list[0 - item];
5163 object_desc(o_name, o_ptr, TRUE, 3);
5167 (void)sprintf(out_val, "%s%s¤Ç¤¹¤«? ", prompt, o_name);
5169 (void)sprintf(out_val, "%s %s? ", prompt, o_name);
5174 return (get_check(out_val));
5179 * Hack -- allow user to "prevent" certain choices
5181 * The item can be negative to mean "item on floor".
5183 static bool get_item_allow(int item)
5192 o_ptr = &inventory[item];
5198 o_ptr = &o_list[0 - item];
5201 /* No inscription */
5202 if (!o_ptr->inscription) return (TRUE);
5205 s = strchr(quark_str(o_ptr->inscription), '!');
5207 /* Process preventions */
5210 /* Check the "restriction" */
5211 if ((s[1] == command_cmd) || (s[1] == '*'))
5213 /* Verify the choice */
5215 if (!verify("ËÜÅö¤Ë", item)) return (FALSE);
5217 if (!verify("Really try", item)) return (FALSE);
5222 /* Find another '!' */
5223 s = strchr(s + 1, '!');
5233 * Auxiliary function for "get_item()" -- test an index
5235 static bool get_item_okay(int i)
5238 if ((i < 0) || (i >= INVEN_TOTAL)) return (FALSE);
5240 /* Verify the item */
5241 if (!item_tester_okay(&inventory[i])) return (FALSE);
5250 * Determine whether get_item() can get some item or not
5251 * assuming mode = (USE_EQUIP | USE_INVEN | USE_FLOOR).
5253 bool can_get_item(void)
5255 int j, floor_list[23], floor_num = 0;
5257 for (j = 0; j < INVEN_TOTAL; j++)
5258 if (item_tester_okay(&inventory[j]))
5261 floor_num = scan_floor(floor_list, py, px, 0x01);
5269 * Let the user select an item, save its "index"
5271 * Return TRUE only if an acceptable item was chosen by the user.
5273 * The selected item must satisfy the "item_tester_hook()" function,
5274 * if that hook is set, and the "item_tester_tval", if that value is set.
5276 * All "item_tester" restrictions are cleared before this function returns.
5278 * The user is allowed to choose acceptable items from the equipment,
5279 * inventory, or floor, respectively, if the proper flag was given,
5280 * and there are any acceptable items in that location.
5282 * The equipment or inventory are displayed (even if no acceptable
5283 * items are in that location) if the proper flag was given.
5285 * If there are no acceptable items available anywhere, and "str" is
5286 * not NULL, then it will be used as the text of a warning message
5287 * before the function returns.
5289 * Note that the user must press "-" to specify the item on the floor,
5290 * and there is no way to "examine" the item on the floor, while the
5291 * use of "capital" letters will "examine" an inventory/equipment item,
5292 * and prompt for its use.
5294 * If a legal item is selected from the inventory, we save it in "cp"
5295 * directly (0 to 35), and return TRUE.
5297 * If a legal item is selected from the floor, we save it in "cp" as
5298 * a negative (-1 to -511), and return TRUE.
5300 * If no item is available, we do nothing to "cp", and we display a
5301 * warning message, using "str" if available, and return FALSE.
5303 * If no item is selected, we do nothing to "cp", and return FALSE.
5305 * Global "p_ptr->command_new" is used when viewing the inventory or equipment
5306 * to allow the user to enter a command while viewing those screens, and
5307 * also to induce "auto-enter" of stores, and other such stuff.
5309 * Global "p_ptr->command_see" may be set before calling this function to start
5310 * out in "browse" mode. It is cleared before this function returns.
5312 * Global "p_ptr->command_wrk" is used to choose between equip/inven listings.
5313 * If it is TRUE then we are viewing inventory, else equipment.
5315 * We always erase the prompt when we are done, leaving a blank line,
5316 * or a warning message, if appropriate, if no items are available.
5318 bool get_item(int *cp, cptr pmt, cptr str, int mode)
5320 s16b this_o_idx, next_o_idx = 0;
5324 int j, k, i1, i2, e1, e2;
5334 bool allow_floor = FALSE;
5336 bool toggle = FALSE;
5342 extern bool select_the_force;
5344 int menu_line = (use_menu ? 1 : 0);
5348 #ifdef ALLOW_EASY_FLOOR /* TNB */
5350 if (easy_floor || use_menu) return get_item_floor(cp, pmt, str, mode);
5352 #endif /* ALLOW_EASY_FLOOR -- TNB */
5356 /* Get the item index */
5357 if (repeat_pull(cp))
5359 if (*cp == INVEN_FORCE) { /* the_force */
5360 item_tester_tval = 0;
5361 item_tester_hook = NULL;
5372 /* Acquire object */
5375 /* Validate the item */
5376 if (item_tester_okay(o_ptr))
5378 /* Forget the item_tester_tval restriction */
5379 item_tester_tval = 0;
5381 /* Forget the item_tester_hook restriction */
5382 item_tester_hook = NULL;
5389 /* Verify the item */
5390 else if (get_item_okay(*cp))
5392 /* Forget the item_tester_tval restriction */
5393 item_tester_tval = 0;
5395 /* Forget the item_tester_hook restriction */
5396 item_tester_hook = NULL;
5403 #endif /* ALLOW_REPEAT */
5406 if (mode & (USE_EQUIP)) equip = TRUE;
5407 if (mode & (USE_INVEN)) inven = TRUE;
5408 if (mode & (USE_FLOOR)) floor = TRUE;
5411 /* Paranoia XXX XXX XXX */
5418 /* No item selected */
5422 /* Full inventory */
5424 i2 = INVEN_PACK - 1;
5426 /* Forbid inventory */
5427 if (!inven) i2 = -1;
5430 for (j = 0; j < INVEN_PACK; j++)
5431 if (item_tester_okay(&inventory[j])) max_inven++;
5434 /* Restrict inventory indexes */
5435 while ((i1 <= i2) && (!get_item_okay(i1))) i1++;
5436 while ((i1 <= i2) && (!get_item_okay(i2))) i2--;
5439 /* Full equipment */
5441 e2 = INVEN_TOTAL - 1;
5443 /* Forbid equipment */
5444 if (!equip) e2 = -1;
5447 for (j = INVEN_RARM; j < INVEN_TOTAL; j++)
5448 if (item_tester_okay(&inventory[j])) max_equip++;
5449 if (p_ptr->ryoute && !item_tester_no_ryoute) max_equip++;
5452 /* Restrict equipment indexes */
5453 while ((e1 <= e2) && (!get_item_okay(e1))) e1++;
5454 while ((e1 <= e2) && (!get_item_okay(e2))) e2--;
5458 /* Restrict floor usage */
5461 /* Scan all objects in the grid */
5462 for (this_o_idx = cave[py][px].o_idx; this_o_idx; this_o_idx = next_o_idx)
5466 /* Acquire object */
5467 o_ptr = &o_list[this_o_idx];
5469 /* Acquire next object */
5470 next_o_idx = o_ptr->next_o_idx;
5472 /* Accept the item on the floor if legal */
5473 if (item_tester_okay(o_ptr)) allow_floor = TRUE;
5477 /* Require at least one legal choice */
5478 if (!allow_floor && (i1 > i2) && (e1 > e2))
5480 /* Cancel p_ptr->command_see */
5481 command_see = FALSE;
5489 if (select_the_force) {
5495 /* Analyze choices */
5498 /* Hack -- Start on equipment if requested */
5499 if (command_see && command_wrk && equip)
5505 /* Use inventory if allowed */
5508 command_wrk = FALSE;
5511 /* Use equipment if allowed */
5517 /* Use inventory for floor */
5520 command_wrk = FALSE;
5526 * Äɲ媥ץ·¥ç¥ó(always_show_list)¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¾ï¤Ë°ìÍ÷¤òɽ¼¨¤¹¤ë
5528 if ((always_show_list == TRUE) || use_menu) command_see = TRUE;
5530 /* Hack -- start out in "display" mode */
5538 /* Repeat until done */
5541 int get_item_label = 0;
5550 for (j = 0; j < 8; j++)
5553 if (!angband_term[j]) continue;
5555 /* Count windows displaying inven */
5556 if (window_flag[j] & (PW_INVEN)) ni++;
5558 /* Count windows displaying equip */
5559 if (window_flag[j] & (PW_EQUIP)) ne++;
5562 /* Toggle if needed */
5563 if ((command_wrk && ni && !ne) ||
5564 (!command_wrk && !ni && ne))
5567 toggle_inven_equip();
5574 p_ptr->window |= (PW_INVEN | PW_EQUIP);
5576 /* Redraw windows */
5580 /* Inventory screen */
5583 /* Redraw if needed */
5584 if (command_see) get_item_label = show_inven(menu_line);
5587 /* Equipment screen */
5590 /* Redraw if needed */
5591 if (command_see) get_item_label = show_equip(menu_line);
5594 /* Viewing inventory */
5597 /* Begin the prompt */
5599 sprintf(out_val, "»ý¤Áʪ:");
5601 sprintf(out_val, "Inven:");
5605 /* Some legal items */
5606 if ((i1 <= i2) && !use_menu)
5608 /* Build the prompt */
5610 sprintf(tmp_val, "%c-%c,'(',')',",
5612 sprintf(tmp_val, " %c-%c,'(',')',",
5615 index_to_label(i1), index_to_label(i2));
5618 strcat(out_val, tmp_val);
5621 /* Indicate ability to "view" */
5623 if (!command_see && !use_menu) strcat(out_val, " '*'°ìÍ÷,");
5625 if (!command_see && !use_menu) strcat(out_val, " * to see,");
5631 if (equip) strcat(out_val, format(" %s ÁõÈ÷ÉÊ,", use_menu ? "'4'or'6'" : "'/'"));
5632 else if (select_the_force)
5633 strcat(out_val, " 'w'Îýµ¤½Ñ,");
5635 if (equip) strcat(out_val, format(" %s for Equip,", use_menu ? "4 or 6" : "/"));
5636 else if (select_the_force)
5637 strcat(out_val, " w for the Force,");
5642 /* Viewing equipment */
5645 /* Begin the prompt */
5647 sprintf(out_val, "ÁõÈ÷ÉÊ:");
5649 sprintf(out_val, "Equip:");
5653 /* Some legal items */
5654 if ((e1 <= e2) && !use_menu)
5656 /* Build the prompt */
5658 sprintf(tmp_val, "%c-%c,'(',')',",
5660 sprintf(tmp_val, " %c-%c,'(',')',",
5663 index_to_label(e1), index_to_label(e2));
5666 strcat(out_val, tmp_val);
5669 /* Indicate ability to "view" */
5671 if (!command_see && !use_menu) strcat(out_val, " '*'°ìÍ÷,");
5673 if (!command_see) strcat(out_val, " * to see,");
5679 if (inven) strcat(out_val, format(" %s »ý¤Áʪ,", use_menu ? "'4'or'6'" : "'/'"));
5681 if (inven) strcat(out_val, format(" %s for Inven,", use_menu ? "4 or 6" : "'/'"));
5686 /* Indicate legality of the "floor" item */
5688 if (allow_floor) strcat(out_val, " '-'¾²¾å,");
5690 if (allow_floor) strcat(out_val, " - for floor,");
5694 /* Finish the prompt */
5695 strcat(out_val, " ESC");
5697 /* Build the prompt */
5698 sprintf(tmp_val, "(%s) %s", out_val, pmt);
5700 /* Show the prompt */
5709 int max_line = (command_wrk ? max_equip : max_inven);
5725 menu_line += (max_line - 1);
5744 /* Verify legality */
5745 if (!inven || !equip)
5751 /* Hack -- Fix screen */
5761 /* Switch inven/equip */
5762 command_wrk = !command_wrk;
5763 max_line = (command_wrk ? max_equip : max_inven);
5764 if (menu_line > max_line) menu_line = max_line;
5766 /* Need to redraw */
5775 if (command_wrk == USE_FLOOR)
5778 (*cp) = -get_item_label;
5782 /* Validate the item */
5783 if (!get_item_okay(get_item_label))
5789 /* Allow player to "refuse" certain actions */
5790 if (!get_item_allow(get_item_label))
5796 /* Accept that choice */
5797 (*cp) = get_item_label;
5806 if (select_the_force) {
5814 if (menu_line > max_line) menu_line -= max_line;
5835 command_see = FALSE;
5855 /* Verify legality */
5856 if (!inven || !equip)
5862 /* Hack -- Fix screen */
5872 /* Switch inven/equip */
5873 command_wrk = !command_wrk;
5875 /* Need to redraw */
5881 /* Use floor item */
5884 /* Scan all objects in the grid */
5885 for (this_o_idx = cave[py][px].o_idx; this_o_idx; this_o_idx = next_o_idx)
5889 /* Acquire object */
5890 o_ptr = &o_list[this_o_idx];
5892 /* Acquire next object */
5893 next_o_idx = o_ptr->next_o_idx;
5895 /* Validate the item */
5896 if (!item_tester_okay(o_ptr)) continue;
5901 /* Verify the item (if required) */
5903 if (other_query_flag && !verify("ËÜÅö¤Ë", k)) continue;
5905 if (other_query_flag && !verify("Try", k)) continue;
5909 /* Allow player to "refuse" certain actions */
5910 if (!get_item_allow(k)) continue;
5912 /* Accept that choice */
5929 case '1': case '2': case '3':
5930 case '4': case '5': case '6':
5931 case '7': case '8': case '9':
5933 /* Look up the tag */
5934 if (!get_tag(&k, which))
5940 /* Hack -- Validate the item */
5941 if ((k < INVEN_RARM) ? !inven : !equip)
5947 /* Validate the item */
5948 if (!get_item_okay(k))
5954 /* Allow player to "refuse" certain actions */
5955 if (!get_item_allow(k))
5961 /* Accept that choice */
5972 /* Choose "default" inventory item */
5975 k = ((i1 == i2) ? i1 : -1);
5978 /* Choose "default" equipment item */
5981 k = ((e1 == e2) ? e1 : -1);
5984 /* Validate the item */
5985 if (!get_item_okay(k))
5991 /* Allow player to "refuse" certain actions */
5992 if (!get_item_allow(k))
5998 /* Accept that choice */
6008 if (select_the_force) {
6021 bool not_found = FALSE;
6023 /* Look up the alphabetical tag */
6024 if (!get_tag(&k, which))
6029 /* Hack -- Validate the item */
6030 if ((k < INVEN_RARM) ? !inven : !equip)
6035 /* Validate the item */
6036 if (!get_item_okay(k))
6043 /* Accept that choice */
6050 /* Extract "query" setting */
6051 ver = isupper(which);
6052 which = tolower(which);
6054 /* Convert letter to inventory index */
6057 if (which == '(') k = i1;
6058 else if (which == ')') k = i2;
6059 else k = label_to_inven(which);
6062 /* Convert letter to equipment index */
6065 if (which == '(') k = e1;
6066 else if (which == ')') k = e2;
6067 else k = label_to_equip(which);
6070 /* Validate the item */
6071 if (!get_item_okay(k))
6077 /* Verify the item */
6079 if (ver && !verify("ËÜÅö¤Ë", k))
6081 if (ver && !verify("Try", k))
6089 /* Allow player to "refuse" certain actions */
6090 if (!get_item_allow(k))
6096 /* Accept that choice */
6107 /* Fix the screen if necessary */
6113 /* Hack -- Cancel "display" */
6114 command_see = FALSE;
6118 /* Forget the item_tester_tval restriction */
6119 item_tester_tval = 0;
6121 item_tester_no_ryoute = FALSE;
6123 /* Forget the item_tester_hook restriction */
6124 item_tester_hook = NULL;
6130 /* Toggle again if needed */
6131 if (toggle) toggle_inven_equip();
6134 p_ptr->window |= (PW_INVEN | PW_EQUIP);
6141 /* Clear the prompt line */
6144 /* Warning if needed */
6145 if (oops && str) msg_print(str);
6148 if (item) repeat_push(*cp);
6149 #endif /* ALLOW_REPEAT */
6156 #ifdef ALLOW_EASY_FLOOR
6161 * Return a list of o_list[] indexes of items at the given cave
6162 * location. Valid flags are:
6164 * mode & 0x01 -- Item tester
6165 * mode & 0x02 -- Marked items only
6166 * mode & 0x04 -- Stop after first
6168 int scan_floor(int *items, int y, int x, int mode)
6170 int this_o_idx, next_o_idx;
6175 if (!in_bounds(y, x)) return 0;
6177 /* Scan all objects in the grid */
6178 for (this_o_idx = cave[y][x].o_idx; this_o_idx; this_o_idx = next_o_idx)
6182 /* Acquire object */
6183 o_ptr = &o_list[this_o_idx];
6185 /* Acquire next object */
6186 next_o_idx = o_ptr->next_o_idx;
6189 if ((mode & 0x01) && !item_tester_okay(o_ptr)) continue;
6192 if ((mode & 0x02) && !o_ptr->marked) continue;
6194 /* Accept this item */
6195 /* XXX Hack -- Enforce limit */
6197 items[num] = this_o_idx;
6202 if (mode & 0x04) break;
6210 * Display a list of the items on the floor at the given location.
6212 int show_floor(int target_item, int y, int x, int *min_width)
6219 char o_name[MAX_NLEN];
6225 char out_desc[23][MAX_NLEN];
6226 int target_item_label = 0;
6228 int floor_list[23], floor_num;
6232 Term_get_size(&wid, &hgt);
6234 /* Default length */
6235 len = MAX((*min_width), 20);
6238 /* Scan for objects in the grid, using item_tester_okay() */
6239 floor_num = scan_floor(floor_list, y, x, 0x01);
6241 /* Display the inventory */
6242 for (k = 0, i = 0; i < floor_num && i < 23; i++)
6244 o_ptr = &o_list[floor_list[i]];
6246 /* Describe the object */
6247 object_desc(o_name, o_ptr, TRUE, 3);
6249 /* Save the index */
6252 /* Acquire inventory color */
6253 out_color[k] = tval_to_attr[o_ptr->tval & 0x7F];
6255 /* Save the object description */
6256 strcpy(out_desc[k], o_name);
6258 /* Find the predicted "line length" */
6259 l = strlen(out_desc[k]) + 5;
6261 /* Be sure to account for the weight */
6262 if (show_weights) l += 9;
6264 /* Maintain the maximum length */
6265 if (l > len) len = l;
6267 /* Advance to next "line" */
6274 /* Find the column to start in */
6275 col = (len > wid - 4) ? 0 : (wid - len - 1);
6277 /* Output each entry */
6278 for (j = 0; j < k; j++)
6281 i = floor_list[out_index[j]];
6286 /* Clear the line */
6287 prt("", j + 1, col ? col - 2 : col);
6289 if (use_menu && target_item)
6291 if (j == (target_item-1))
6294 strcpy(tmp_val, "¡Õ");
6296 strcpy(tmp_val, "> ");
6298 target_item_label = i;
6300 else strcpy(tmp_val, " ");
6303 /* Prepare an index --(-- */
6304 sprintf(tmp_val, "%c)", index_to_label(j));
6306 /* Clear the line with the (possibly indented) index */
6307 put_str(tmp_val, j + 1, col);
6309 /* Display the entry itself */
6310 c_put_str(out_color[j], out_desc[j], j + 1, col + 3);
6312 /* Display the weight if needed */
6315 int wgt = o_ptr->weight * o_ptr->number;
6317 sprintf(tmp_val, "%3d.%1d kg", lbtokg1(wgt) , lbtokg2(wgt) );
6319 sprintf(tmp_val, "%3d.%1d lb", wgt / 10, wgt % 10);
6322 prt(tmp_val, j + 1, wid - 9);
6326 /* Make a "shadow" below the list (only if needed) */
6327 if (j && (j < 23)) prt("", j + 1, col ? col - 2 : col);
6329 return target_item_label;
6333 * This version of get_item() is called by get_item() when
6334 * the easy_floor is on.
6336 bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
6338 char n1 = ' ', n2 = ' ', which = ' ';
6340 int j, k, i1, i2, e1, e2;
6350 bool allow_equip = FALSE;
6351 bool allow_inven = FALSE;
6352 bool allow_floor = FALSE;
6354 bool toggle = FALSE;
6359 int floor_num, floor_list[23], floor_top = 0;
6362 extern bool select_the_force;
6364 int menu_line = (use_menu ? 1 : 0);
6370 /* Get the item index */
6371 if (repeat_pull(cp))
6373 if (*cp == INVEN_FORCE) { /* the_force */
6374 item_tester_tval = 0;
6375 item_tester_hook = NULL;
6386 /* Acquire object */
6389 /* Validate the item */
6390 if (item_tester_okay(o_ptr))
6392 /* Forget the item_tester_tval restriction */
6393 item_tester_tval = 0;
6395 /* Forget the item_tester_hook restriction */
6396 item_tester_hook = NULL;
6403 /* Verify the item */
6404 else if (get_item_okay(*cp))
6406 /* Forget the item_tester_tval restriction */
6407 item_tester_tval = 0;
6409 /* Forget the item_tester_hook restriction */
6410 item_tester_hook = NULL;
6417 #endif /* ALLOW_REPEAT */
6420 if (mode & (USE_EQUIP)) equip = TRUE;
6421 if (mode & (USE_INVEN)) inven = TRUE;
6422 if (mode & (USE_FLOOR)) floor = TRUE;
6425 /* Paranoia XXX XXX XXX */
6432 /* No item selected */
6436 /* Full inventory */
6438 i2 = INVEN_PACK - 1;
6440 /* Forbid inventory */
6441 if (!inven) i2 = -1;
6444 for (j = 0; j < INVEN_PACK; j++)
6445 if (item_tester_okay(&inventory[j])) max_inven++;
6448 /* Restrict inventory indexes */
6449 while ((i1 <= i2) && (!get_item_okay(i1))) i1++;
6450 while ((i1 <= i2) && (!get_item_okay(i2))) i2--;
6453 /* Full equipment */
6455 e2 = INVEN_TOTAL - 1;
6457 /* Forbid equipment */
6458 if (!equip) e2 = -1;
6461 for (j = INVEN_RARM; j < INVEN_TOTAL; j++)
6462 if (item_tester_okay(&inventory[j])) max_equip++;
6463 if (p_ptr->ryoute && !item_tester_no_ryoute) max_equip++;
6466 /* Restrict equipment indexes */
6467 while ((e1 <= e2) && (!get_item_okay(e1))) e1++;
6468 while ((e1 <= e2) && (!get_item_okay(e2))) e2--;
6471 /* Count "okay" floor items */
6474 /* Restrict floor usage */
6477 /* Scan all objects in the grid */
6478 floor_num = scan_floor(floor_list, py, px, 0x01);
6481 /* Accept inventory */
6482 if (i1 <= i2) allow_inven = TRUE;
6484 /* Accept equipment */
6485 if (e1 <= e2) allow_equip = TRUE;
6488 if (floor_num) allow_floor = TRUE;
6490 /* Require at least one legal choice */
6491 if (!allow_inven && !allow_equip && !allow_floor)
6493 /* Cancel p_ptr->command_see */
6494 command_see = FALSE;
6502 if (select_the_force) {
6508 /* Analyze choices */
6511 /* Hack -- Start on equipment if requested */
6512 if (command_see && (command_wrk == (USE_EQUIP))
6515 command_wrk = (USE_EQUIP);
6518 /* Use inventory if allowed */
6519 else if (allow_inven)
6521 command_wrk = (USE_INVEN);
6524 /* Use equipment if allowed */
6525 else if (allow_equip)
6527 command_wrk = (USE_EQUIP);
6530 /* Use floor if allowed */
6531 else if (allow_floor)
6533 command_wrk = (USE_FLOOR);
6538 * Äɲ媥ץ·¥ç¥ó(always_show_list)¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¾ï¤Ë°ìÍ÷¤òɽ¼¨¤¹¤ë
6540 if ((always_show_list == TRUE) || use_menu) command_see = TRUE;
6542 /* Hack -- start out in "display" mode */
6549 /* Repeat until done */
6552 int get_item_label = 0;
6561 for (j = 0; j < 8; j++)
6564 if (!angband_term[j]) continue;
6566 /* Count windows displaying inven */
6567 if (window_flag[j] & (PW_INVEN)) ni++;
6569 /* Count windows displaying equip */
6570 if (window_flag[j] & (PW_EQUIP)) ne++;
6573 /* Toggle if needed */
6574 if ((command_wrk == (USE_EQUIP) && ni && !ne) ||
6575 (command_wrk == (USE_INVEN) && !ni && ne))
6578 toggle_inven_equip();
6585 p_ptr->window |= (PW_INVEN | PW_EQUIP);
6587 /* Redraw windows */
6591 /* Inventory screen */
6592 if (command_wrk == (USE_INVEN))
6594 /* Extract the legal requests */
6598 /* Redraw if needed */
6599 if (command_see) get_item_label = show_inven(menu_line);
6602 /* Equipment screen */
6603 else if (command_wrk == (USE_EQUIP))
6605 /* Extract the legal requests */
6606 n1 = I2A(e1 - INVEN_RARM);
6607 n2 = I2A(e2 - INVEN_RARM);
6609 /* Redraw if needed */
6610 if (command_see) get_item_label = show_equip(menu_line);
6614 else if (command_wrk == (USE_FLOOR))
6617 k = MIN(floor_top + 23, floor_num) - 1;
6619 /* Extract the legal requests */
6620 n1 = I2A(j - floor_top);
6621 n2 = I2A(k - floor_top);
6623 /* Redraw if needed */
6624 if (command_see) get_item_label = show_floor(menu_line, py, px, &min_width);
6627 /* Viewing inventory */
6628 if (command_wrk == (USE_INVEN))
6630 /* Begin the prompt */
6632 sprintf(out_val, "»ý¤Áʪ:");
6634 sprintf(out_val, "Inven:");
6639 /* Build the prompt */
6641 sprintf(tmp_val, "%c-%c,'(',')',",
6643 sprintf(tmp_val, " %c-%c,'(',')',",
6646 index_to_label(i1), index_to_label(i2));
6649 strcat(out_val, tmp_val);
6652 /* Indicate ability to "view" */
6654 if (!command_see && !use_menu) strcat(out_val, " '*'°ìÍ÷,");
6656 if (!command_see && !use_menu) strcat(out_val, " * to see,");
6665 strcat(out_val, " '/' ÁõÈ÷ÉÊ,");
6666 else if (allow_floor)
6667 strcat(out_val, " '6' ÁõÈ÷ÉÊ,");
6669 strcat(out_val, " '4'or'6' ÁõÈ÷ÉÊ,");
6671 else if (select_the_force)
6672 strcat(out_val, " 'w'Îýµ¤½Ñ,");
6677 strcat(out_val, " / for Equip,");
6678 else if (allow_floor)
6679 strcat(out_val, " 6 for Equip,");
6681 strcat(out_val, " 4 or 6 for Equip,");
6683 else if (select_the_force)
6684 strcat(out_val, " w for the Force,");
6692 strcat(out_val, " '-'¾²¾å,");
6693 else if (allow_equip)
6694 strcat(out_val, " '4' ¾²¾å,");
6696 strcat(out_val, " '4'or'6' ¾²¾å,");
6699 strcat(out_val, " - for floor,");
6700 else if (allow_equip)
6701 strcat(out_val, " 4 for floor,");
6703 strcat(out_val, " 4 or 6 for floor,");
6709 /* Viewing equipment */
6710 else if (command_wrk == (USE_EQUIP))
6712 /* Begin the prompt */
6714 sprintf(out_val, "ÁõÈ÷ÉÊ:");
6716 sprintf(out_val, "Equip:");
6722 /* Build the prompt */
6724 sprintf(tmp_val, "%c-%c,'(',')',",
6726 sprintf(tmp_val, " %c-%c,'(',')',",
6729 index_to_label(e1), index_to_label(e2));
6732 strcat(out_val, tmp_val);
6735 /* Indicate ability to "view" */
6737 if (!command_see && !use_menu) strcat(out_val, " '*'°ìÍ÷,");
6739 if (!command_see && !use_menu) strcat(out_val, " * to see,");
6748 strcat(out_val, " '/' »ý¤Áʪ,");
6749 else if (allow_floor)
6750 strcat(out_val, " '4' »ý¤Áʪ,");
6752 strcat(out_val, " '4'or'6' »ý¤Áʪ,");
6756 strcat(out_val, " / for Inven,");
6757 else if (allow_floor)
6758 strcat(out_val, " 4 for Inven,");
6760 strcat(out_val, " 4 or 6 for Inven,");
6769 strcat(out_val, " '-'¾²¾å,");
6770 else if (allow_inven)
6771 strcat(out_val, " '6' ¾²¾å,");
6773 strcat(out_val, " '4'or'6' ¾²¾å,");
6776 strcat(out_val, " - for floor,");
6777 else if (allow_inven)
6778 strcat(out_val, " 6 for floor,");
6780 strcat(out_val, " 4 or 6 for floor,");
6786 else if (command_wrk == (USE_FLOOR))
6788 /* Begin the prompt */
6790 sprintf(out_val, "¾²¾å:");
6792 sprintf(out_val, "Floor:");
6798 /* Build the prompt */
6800 sprintf(tmp_val, "%c-%c,'(',')',", n1, n2);
6802 sprintf(tmp_val, " %c-%c,'(',')',", n1, n2);
6807 strcat(out_val, tmp_val);
6810 /* Indicate ability to "view" */
6812 if (!command_see && !use_menu) strcat(out_val, " '*'°ìÍ÷,");
6814 if (!command_see && !use_menu) strcat(out_val, " * to see,");
6820 if (allow_inven && allow_equip)
6823 strcat(out_val, " '4' ÁõÈ÷ÉÊ, '6' »ý¤Áʪ,");
6825 strcat(out_val, " 4 for Equip, 6 for Inven,");
6829 else if (allow_inven)
6832 strcat(out_val, " '4'or'6' »ý¤Áʪ,");
6834 strcat(out_val, " 4 or 6 for Inven,");
6838 else if (allow_equip)
6841 strcat(out_val, " '4'or'6' ÁõÈ÷ÉÊ,");
6843 strcat(out_val, " 4 or 6 for Equip,");
6849 else if (allow_inven)
6852 strcat(out_val, " '/' »ý¤Áʪ,");
6854 strcat(out_val, " / for Inven,");
6858 else if (allow_equip)
6861 strcat(out_val, " '/'ÁõÈ÷ÉÊ,");
6863 strcat(out_val, " / for Equip,");
6869 if (command_see && !use_menu)
6872 strcat(out_val, " Enter ¼¡,");
6874 strcat(out_val, " Enter for scroll down,");
6879 /* Finish the prompt */
6880 strcat(out_val, " ESC");
6882 /* Build the prompt */
6883 sprintf(tmp_val, "(%s) %s", out_val, pmt);
6885 /* Show the prompt */
6894 if (command_wrk == USE_INVEN) max_line = max_inven;
6895 else if (command_wrk == USE_EQUIP) max_line = max_equip;
6896 else if (command_wrk == USE_FLOOR) max_line = MIN(23, floor_num);
6912 menu_line += (max_line - 1);
6928 /* Verify legality */
6929 if (command_wrk == (USE_INVEN))
6931 if (allow_floor) command_wrk = USE_FLOOR;
6932 else if (allow_equip) command_wrk = USE_EQUIP;
6939 else if (command_wrk == (USE_EQUIP))
6941 if (allow_inven) command_wrk = USE_INVEN;
6942 else if (allow_floor) command_wrk = USE_FLOOR;
6949 else if (command_wrk == (USE_FLOOR))
6951 if (allow_equip) command_wrk = USE_EQUIP;
6952 else if (allow_inven) command_wrk = USE_INVEN;
6965 /* Hack -- Fix screen */
6975 /* Switch inven/equip */
6976 if (command_wrk == USE_INVEN) max_line = max_inven;
6977 else if (command_wrk == USE_EQUIP) max_line = max_equip;
6978 else if (command_wrk == USE_FLOOR) max_line = MIN(23, floor_num);
6979 if (menu_line > max_line) menu_line = max_line;
6981 /* Need to redraw */
6989 /* Verify legality */
6990 if (command_wrk == (USE_INVEN))
6992 if (allow_equip) command_wrk = USE_EQUIP;
6993 else if (allow_floor) command_wrk = USE_FLOOR;
7000 else if (command_wrk == (USE_EQUIP))
7002 if (allow_floor) command_wrk = USE_FLOOR;
7003 else if (allow_inven) command_wrk = USE_INVEN;
7010 else if (command_wrk == (USE_FLOOR))
7012 if (allow_inven) command_wrk = USE_INVEN;
7013 else if (allow_equip) command_wrk = USE_EQUIP;
7026 /* Hack -- Fix screen */
7036 /* Switch inven/equip */
7037 if (command_wrk == USE_INVEN) max_line = max_inven;
7038 else if (command_wrk == USE_EQUIP) max_line = max_equip;
7039 else if (command_wrk == USE_FLOOR) max_line = MIN(23, floor_num);
7040 if (menu_line > max_line) menu_line = max_line;
7042 /* Need to redraw */
7051 if (command_wrk == USE_FLOOR)
7054 (*cp) = -get_item_label;
7058 /* Validate the item */
7059 if (!get_item_okay(get_item_label))
7065 /* Allow player to "refuse" certain actions */
7066 if (!get_item_allow(get_item_label))
7072 /* Accept that choice */
7073 (*cp) = get_item_label;
7082 if (select_the_force) {
7090 if (menu_line > max_line) menu_line -= max_line;
7111 command_see = FALSE;
7134 cave_type *c_ptr = &cave[py][px];
7136 if (command_wrk != (USE_FLOOR)) break;
7138 /* Get the object being moved. */
7139 o_idx = c_ptr->o_idx;
7141 /* Only rotate a pile of two or more objects. */
7142 if (!(o_idx && o_list[o_idx].next_o_idx)) break;
7144 /* Remove the first object from the list. */
7145 excise_object_idx(o_idx);
7147 /* Find end of the list. */
7149 while (o_list[i].next_o_idx)
7150 i = o_list[i].next_o_idx;
7152 /* Add after the last object. */
7153 o_list[i].next_o_idx = o_idx;
7155 /* Re-scan floor list */
7156 floor_num = scan_floor(floor_list, py, px, 0x01);
7158 /* Hack -- Fix screen */
7173 if (command_wrk == (USE_INVEN))
7180 command_wrk = (USE_EQUIP);
7182 else if (command_wrk == (USE_EQUIP))
7189 command_wrk = (USE_INVEN);
7191 else if (command_wrk == (USE_FLOOR))
7195 command_wrk = (USE_INVEN);
7197 else if (allow_equip)
7199 command_wrk = (USE_EQUIP);
7208 /* Hack -- Fix screen */
7218 /* Need to redraw */
7231 * If we are already examining the floor, and there
7232 * is only one item, we will always select it.
7233 * If we aren't examining the floor and there is only
7234 * one item, we will select it if floor_query_flag
7239 if ((command_wrk == (USE_FLOOR)) || (!carry_query_flag))
7242 k = 0 - floor_list[0];
7244 /* Allow player to "refuse" certain actions */
7245 if (!get_item_allow(k))
7251 /* Accept that choice */
7260 /* Hack -- Fix screen */
7270 command_wrk = (USE_FLOOR);
7276 case '1': case '2': case '3':
7277 case '4': case '5': case '6':
7278 case '7': case '8': case '9':
7280 /* Look up the tag */
7281 if (!get_tag(&k, which))
7287 /* Hack -- Validate the item */
7288 if ((k < INVEN_RARM) ? !inven : !equip)
7294 /* Validate the item */
7295 if (!get_item_okay(k))
7301 /* Allow player to "refuse" certain actions */
7302 if (!get_item_allow(k))
7308 /* Accept that choice */
7319 /* Choose "default" inventory item */
7320 if (command_wrk == (USE_INVEN))
7322 k = ((i1 == i2) ? i1 : -1);
7325 /* Choose "default" equipment item */
7326 else if (command_wrk == (USE_EQUIP))
7328 k = ((e1 == e2) ? e1 : -1);
7331 /* Choose "default" floor item */
7332 else if (command_wrk == (USE_FLOOR))
7337 k = 0 - floor_list[0];
7339 /* Allow player to "refuse" certain actions */
7340 if (!get_item_allow(k))
7346 /* Accept that choice */
7354 /* Validate the item */
7355 if (!get_item_okay(k))
7361 /* Allow player to "refuse" certain actions */
7362 if (!get_item_allow(k))
7368 /* Accept that choice */
7378 if (select_the_force) {
7389 bool not_found = FALSE;
7391 /* Look up the alphabetical tag */
7392 if (!get_tag(&k, which))
7397 /* Hack -- Validate the item */
7398 if ((k < INVEN_RARM) ? !inven : !equip)
7403 /* Validate the item */
7404 if (!get_item_okay(k))
7411 /* Accept that choice */
7418 /* Extract "query" setting */
7419 ver = isupper(which);
7420 which = tolower(which);
7422 /* Convert letter to inventory index */
7423 if (command_wrk == (USE_INVEN))
7425 if (which == '(') k = i1;
7426 else if (which == ')') k = i2;
7427 else k = label_to_inven(which);
7430 /* Convert letter to equipment index */
7431 else if (command_wrk == (USE_EQUIP))
7433 if (which == '(') k = e1;
7434 else if (which == ')') k = e2;
7435 else k = label_to_equip(which);
7438 /* Convert letter to floor index */
7439 else if (command_wrk == USE_FLOOR)
7441 if (which == '(') k = 0;
7442 else if (which == ')') k = floor_num - 1;
7443 else k = islower(which) ? A2I(which) : -1;
7444 if (k < 0 || k >= floor_num || k >= 23)
7451 k = 0 - floor_list[k];
7454 /* Validate the item */
7455 if ((command_wrk != USE_FLOOR) && !get_item_okay(k))
7461 /* Verify the item */
7463 if (ver && !verify("ËÜÅö¤Ë", k))
7465 if (ver && !verify("Try", k))
7473 /* Allow player to "refuse" certain actions */
7474 if (!get_item_allow(k))
7480 /* Accept that choice */
7490 /* Fix the screen if necessary */
7496 /* Hack -- Cancel "display" */
7497 command_see = FALSE;
7501 /* Forget the item_tester_tval restriction */
7502 item_tester_tval = 0;
7504 /* Forget the item_tester_hook restriction */
7505 item_tester_hook = NULL;
7511 /* Toggle again if needed */
7512 if (toggle) toggle_inven_equip();
7515 p_ptr->window |= (PW_INVEN | PW_EQUIP);
7522 /* Clear the prompt line */
7525 /* Warning if needed */
7526 if (oops && str) msg_print(str);
7529 if (item) repeat_push(*cp);
7530 #endif /* ALLOW_REPEAT */
7537 static bool py_pickup_floor_aux(void)
7545 /* Restrict the choices */
7546 item_tester_hook = inven_carry_okay;
7550 q = "¤É¤ì¤ò½¦¤¤¤Þ¤¹¤«¡©";
7551 s = "¤â¤¦¥¶¥Ã¥¯¤Ë¤Ï¾²¤Ë¤¢¤ë¤É¤Î¥¢¥¤¥Æ¥à¤âÆþ¤é¤Ê¤¤¡£";
7553 q = "Get which item? ";
7554 s = "You no longer have any room for the objects on the floor.";
7557 if (get_item(&item, q, s, (USE_FLOOR)))
7559 this_o_idx = 0 - item;
7566 /* Pick up the object */
7567 py_pickup_aux(this_o_idx);
7574 * Make the player carry everything in a grid
7576 * If "pickup" is FALSE then only gold will be picked up
7578 * This is called by py_pickup() when easy_floor is TRUE.
7580 void py_pickup_floor(int pickup)
7582 s16b this_o_idx, next_o_idx = 0;
7584 char o_name[MAX_NLEN];
7587 int floor_num = 0, floor_list[23], floor_o_idx = 0;
7591 /* Scan the pile of objects */
7592 for (this_o_idx = cave[py][px].o_idx; this_o_idx; this_o_idx = next_o_idx)
7596 /* Access the object */
7597 o_ptr = &o_list[this_o_idx];
7599 /* Describe the object */
7600 object_desc(o_name, o_ptr, TRUE, 3);
7602 /* Access the next object */
7603 next_o_idx = o_ptr->next_o_idx;
7605 /* Hack -- disturb */
7609 if (o_ptr->tval == TV_GOLD)
7613 msg_format(" $%ld ¤Î²ÁÃͤ¬¤¢¤ë%s¤ò¸«¤Ä¤±¤¿¡£",
7614 (long)o_ptr->pval, o_name);
7616 msg_format("You have found %ld gold pieces worth of %s.",
7617 (long) o_ptr->pval, o_name);
7621 /* Collect the gold */
7622 p_ptr->au += o_ptr->pval;
7625 p_ptr->redraw |= (PR_GOLD);
7628 p_ptr->window |= (PW_PLAYER);
7630 /* Delete the gold */
7631 delete_object_idx(this_o_idx);
7633 /* Check the next object */
7636 else if (o_ptr->marked & OM_NOMSG)
7638 /* If 0 or 1 non-NOMSG items are in the pile, the NOMSG ones are
7639 * ignored. Otherwise, they are included in the prompt. */
7640 o_ptr->marked &= ~(OM_NOMSG);
7644 /* Count non-gold objects that can be picked up. */
7645 if (inven_carry_okay(o_ptr))
7650 /* Remember this object index */
7652 floor_list[floor_num] = this_o_idx;
7654 /* Count non-gold objects */
7657 /* Remember this index */
7658 floor_o_idx = this_o_idx;
7661 /* There are no non-gold objects */
7665 /* Mention the number of objects */
7671 /* Access the object */
7672 o_ptr = &o_list[floor_o_idx];
7674 #ifdef ALLOW_EASY_SENSE
7676 /* Option: Make object sensing easy */
7679 /* Sense the object */
7680 (void) sense_object(o_ptr);
7683 #endif /* ALLOW_EASY_SENSE */
7685 /* Describe the object */
7686 object_desc(o_name, o_ptr, TRUE, 3);
7690 msg_format("%s¤¬¤¢¤ë¡£", o_name);
7692 msg_format("You see %s.", o_name);
7697 /* Multiple objects */
7702 msg_format("%d ¸Ä¤Î¥¢¥¤¥Æ¥à¤Î»³¤¬¤¢¤ë¡£", floor_num);
7704 msg_format("You see a pile of %d items.", floor_num);
7713 /* The player has no room for anything on the floor. */
7719 /* Access the object */
7720 o_ptr = &o_list[floor_o_idx];
7722 #ifdef ALLOW_EASY_SENSE
7724 /* Option: Make object sensing easy */
7727 /* Sense the object */
7728 (void) sense_object(o_ptr);
7731 #endif /* ALLOW_EASY_SENSE */
7733 /* Describe the object */
7734 object_desc(o_name, o_ptr, TRUE, 3);
7738 msg_format("¥¶¥Ã¥¯¤Ë¤Ï%s¤òÆþ¤ì¤ë·ä´Ö¤¬¤Ê¤¤¡£", o_name);
7740 msg_format("You have no room for %s.", o_name);
7745 /* Multiple objects */
7750 msg_format("¥¶¥Ã¥¯¤Ë¤Ï¾²¤Ë¤¢¤ë¤É¤Î¥¢¥¤¥Æ¥à¤âÆþ¤é¤Ê¤¤¡£", o_name);
7752 msg_print("You have no room for any of the objects on the floor.");
7764 /* Hack -- query every object */
7765 if (carry_query_flag)
7767 char out_val[MAX_NLEN+20];
7769 /* Access the object */
7770 o_ptr = &o_list[floor_o_idx];
7772 #ifdef ALLOW_EASY_SENSE
7774 /* Option: Make object sensing easy */
7777 /* Sense the object */
7778 (void) sense_object(o_ptr);
7781 #endif /* ALLOW_EASY_SENSE */
7783 /* Describe the object */
7784 object_desc(o_name, o_ptr, TRUE, 3);
7786 /* Build a prompt */
7788 (void) sprintf(out_val, "%s¤ò½¦¤¤¤Þ¤¹¤«? ", o_name);
7790 (void) sprintf(out_val, "Pick up %s? ", o_name);
7794 /* Ask the user to confirm */
7795 if (!get_check(out_val))
7802 /* Access the object */
7803 o_ptr = &o_list[floor_o_idx];
7805 #ifdef ALLOW_EASY_SENSE
7807 /* Option: Make object sensing easy */
7810 /* Sense the object */
7811 (void) sense_object(o_ptr);
7814 #endif /* ALLOW_EASY_SENSE */
7816 /* Pick up the object */
7817 py_pickup_aux(floor_o_idx);
7820 /* Allow the user to choose an object */
7823 while (can_pickup--)
7825 if (!py_pickup_floor_aux()) break;
7830 #endif /* ALLOW_EASY_FLOOR */