1 /* Purpose: Object flavor code */
4 * Copyright (c) 1989 James E. Wilson, Robert A. Koeneke
6 * This software may be copied and distributed for educational, research, and
7 * not for profit purposes provided that this copyright and statement are
8 * included in all such copies.
15 * Hack -- note that "TERM_MULTI" is now just "TERM_VIOLET".
16 * We will have to find a cleaner method for "MULTI_HUED" later.
17 * There were only two multi-hued "flavors" (one potion, one food).
18 * Plus five multi-hued "base-objects" (3 dragon scales, one blade
19 * of chaos, and one something else). See the SHIMMER_OBJECTS code
20 * in "dungeon.c" and the object color extractor in "cave.c".
22 #define TERM_MULTI TERM_VIOLET
26 * Max sizes of the following arrays
28 #define MAX_ROCKS 59 /* Used with rings (min 38) */
29 #define MAX_AMULETS 26 /* Used with amulets (min 14) */
30 #define MAX_WOODS 34 /* Used with staffs (min 30) */
31 #define MAX_METALS 40 /* Used with wands/rods (min 29/29) */
32 #define MAX_COLORS 70 /* Used with potions (min 60) */
33 #define MAX_SHROOM 20 /* Used with mushrooms (min 20) */
34 #define MAX_TITLES 55 /* Used with scrolls (min 48) */
35 #define MAX_SYLLABLES 164 /* Used with scrolls (see below) */
39 * Rings (adjectives and colors)
42 static cptr ring_adj[MAX_ROCKS]
45 "Alexandrite", "Amethyst", "Aquamarine", "Azurite", "Beryl",
46 "Bloodstone", "Calcite", "Carnelian", "Corundum", "Diamond",
47 "Emerald", "Fluorite", "Garnet", "Granite", "Jade",
48 "Jasper", "Lapis Lazuli", "Malachite", "Marble", "Moonstone",
49 "Onyx", "Opal", "Pearl", "Quartz", "Quartzite",
50 "Rhodonite", "Ruby", "Sapphire", "Tiger Eye", "Topaz",
51 "Turquoise", "Zircon", "Platinum", "Bronze", "Gold",
52 "Obsidian", "Silver", "Tortoise Shell", "Mithril", "Jet",
53 "Engagement", "Adamantite",
54 "Wire", "Dilithium", "Bone", "Wooden",
55 "Spikard", "Serpent", "Wedding", "Double",
56 "Plain", "Brass", "Scarab","Shining",
57 "Rusty","Transparent", "Steel", "Tanzanite",
62 "¶âÎÐÀФÎ","¥¢¥á¥¸¥¹¥È¤Î","¥¢¥¯¥¢¥Þ¥ê¥ó¤Î","¤á¤Î¤¦¤Î","ÎÐÃìÀФÎ",
63 "·ì¶Ì¿ï¤Î","Êý²òÀФÎ","ÀÖ¤á¤Î¤¦¤Î","¹Ë¶Ì¤Î","¥À¥¤¥¢¥â¥ó¥É¤Î",
64 "¥¨¥á¥é¥ë¥É¤Î","¥Û¥¿¥ëÀФÎ","¥¬¡¼¥Í¥Ã¥È¤Î","¸æ±ÆÀФÎ","¤Ò¤¹¤¤¤Î",
65 "¥¸¥ã¥¹¥Ñ¡¼¤Î","ÀÄÎÜÍþ¤Î","¥¯¥¸¥ã¥¯ÀФÎ","ÂçÍýÀФÎ","¥à¡¼¥ó¥¹¥È¡¼¥ó¤Î",
66 "¼Ê¤á¤Î¤¦¤Î","¥ª¥Ñ¡¼¥ë¤Î","¿¿¼î¤Î","¿å¾½¤Î","ÀбѴä¤Î",
67 "¥¶¥¯¥íÀФÎ","¥ë¥Ó¡¼¤Î","¥µ¥Õ¥¡¥¤¥¢¤Î","¥¿¥¤¥¬¡¼¥¢¥¤¤Î","¥È¥Ñ¡¼¥º¤Î",
68 "¥È¥ë¥³ÀФÎ","¥¸¥ë¥³¥ó¤Î","¥×¥é¥Á¥Ê¤Î","¥Ö¥í¥ó¥º¤Î","¶â¤Î",
69 "¹õÍËÀФÎ","¶ä¤Î","¤Ù¤Ã¹Ã¤Î","¥ß¥¹¥ê¥ë¤Î","¹õ¶Ì¤Î",
70 "º§Ìó","¥¢¥À¥Þ¥ó¥¿¥¤¥È¤Î",
71 "¿Ë¶â¤Î","¥Ç¥£¥ê¥·¥¦¥à¤Î","¹ü¤Î","ÌÚ¤Î",
72 "¥¹¥Ô¥«¤Î" /*nuke me*/ ,"¼Ø¤Î","·ëº§","Æó½Å¤Î",
73 "¾þ¤ê¤Î¤Ê¤¤","ÀÄƼ¤Î","¥¹¥«¥é¥Ù¤Î" ,"µ±¤¯",
74 "»¬¤Ó¤¿","Æ©ÌÀ¤Ê","¹ÝÅ´¤Î","¥¿¥ó¥¶¥Ê¥¤¥È¤Î",
79 static byte ring_col[MAX_ROCKS] =
81 TERM_GREEN, TERM_VIOLET, TERM_L_BLUE, TERM_L_BLUE, TERM_L_GREEN,
82 TERM_RED, TERM_WHITE, TERM_RED, TERM_SLATE, TERM_WHITE,
83 TERM_GREEN, TERM_L_GREEN, TERM_RED, TERM_L_DARK, TERM_L_GREEN,
84 TERM_UMBER, TERM_BLUE, TERM_GREEN, TERM_WHITE, TERM_L_WHITE,
85 TERM_L_RED, TERM_L_WHITE, TERM_WHITE, TERM_L_WHITE, TERM_L_WHITE,
86 TERM_L_RED, TERM_RED, TERM_BLUE, TERM_YELLOW, TERM_YELLOW,
87 TERM_L_BLUE, TERM_L_UMBER, TERM_WHITE, TERM_L_UMBER, TERM_YELLOW,
88 TERM_L_DARK, TERM_L_WHITE, TERM_GREEN, TERM_L_BLUE, TERM_L_DARK,
89 TERM_YELLOW, TERM_VIOLET,
90 TERM_UMBER, TERM_L_WHITE, TERM_WHITE, TERM_UMBER,
91 TERM_BLUE, TERM_GREEN, TERM_YELLOW, TERM_ORANGE,
92 TERM_YELLOW, TERM_ORANGE, TERM_L_GREEN, TERM_YELLOW,
93 TERM_RED, TERM_WHITE, TERM_WHITE, TERM_YELLOW,
99 * Amulets (adjectives and colors)
101 static cptr amulet_adj[MAX_AMULETS]
104 "Amber", "Driftwood", "Coral", "Agate", "Ivory",
105 "Obsidian", "Bone", "Brass", "Bronze", "Pewter",
106 "Tortoise Shell", "Golden", "Azure", "Crystal", "Silver",
107 "Copper", "Swastika", "Platinum","Runed", "Rusty",
108 "Curved", "Dragon's claw", "Rosary", "Jade", "Mithril",
113 "àèàá¤Î","ήÌÚ¤Î","¥µ¥ó¥´¤Î","¤á¤Î¤¦¤Î","¾Ý²ç¤Î",
114 "¹õÍËÀФÎ","¹ü¤Î","¿¿ï«¤Î","ÀÄƼ¤Î","¤·¤í¤á¤Î",
115 "¤Ù¤Ã¹Ã¤Î","¶â¤Î","ÎÜÍþ¤Î","¿å¾½¤Î","¶ä¤Î",
116 "Ƽ¤Î","ÒĤÎ", "¥×¥é¥Á¥Ê¤Î", "¥ë¡¼¥ó¤¬¹ï¤Þ¤ì¤¿","»¬¤Ó¤¿",
117 "¶Ê¤¬¤Ã¤¿", "¥É¥é¥´¥ó¤ÎÄÞ¤Î", "¿ô¼î¤Î", "¤Ò¤¹¤¤¤Î", "¥ß¥¹¥ê¥ë¤Î",
122 static byte amulet_col[MAX_AMULETS] =
124 TERM_YELLOW, TERM_L_UMBER, TERM_WHITE, TERM_L_WHITE, TERM_WHITE,
125 TERM_L_DARK, TERM_WHITE, TERM_L_UMBER, TERM_L_UMBER, TERM_SLATE,
126 TERM_GREEN, TERM_YELLOW, TERM_L_BLUE, TERM_L_BLUE, TERM_L_WHITE,
127 TERM_L_UMBER, TERM_VIOLET, TERM_WHITE, TERM_UMBER, TERM_RED,
128 TERM_GREEN, TERM_L_GREEN, TERM_L_GREEN, TERM_GREEN, TERM_L_BLUE,
134 * Staffs (adjectives and colors)
136 static cptr staff_adj[MAX_WOODS]
139 "Aspen", "Balsa", "Banyan", "Birch", "Cedar",
140 "Cottonwood", "Cypress", "Dogwood", "Elm", "Eucalyptus",
141 "Hemlock", "Hickory", "Ironwood", "Locust", "Mahogany",
142 "Maple", "Mulberry", "Oak", "Pine", "Redwood",
143 "Rosewood", "Spruce", "Sycamore", "Teak", "Walnut",
144 "Mistletoe", "Hawthorn", "Bamboo", "Silver", "Runed",
145 "Golden", "Ashen", "Ivory","Gnarled"/*,"Willow"*/
149 "¥Ý¥×¥é¤Î","¥Ð¥ë¥µ¤Î","¥Ð¥ó¥ä¥ó¤Î","¥«¥Ð¤Î","À¾ÍÎ¥¹¥®¤Î",
150 "ÛؤÎ","¥¤¥È¥¹¥®¤Î","¥ß¥º¥¤Î","¥Ë¥ì¤Î","¥æ¡¼¥«¥ê¤Î",
151 "¥Ä¥¬¤Î","¥Ö¥Ê¤Î","¹õÃɤÎ","¥¢¥«¥·¥¢¤Î","¥Þ¥Û¥¬¥Ë¡¼¤Î",
152 "¥«¥¨¥Ç¤Î","¥¯¥ï¤Î","¥«¥·¤Î","¾¾¤Î","¿ù¤Î",
153 "»çÃɤÎ","¥¨¥¾¥Þ¥Ä¤Î","¥¤¥Á¥¸¥¯¤Î","¥Á¡¼¥¯¤Î","¥¯¥ë¥ß¤Î",
154 "¥ä¥É¥ê¥®¤Î","¥µ¥ó¥¶¥·¤Î","ÃݤÎ","¶ä¤Î","¥ë¡¼¥ó¤Î",
155 "¶â¤Î","¥È¥Í¥ê¥³¤Î", "¾Ý²ç¤Î", "·î·Ë¼ù¤Î"
159 static byte staff_col[MAX_WOODS] =
161 TERM_L_UMBER, TERM_L_UMBER, TERM_L_UMBER, TERM_L_UMBER, TERM_L_UMBER,
162 TERM_L_UMBER, TERM_L_UMBER, TERM_L_UMBER, TERM_L_UMBER, TERM_L_UMBER,
163 TERM_L_UMBER, TERM_L_UMBER, TERM_UMBER, TERM_L_UMBER, TERM_UMBER,
164 TERM_L_UMBER, TERM_L_UMBER, TERM_L_UMBER, TERM_L_UMBER, TERM_RED,
165 TERM_RED, TERM_L_UMBER, TERM_L_UMBER, TERM_L_UMBER, TERM_UMBER,
166 TERM_GREEN, TERM_L_UMBER, TERM_L_UMBER, TERM_L_WHITE, TERM_UMBER,
167 TERM_YELLOW, TERM_SLATE, TERM_WHITE, TERM_SLATE
172 * Wands (adjectives and colors)
174 static cptr wand_adj[MAX_METALS]
177 "Aluminum", "Cast Iron", "Chromium", "Copper", "Gold",
178 "Iron", "Magnesium", "Molybdenum", "Nickel", "Rusty",
179 "Silver", "Steel", "Tin", "Titanium", "Tungsten",
180 "Zirconium", "Zinc", "Aluminum-Plated", "Copper-Plated", "Gold-Plated",
181 "Nickel-Plated", "Silver-Plated", "Steel-Plated", "Tin-Plated", "Zinc-Plated",
182 "Mithril-Plated", "Mithril", "Runed", "Bronze", "Brass",
183 "Platinum", "Lead","Lead-Plated", "Ivory" , "Adamantite",
184 "Uridium", "Long", "Short", "Hexagonal", "Carbonized"
188 "¥¢¥ë¥ß¤Î","ÃòÅ´¤Î","¥¯¥í¥à¤Î","Ƽ¤Î","¶â¤Î",
189 "Å´¤Î","¥Þ¥°¥Í¥·¥¦¥à¤Î","¥â¥ê¥Ö¥Ç¥ó¤Î","¥Ë¥Ã¥±¥ë¤Î","»¬¤Ó¤¿",
190 "¶ä¤Î","¹ÝÅ´¤Î","¥Ö¥ê¥¤Î","¥Á¥¿¥ó¤Î","¥¿¥ó¥°¥¹¥Æ¥ó¤Î",
191 "¥¸¥ë¥³¥ó¤Î","°¡±ô¤Î","¥¢¥ë¥ß¥á¥Ã¥¤Î","Ƽ¥á¥Ã¥¤Î","¶â¥á¥Ã¥¤Î",
192 "ÇòƼ¥á¥Ã¥¤Î","¶ä¥á¥Ã¥¤Î","Å´¥á¥Ã¥¤Î","¥¹¥º¥á¥Ã¥¤Î","°¡±ô¥á¥Ã¥¤Î",
193 "¥ß¥¹¥ê¥ë¥á¥Ã¥¤Î","¥ß¥¹¥ê¥ë¤Î","¥ë¡¼¥ó¤¬¹ï¤Þ¤ì¤¿","ÀÄƼ¤Î","¿¿ï«¤Î",
194 "¥×¥é¥Á¥Ê¤Î","±ô¤Î","±ô¥á¥Ã¥¤Î","¾Ý²ç¤Î","¥¢¥À¥Þ¥ó¥¿¥¤¥È¤Î",
195 "¥¤¥ê¥Â¥¦¥à¤Î","Ť¤","û¤¤","Ï»³Ñ·Á¤Î", "úÁǤÎ"
199 static byte wand_col[MAX_METALS] =
201 TERM_L_BLUE, TERM_L_DARK, TERM_WHITE, TERM_L_UMBER, TERM_YELLOW,
202 TERM_SLATE, TERM_L_WHITE, TERM_L_WHITE, TERM_L_UMBER, TERM_RED,
203 TERM_L_WHITE, TERM_L_WHITE, TERM_L_WHITE, TERM_WHITE, TERM_WHITE,
204 TERM_L_WHITE, TERM_L_WHITE, TERM_L_BLUE, TERM_L_UMBER, TERM_YELLOW,
205 TERM_L_UMBER, TERM_L_WHITE, TERM_L_WHITE, TERM_L_WHITE, TERM_L_WHITE,
206 TERM_L_BLUE, TERM_L_BLUE, TERM_UMBER, TERM_L_UMBER, TERM_L_UMBER,
207 TERM_WHITE, TERM_SLATE, TERM_SLATE, TERM_WHITE, TERM_VIOLET,
208 TERM_L_RED, TERM_L_BLUE, TERM_BLUE, TERM_RED, TERM_L_DARK
213 * Rods (adjectives and colors).
214 * Efficiency -- copied from wand arrays
217 static cptr rod_adj[MAX_METALS];
219 static byte rod_col[MAX_METALS];
223 * Mushrooms (adjectives and colors)
226 static cptr food_adj[MAX_SHROOM]
229 "Blue", "Black", "Black Spotted", "Brown", "Dark Blue",
230 "Dark Green", "Dark Red", "Yellow", "Furry", "Green",
231 "Grey", "Light Blue", "Light Green", "Violet", "Red",
232 "Slimy", "Tan", "White", "White Spotted", "Wrinkled",
236 "ÀĤ¤","¹õ¤¤","¹õÈäÎ","Ã㿧¤Î","·²ÀĤÎ",
237 "¿¼ÎФÎ","¹È¿§¤Î","²«¿§¤¤","Âݤष¤¿","ÎФÎ",
238 "¥°¥ì¡¼¤Î","¶õ¿§¤Î","²«ÎФÎ","¥¹¥ß¥ì¿§¤Î","ÀÖ¤¤",
239 "¤Í¤Ð¤Í¤Ð¤·¤¿","²«³ì¿§¤Î","Çò¤¤","ÇòÈäÎ","¤·¤ï¤·¤ï¤Î",
243 static byte food_col[MAX_SHROOM] =
245 TERM_BLUE, TERM_L_DARK, TERM_L_DARK, TERM_UMBER, TERM_BLUE,
246 TERM_GREEN, TERM_RED, TERM_YELLOW, TERM_L_WHITE, TERM_GREEN,
247 TERM_SLATE, TERM_L_BLUE, TERM_L_GREEN, TERM_VIOLET, TERM_RED,
248 TERM_SLATE, TERM_L_UMBER, TERM_WHITE, TERM_WHITE, TERM_UMBER
253 * Color adjectives and colors, for potions.
254 * Hack -- The first four entries are hard-coded.
255 * (water, apple juice, slime mold juice, something)
258 static cptr potion_adj[MAX_COLORS]
261 "Clear", "Light Brown", "Icky Green", "xxx",
262 "Azure", "Blue", "Blue Speckled", "Black", "Brown", "Brown Speckled",
263 "Bubbling", "Chartreuse", "Cloudy", "Copper Speckled", "Crimson", "Cyan",
264 "Dark Blue", "Dark Green", "Dark Red", "Gold Speckled", "Green",
265 "Green Speckled", "Grey", "Grey Speckled", "Hazy", "Indigo",
266 "Light Blue", "Light Green", "Magenta", "Metallic Blue", "Metallic Red",
267 "Metallic Green", "Metallic Purple", "Misty", "Orange", "Orange Speckled",
268 "Pink", "Pink Speckled", "Puce", "Purple", "Purple Speckled",
269 "Red", "Red Speckled", "Silver Speckled", "Smoky", "Tangerine",
270 "Violet", "Vermilion", "White", "Yellow", "Violet Speckled",
271 "Pungent", "Clotted Red", "Viscous Pink", "Oily Yellow", "Gloopy Green",
272 "Shimmering", "Coagulated Crimson", "Yellow Speckled", "Gold",
273 "Manly", "Stinking", "Oily Black", "Ichor", "Ivory White", "Sky Blue",
274 "Gray", "Silver", "Bronze", "Flashing",
278 "Æ©ÌÀ¤Ê","ÇöÃ㿧¤Î","¤è¤É¤ó¤ÀÎФÎ","¼¿¹õ¤Î",
279 "º°ÊˤÎ","ÀĤ¤","ÀÄÈäÎ","¹õ¤¤","Ã㿧¤Î","ÃãÈäÎ",
280 "Ë¢¤À¤Ã¤¿","Çö²«Î理Î","Âù¤Ã¤¿","ƼÈäÎ","¹È¿§¤Î","¥·¥¢¥ó¿§¤Î",
281 "·²ÀÄ¿§¤Î","¿¼¤¤ÎФÎ","¿¼¤¤ÀÖ¿§¤Î","¶âÈäÎ","Î理Î",
282 "ÎÐÈäÎ","³¥¿§¤Î","³¥ÈäÎ","¤Ü¤ä¤±¤¿¿§¤Î","Íõ¿§¤Î",
283 "Çö¤¤ÀÄ¿§¤Î","Çö¤¤Î理Î","¥Þ¥¼¥ó¥¿¿§¤Î","ÀĤ¯µ±¤¯","ÀÖ¤¯µ±¤¯",
284 "ÎФ˵±¤¯","»ç¤Ëµ±¤¯","̸¾õ¤Î","¥ª¥ì¥ó¥¸¿§¤Î","¥ª¥ì¥ó¥¸ÈäÎ",
285 "¥Ô¥ó¥¯¿§¤Î","¥Ô¥ó¥¯ÈäÎ","¹õ³ì¿§¤Î","»ç¿§¤Î","¤¦¤¹¤¤»çÈäÎ",
286 "ÀÖ¤¤","ÀÖÈäÎ","¶äÈäÎ","±ì¤Ã¤¿","Üô¿§¤Î",
287 "¥¹¥ß¥ì¿§¤Î","¼ë¿§¤Î","Çò¤¤","²«¿§¤¤", "»çÈäÎ",
288 "»É·ã½¤Î¤¹¤ë","¤è¤É¤ó¤ÀÀÖ¤Î","¥É¥í¥É¥í¤Î","¤Í¤Ð¤Ã¤¿²«¿§¤Î","°ÅÎ理Î",
289 "µ±¤¯","¤Í¤Ð¤Ã¤¿¿¼¹È¤Î","²«ÈäÎ","¶â¿§¤Î",
290 "Ã˽¤¤" /*nuke me*/,"°½¤Î¤¹¤ë","¹õÌý¿§¤Î","ǾÞù¤Î",
291 "¾Ý²ç¿§¤Î","¶õ¿§¤Î", "¤Í¤º¤ß¿§¤Î", "¶ä¿§¤Î", "ÀÖƼ¿§¤Î",
296 static byte potion_col[MAX_COLORS] =
298 TERM_WHITE, TERM_L_UMBER, TERM_GREEN, 0,
299 TERM_L_BLUE, TERM_BLUE, TERM_BLUE, TERM_L_DARK, TERM_UMBER, TERM_UMBER,
300 TERM_L_WHITE, TERM_L_GREEN, TERM_WHITE, TERM_L_UMBER, TERM_RED, TERM_L_BLUE,
301 TERM_BLUE, TERM_GREEN, TERM_RED, TERM_YELLOW, TERM_GREEN,
302 TERM_GREEN, TERM_SLATE, TERM_SLATE, TERM_L_WHITE, TERM_VIOLET,
303 TERM_L_BLUE, TERM_L_GREEN, TERM_RED, TERM_BLUE, TERM_RED,
304 TERM_GREEN, TERM_VIOLET, TERM_L_WHITE, TERM_ORANGE, TERM_ORANGE,
305 TERM_L_RED, TERM_L_RED, TERM_VIOLET, TERM_VIOLET, TERM_VIOLET,
306 TERM_RED, TERM_RED, TERM_L_WHITE, TERM_L_DARK, TERM_ORANGE,
307 TERM_VIOLET, TERM_RED, TERM_WHITE, TERM_YELLOW, TERM_VIOLET,
308 TERM_L_RED, TERM_RED, TERM_L_RED, TERM_YELLOW, TERM_GREEN,
309 TERM_MULTI, TERM_RED, TERM_YELLOW, TERM_YELLOW,
310 TERM_L_UMBER, TERM_UMBER, TERM_L_DARK, TERM_RED,
311 TERM_WHITE, TERM_L_BLUE, TERM_L_WHITE, TERM_WHITE, TERM_RED,
317 * Syllables for scrolls (must be 1-4 letters each)
320 static cptr syllables[MAX_SYLLABLES]
323 "Å·", "ÃÏ", "̵", "ÍÑ", "°ì", "Åá", "ξ", "ÃÇ",
324 "°á", "Ë¥", "Æü", "Àé", "½©", "Ëþ", "¿È", "ÁÏ",
325 "áØ", "¼·", "ž", "Ȭ", "ÅÝ", "²é", "¿Å",
326 "¾¨", "ÃÀ", "µ¯", "»à", "²ó", "À¸", "ʸ",
327 "Éð", "Æ»", "ε", "Ƭ", "¼Ø", "Èø", "ñ", "Åá", "ľ", "Æþ",
328 "¿Ê", "Âà", "¸Þ", "¡", "Ï»", "ç¥", "Âç", "»³", "ÌÄ",
329 "Æ°", "É÷", "ÎÓ", "²Ð", "Àä", "ÂÎ", "Ì¿", "»Í",
330 "ÌÌ", "Á¿", "²Î", "´°", "Á´", "·ç", "Ä·", "ÎÂ",
331 "ìí", "î½", "òµ", "Ì¥", "ò³", "ò´", "½Ä",
332 "²£", "¿Ô", "¿À", "½Ð", "µ´", "Ë×", "²¹", "¸Î", "ÃÎ",
333 "¿·", "½Õ", "²Æ", "Åß", "½ã", "¿¿", "¹¤", "¶½",
334 "Ì£", "ÄÅ", "³Î", "Èæ", "¶ì", "¿´", "»´", "߸",
335 "Ç°", "ȯ", "Á°", "Âå", "̤", "ʹ", "¶õ", "¸å",
336 "Ú¼", "¶â", "¿¹", "Íå", "Ëü", "¾Ý", "ÊÑ", "²½",
337 "½½", "Ãæ", "Ȭ", "¶å", "¿Í", "¿§", "»î", "¹Ô",
338 "ºø", "¸í", "»ö", "¼Â", "º¬", "µÛ", "¼ý", "¹ç",
339 "Ê»", "Á´", "¹ñ", "À©", "ÇÆ", "¾Æ", "Æù", "Äê",
340 "¿©", "¹ü", "²ç", "Ìø", "Èô", "æÆ", "Éõ", "°õ",
341 "¼À", "Íð", "Éð", "¾", "·Ú", "Ǧ", "·õ", "ǽ",
342 "À»", "¼Ù", "¼ö", "¼±", "¸¸", "´¶", "ÆÇ", "°Ç",
347 "a", "ab", "ag", "aks", "ala", "an", "ankh", "app",
348 "arg", "arze", "ash", "aus", "ban", "bar", "bat", "bek",
349 "bie", "bin", "bit", "bjor", "blu", "bot", "bu",
350 "byt", "comp", "con", "cos", "cre", "dalf", "dan",
351 "den", "der", "doe", "dok", "eep", "el", "eng", "er", "ere", "erk",
352 "esh", "evs", "fa", "fid", "flit", "for", "fri", "fu", "gan",
353 "gar", "glen", "gop", "gre", "ha", "he", "hyd", "i",
354 "ing", "ion", "ip", "ish", "it", "ite", "iv", "jo",
355 "kho", "kli", "klis", "la", "lech", "man", "mar",
356 "me", "mi", "mic", "mik", "mon", "mung", "mur", "nag", "nej",
357 "nelg", "nep", "ner", "nes", "nis", "nih", "nin", "o",
358 "od", "ood", "org", "orn", "ox", "oxy", "pay", "pet",
359 "ple", "plu", "po", "pot", "prok", "re", "rea", "rhov",
360 "ri", "ro", "rog", "rok", "rol", "sa", "san", "sat",
361 "see", "sef", "seh", "shu", "ski", "sna", "sne", "snik",
362 "sno", "so", "sol", "sri", "sta", "sun", "ta", "tab",
363 "tem", "ther", "ti", "tox", "trol", "tue", "turs", "u",
364 "ulk", "um", "un", "uni", "ur", "val", "viv", "vly",
365 "vom", "wah", "wed", "werg", "wex", "whon", "wun", "x",
366 "yerg", "yp", "zun", "tri", "blaa", "jah", "bul", "on",
373 * Hold the titles of scrolls, 6 to 14 characters each
374 * Also keep an array of scroll colors (always WHITE for now)
376 static char scroll_adj[MAX_TITLES][16];
378 static byte scroll_col[MAX_TITLES];
382 * Certain items, if aware, are known instantly
383 * This function is used only by "flavor_init()"
385 static bool object_easy_know(int i)
387 object_kind *k_ptr = &k_info[i];
389 /* Analyze the "tval" */
394 case TV_SORCERY_BOOK:
400 case TV_ENCHANT_BOOK:
402 case TV_CRUSADE_BOOK:
404 case TV_HISSATSU_BOOK:
420 /* All Food, Potions, Scrolls, Rods */
436 * Certain items have a flavor
437 * This function is used only by "flavor_init()"
439 static bool object_flavor(int k_idx)
441 object_kind *k_ptr = &k_info[k_idx];
443 /* Analyze the item */
448 return (0x80 + amulet_col[k_ptr->sval]);
453 return (0x90 + ring_col[k_ptr->sval]);
458 return (0xA0 + staff_col[k_ptr->sval]);
463 return (0xB0 + wand_col[k_ptr->sval]);
468 return (0xC0 + rod_col[k_ptr->sval]);
473 return (0xD0 + scroll_col[k_ptr->sval]);
478 return (0xE0 + potion_col[k_ptr->sval]);
483 if (k_ptr->sval < SV_FOOD_MIN_FOOD)
485 return (0xF0 + food_col[k_ptr->sval]);
497 void get_table_name(char *out_string)
501 strcpy(out_string, "¡Ø");
502 get_rnd_line("aname_j.txt", 1, Syllable);
503 strcat(out_string, Syllable);
504 get_rnd_line("aname_j.txt", 2, Syllable);
505 strcat(out_string, Syllable);
506 strcat(out_string, "¡Ù");
508 int testcounter = randint1(3) + 1;
510 strcpy(out_string, "'");
512 if (randint1(3) == 2)
514 while (testcounter--)
515 strcat(out_string, syllables[randint0(MAX_SYLLABLES)]);
520 testcounter = randint1(2) + 1;
521 while (testcounter--)
523 (void)get_rnd_line("elvish.txt", 0, Syllable);
524 strcat(out_string, Syllable);
528 out_string[1] = toupper(out_string[1]);
530 strcat(out_string, "'");
534 out_string[18] = '\0';
541 * Prepare the "variable" part of the "k_info" array.
543 * The "color"/"metal"/"type" of an item is its "flavor".
544 * For the most part, flavors are assigned randomly each game.
546 * Initialize descriptions for the "colored" objects, including:
547 * Rings, Amulets, Staffs, Wands, Rods, Food, Potions, Scrolls.
549 * The first 4 entries for potions are fixed (Water, Apple Juice,
550 * Slime Mold Juice, Unused Potion).
552 * Scroll titles are always between 6 and 14 letters long. This is
553 * ensured because every title is composed of whole words, where every
554 * word is from 1 to 8 letters long (one or two syllables of 1 to 4
555 * letters each), and that no scroll is finished until it attempts to
556 * grow beyond 15 letters. The first time this can happen is when the
557 * current title has 6 letters and the new word has 8 letters, which
558 * would result in a 6 letter scroll title.
560 * Duplicate titles are avoided by requiring that no two scrolls share
561 * the same first four letters (not the most efficient method, and not
562 * the least efficient method, but it will always work).
564 * Hack -- make sure everything stays the same for each saved game
565 * This is accomplished by the use of a saved "random seed", as in
566 * "town_gen()". Since no other functions are called while the special
567 * seed is in effect, so this function is pretty "safe".
569 * Note that the "hacked seed" may provide an RNG with alternating parity!
571 void flavor_init(void)
580 /* Hack -- Use the "simple" RNG */
583 /* Hack -- Induce consistant flavors */
584 Rand_value = seed_flavor;
587 /* Efficiency -- Rods/Wands share initial array */
588 for (i = 0; i < MAX_METALS; i++)
590 rod_adj[i] = wand_adj[i];
591 rod_col[i] = wand_col[i];
595 /* Rings have "ring colors" */
596 for (i = 0; i < MAX_ROCKS; i++)
598 j = randint0(MAX_ROCKS);
599 temp_adj = ring_adj[i];
600 ring_adj[i] = ring_adj[j];
601 ring_adj[j] = temp_adj;
603 temp_col = ring_col[i];
604 ring_col[i] = ring_col[j];
605 ring_col[j] = temp_col;
608 /* Hack -- The One Ring */
610 ring_adj[SV_RING_POWER] = "¶â̵¹¤¤Î";
611 ring_adj[SV_RING_AHO] = "¶â͹¤¤Î";
613 ring_adj[SV_RING_POWER] = "Plain Gold";
614 ring_adj[SV_RING_AHO] = "Plain Goldarn";
619 ring_col[SV_RING_POWER] = TERM_YELLOW;
620 ring_col[SV_RING_AHO] = TERM_YELLOW;
623 /* Amulets have "amulet colors" */
624 for (i = 0; i < MAX_AMULETS; i++)
626 j = randint0(MAX_AMULETS);
627 temp_adj = amulet_adj[i];
628 amulet_adj[i] = amulet_adj[j];
629 amulet_adj[j] = temp_adj;
631 temp_col = amulet_col[i];
632 amulet_col[i] = amulet_col[j];
633 amulet_col[j] = temp_col;
637 for (i = 0; i < MAX_WOODS; i++)
639 j = randint0(MAX_WOODS);
640 temp_adj = staff_adj[i];
641 staff_adj[i] = staff_adj[j];
642 staff_adj[j] = temp_adj;
644 temp_col = staff_col[i];
645 staff_col[i] = staff_col[j];
646 staff_col[j] = temp_col;
650 for (i = 0; i < MAX_METALS; i++)
652 j = randint0(MAX_METALS);
653 temp_adj = wand_adj[i];
654 wand_adj[i] = wand_adj[j];
655 wand_adj[j] = temp_adj;
657 temp_col = wand_col[i];
658 wand_col[i] = wand_col[j];
659 wand_col[j] = temp_col;
663 for (i = 0; i < MAX_METALS; i++)
665 j = randint0(MAX_METALS);
666 temp_adj = rod_adj[i];
667 rod_adj[i] = rod_adj[j];
668 rod_adj[j] = temp_adj;
670 temp_col = rod_col[i];
671 rod_col[i] = rod_col[j];
672 rod_col[j] = temp_col;
675 /* Foods (Mushrooms) */
676 for (i = 0; i < MAX_SHROOM; i++)
678 j = randint0(MAX_SHROOM);
679 temp_adj = food_adj[i];
680 food_adj[i] = food_adj[j];
681 food_adj[j] = temp_adj;
683 temp_col = food_col[i];
684 food_col[i] = food_col[j];
685 food_col[j] = temp_col;
689 for (i = 4; i < MAX_COLORS; i++)
691 j = randint0(MAX_COLORS - 4) + 4;
692 temp_adj = potion_adj[i];
693 potion_adj[i] = potion_adj[j];
694 potion_adj[j] = temp_adj;
696 temp_col = potion_col[i];
697 potion_col[i] = potion_col[j];
698 potion_col[j] = temp_col;
701 /* Scrolls (random titles, always white) */
702 for (i = 0; i < MAX_TITLES; i++)
704 /* Get a new title */
711 /* Start a new title */
714 /* Collect words until done */
721 /* Start a new word */
724 /* Choose one or two syllables */
725 s = ((randint0(100) < 30) ? 1 : 2);
727 /* Add a one or two syllable word */
728 for (q = 0; q < s; q++)
730 /* Add the syllable */
731 strcat(tmp, syllables[randint0(MAX_SYLLABLES)]);
734 /* Stop before getting too long */
735 if (strlen(buf) + 1 + strlen(tmp) > 15) break;
745 strcpy(scroll_adj[i], buf+1);
750 /* Check for "duplicate" scroll titles */
751 for (j = 0; j < i; j++)
753 cptr hack1 = scroll_adj[j];
754 cptr hack2 = scroll_adj[i];
756 /* Compare first four characters */
757 if (*hack1++ != *hack2++) continue;
758 if (*hack1++ != *hack2++) continue;
759 if (*hack1++ != *hack2++) continue;
760 if (*hack1++ != *hack2++) continue;
769 /* Break when done */
773 /* All scrolls are white */
774 scroll_col[i] = TERM_WHITE;
778 /* Hack -- Use the "complex" RNG */
781 /* Analyze every object */
782 for (i = 1; i < max_k_idx; i++)
784 object_kind *k_ptr = &k_info[i];
786 /* Skip "empty" objects */
787 if (!k_ptr->name) continue;
789 /* Extract "flavor" (if any) */
790 k_ptr->flavor = object_flavor(i);
792 /* No flavor yields aware */
793 if (!k_ptr->flavor) k_ptr->aware = TRUE;
795 /* Check for "easily known" */
796 k_ptr->easy_know = object_easy_know(i);
802 * Print a char "c" into a string "t", as if by sprintf(t, "%c", c),
803 * and return a pointer to the terminator (t + 1).
805 static char *object_desc_chr(char *t, char c)
819 * Print a string "s" into a string "t", as if by strcpy(t, s),
820 * and return a pointer to the terminator.
822 static char *object_desc_str(char *t, cptr s)
824 /* Copy the string */
825 while (*s) *t++ = *s++;
837 * Print an unsigned number "n" into a string "t", as if by
838 * sprintf(t, "%u", n), and return a pointer to the terminator.
840 static char *object_desc_num(char *t, uint n)
844 /* Find "size" of "n" */
845 for (p = 1; n >= p * 10; p = p * 10) /* loop */;
847 /* Dump each digit */
853 /* Remove the digit */
856 /* Process next digit */
872 * ÆüËܸì¤Î¸Ä¿ôɽ¼¨¥ë¡¼¥Á¥ó
873 *¡Êcmd1.c ¤ÇήÍѤ¹¤ë¤¿¤á¤Ë object_desc_japanese ¤«¤é°ÜÆ°¤·¤¿¡£¡Ë
876 char *object_desc_kosuu(char *t, object_type *o_ptr)
878 t = object_desc_num(t, o_ptr->number);
890 t = object_desc_str(t, "ËÜ");
895 t = object_desc_str(t, "´¬");
900 t = object_desc_str(t, "Éþ");
904 case TV_SORCERY_BOOK:
910 case TV_ENCHANT_BOOK:
912 case TV_CRUSADE_BOOK:
914 case TV_HISSATSU_BOOK:
916 t = object_desc_str(t, "ºý");
924 t = object_desc_str(t, "Ãå");
931 t = object_desc_str(t, "¿¶");
936 t = object_desc_str(t, "");
941 t = object_desc_str(t, "Ëç");
944 /* ¿©¤Ù¤â¤Î by ita */
947 if(o_ptr->sval == SV_FOOD_JERKY)
949 t = object_desc_str(t, "ÀÚ¤ì");
955 if (o_ptr->number < 10)
957 t = object_desc_str(t, "¤Ä");
961 t = object_desc_str(t, "¸Ä");
971 * Print an signed number "v" into a string "t", as if by
972 * sprintf(t, "%+d", n), and return a pointer to the terminator.
973 * Note that we always print a sign, either "+" or "-".
975 static char *object_desc_int(char *t, sint v)
982 /* Take the absolute value */
985 /* Use a "minus" sign */
989 /* Positive (or zero) */
992 /* Use the actual number */
995 /* Use a "plus" sign */
999 /* Find "size" of "n" */
1000 for (p = 1; n >= p * 10; p = p * 10) /* loop */;
1002 /* Dump each digit */
1005 /* Dump the digit */
1008 /* Remove the digit */
1011 /* Process next digit */
1024 * Creates a description of the item "o_ptr", and stores it in "out_val".
1026 * One can choose the "verbosity" of the description, including whether
1027 * or not the "number" of items should be described, and how much detail
1028 * should be used when describing the item.
1030 * The given "buf" must be MAX_NLEN chars long to hold the longest possible
1031 * description, which can get pretty long, including incriptions, such as:
1032 * "no more Maces of Disruption (Defender) (+10,+10) [+5] (+3 to stealth)".
1033 * Note that the inscription will be clipped to keep the total description
1034 * under MAX_NLEN-1 chars (plus a terminator).
1036 * Note the use of "object_desc_num()" and "object_desc_int()" as hyper-efficient,
1037 * portable, versions of some common "sprintf()" commands.
1039 * Note that all ego-items (when known) append an "Ego-Item Name", unless
1040 * the item is also an artifact, which should NEVER happen.
1042 * Note that all artifacts (when known) append an "Artifact Name", so we
1043 * have special processing for "Specials" (artifact Lites, Rings, Amulets).
1044 * The "Specials" never use "modifiers" if they are "known", since they
1045 * have special "descriptions", such as "The Necklace of the Dwarves".
1047 * Special Lite's use the "k_info" base-name (Phial, Star, or Arkenstone),
1048 * plus the artifact name, just like any other artifact, if known.
1050 * Special Ring's and Amulet's, if not "aware", use the same code as normal
1051 * rings and amulets, and if "aware", use the "k_info" base-name (Ring or
1052 * Amulet or Necklace). They will NEVER "append" the "k_info" name. But,
1053 * they will append the artifact name, just like any artifact, if known.
1055 * Hack -- Display "The One Ring" as "a Plain Gold Ring" until aware.
1057 * If "pref" then a "numeric" prefix will be pre-pended.
1060 * 0 -- The Cloak of Death
1061 * 1 -- The Cloak of Death [1,+3]
1062 * 2 -- The Cloak of Death [1,+3] (+2 to Stealth)
1063 * 3 -- The Cloak of Death [1,+3] (+2 to Stealth) {nifty}
1065 void object_desc(char *buf, object_type *o_ptr, int pref, int mode)
1067 cptr basenm, modstr;
1068 int power, indexx, i;
1073 bool append_name = FALSE;
1075 bool show_weapon = FALSE;
1076 bool show_armour = FALSE;
1081 char p1 = '(', p2 = ')';
1082 char b1 = '[', b2 = ']';
1083 char c1 = '{', c2 = '}';
1085 char tmp_val[MAX_NLEN+160];
1086 char tmp_val2[MAX_NLEN+10];
1088 u32b flgs[TR_FLAG_SIZE];
1090 object_type *bow_ptr;
1093 object_kind *k_ptr = &k_info[o_ptr->k_idx];
1095 monster_race *r_ptr = &r_info[o_ptr->pval];
1097 /* Extract some flags */
1098 object_flags(o_ptr, flgs);
1100 /* See if the object is "aware" */
1101 if (object_aware_p(o_ptr) || (o_ptr->ident & IDENT_MENTAL)) aware = TRUE;
1103 /* See if the object is "known" */
1104 if (object_known_p(o_ptr)) known = TRUE;
1106 /* Hack -- Extract the sub-type "indexx" */
1107 indexx = o_ptr->sval;
1109 /* Extract default "base" string */
1110 basenm = get_object_name(o_ptr);
1112 /* Assume no "modifier" string */
1116 /* Analyze the object */
1117 switch (o_ptr->tval)
1119 /* Some objects are easy to describe */
1140 modstr = " (empty)";
1146 sprintf(tmp_val2, "¡Ê%s¡Ë",r_name + r_ptr->name);
1149 cptr t = r_name + r_ptr->name;
1151 if (!(r_ptr->flags1 & RF1_UNIQUE))
1153 sprintf(tmp_val2, " (%s%s)", (is_a_vowel(*t) ? "an " : "a "), t);
1159 sprintf(tmp_val2, "(%s)", t);
1169 /* Figurines/Statues */
1174 modstr = r_name + r_ptr->name;
1176 cptr t = r_name + r_ptr->name;
1178 if (!(r_ptr->flags1 & RF1_UNIQUE))
1180 sprintf(tmp_val2, "%s%s", (is_a_vowel(*t) ? "an " : "a "), t);
1197 modstr = r_name + r_ptr->name;
1201 sprintf(tmp_val2, "& #%s", basenm + 2);
1203 if (r_ptr->flags1 & RF1_UNIQUE)
1205 sprintf(tmp_val2, "%s %s", basenm, "of #");
1209 sprintf(tmp_val2, "& # %s", basenm + 2);
1218 /* Missiles/ Bows/ Weapons */
1249 /* Lites (including a few "Specials") */
1255 /* Amulets (including a few "Specials") */
1258 /* Known artifacts */
1259 if (artifact_p(o_ptr) && aware) break;
1261 if ((k_ptr->gen_flags & TRG_INSTA_ART) && aware) break;
1263 /* Color the object */
1264 modstr = amulet_adj[indexx];
1266 if (aware) append_name = TRUE;
1268 if (((plain_descriptions) && (aware)) || o_ptr->ident & IDENT_STOREB)
1270 basenm = aware ? "& %¤Î¥¢¥ß¥å¥ì¥Ã¥È" : "& ¥¢¥ß¥å¥ì¥Ã¥È";
1272 basenm = aware ? "& #%¤Î¥¢¥ß¥å¥ì¥Ã¥È" : "& #¥¢¥ß¥å¥ì¥Ã¥È";
1274 basenm = "& Amulet~";
1276 basenm = aware ? "& # Amulet~" : "& # Amulet~";
1282 /* Rings (including a few "Specials") */
1285 /* Known artifacts */
1286 if (artifact_p(o_ptr) && aware) break;
1288 if ((k_ptr->gen_flags & TRG_INSTA_ART) && aware) break;
1290 /* Color the object */
1291 modstr = ring_adj[indexx];
1293 if (aware) append_name = TRUE;
1295 if (((plain_descriptions) && (aware)) || o_ptr->ident & IDENT_STOREB)
1297 basenm = aware ? "& %¤Î»ØÎØ" : "& »ØÎØ";
1299 basenm = aware ? "& #%¤Î»ØÎØ" : "& #»ØÎØ";
1303 basenm = aware ? "& # Ring~" : "& # Ring~";
1306 if (!k_ptr->to_h && !k_ptr->to_d && (o_ptr->to_h || o_ptr->to_d)) show_weapon = TRUE;
1318 /* Color the object */
1319 modstr = staff_adj[indexx];
1321 if (aware) append_name = TRUE;
1322 if (((plain_descriptions) && (aware)) || o_ptr->ident & IDENT_STOREB)
1324 basenm = aware ? "& %¤Î¾ó" : "& ¾ó";
1326 basenm = aware ? "& #%¤Î¾ó" : "& #¾ó";
1328 basenm = "& Staff~";
1330 basenm = aware ? "& # Staff~" : "& # Staff~";
1338 /* Color the object */
1339 modstr = wand_adj[indexx];
1341 if (aware) append_name = TRUE;
1342 if (((plain_descriptions) && (aware)) || o_ptr->ident & IDENT_STOREB)
1344 basenm = aware? "& %¤ÎËâË¡ËÀ":"& ËâË¡ËÀ";
1346 basenm = aware ? "& #%¤ÎËâË¡ËÀ" : "& #ËâË¡ËÀ";
1350 basenm = aware ? "& # Wand~" : "& # Wand~";
1358 /* Color the object */
1359 modstr = rod_adj[indexx];
1361 if (aware) append_name = TRUE;
1362 if (((plain_descriptions) && (aware)) || o_ptr->ident & IDENT_STOREB)
1364 basenm = aware? "& %¤Î¥í¥Ã¥É":"& ¥í¥Ã¥É";
1366 basenm = aware ? "& #%¤Î¥í¥Ã¥É" : "& #¥í¥Ã¥É";
1370 basenm = aware ? "& # Rod~" : "& # Rod~";
1378 /* Color the object */
1379 modstr = scroll_adj[indexx];
1380 if (aware) append_name = TRUE;
1381 if (((plain_descriptions) && (aware)) || o_ptr->ident & IDENT_STOREB)
1383 basenm = aware ? "& %¤Î´¬Êª" : "& ´¬Êª";
1385 basenm = aware ? "& ¡Ö#¡×¤È½ñ¤«¤ì¤¿%¤Î´¬Êª" : "& ¡Ö#¡×¤È½ñ¤«¤ì¤¿´¬Êª";
1387 basenm = "& Scroll~";
1389 basenm = aware ? "& Scroll~ titled \"#\"" : "& Scroll~ titled \"#\"";
1397 /* Color the object */
1398 modstr = potion_adj[indexx];
1400 if (aware) append_name = TRUE;
1401 if (((plain_descriptions) && (aware)) || o_ptr->ident & IDENT_STOREB)
1403 basenm = aware ? "& %¤ÎÌô" : "& Ìô";
1405 basenm = aware ? "& #%¤ÎÌô" : "& #Ìô";
1407 basenm = "& Potion~";
1409 basenm = aware ? "& # Potion~" : "& # Potion~";
1417 /* Ordinary food is "boring" */
1418 if (o_ptr->sval >= SV_FOOD_MIN_FOOD) break;
1420 /* Color the object */
1421 modstr = food_adj[indexx];
1423 if (aware) append_name = TRUE;
1424 if (((plain_descriptions) && (aware)) || o_ptr->ident & IDENT_STOREB)
1426 basenm = aware ? "& %¤Î¥¥Î¥³" : "& ¥¥Î¥³";
1428 basenm = aware ? "& #%¤Î¥¥Î¥³" : "& #¥¥Î¥³";
1430 basenm = "& Mushroom~";
1432 basenm = aware ? "& # Mushroom~" : "& # Mushroom~";
1442 basenm = "& ÍÓÈé»æ - #";
1444 basenm = "& Parchement~ - #";
1454 basenm = "& À¸Ì¿¤ÎËâË¡½ñ#";
1456 if (mp_ptr->spell_book == TV_LIFE_BOOK)
1457 basenm = "& Book~ of Life Magic #";
1459 basenm = "& Life Spellbook~ #";
1465 case TV_SORCERY_BOOK:
1469 basenm = "& Àç½Ñ¤ÎËâË¡½ñ#";
1471 if (mp_ptr->spell_book == TV_LIFE_BOOK)
1472 basenm = "& Book~ of Sorcery #";
1474 basenm = "& Sorcery Spellbook~ #";
1480 case TV_NATURE_BOOK:
1484 basenm = "& ¼«Á³¤ÎËâË¡½ñ#";
1486 if (mp_ptr->spell_book == TV_LIFE_BOOK)
1487 basenm = "& Book~ of Nature Magic #";
1489 basenm = "& Nature Spellbook~ #";
1499 basenm = "& ¥«¥ª¥¹¤ÎËâË¡½ñ#";
1501 if (mp_ptr->spell_book == TV_LIFE_BOOK)
1502 basenm = "& Book~ of Chaos Magic #";
1504 basenm = "& Chaos Spellbook~ #";
1514 basenm = "& °Å¹õ¤ÎËâË¡½ñ#";
1516 if (mp_ptr->spell_book == TV_LIFE_BOOK)
1517 basenm = "& Book~ of Death Magic #";
1519 basenm = "& Death Spellbook~ #";
1529 basenm = "& ¥È¥é¥ó¥×¤ÎËâË¡½ñ#";
1531 if (mp_ptr->spell_book == TV_LIFE_BOOK)
1532 basenm = "& Book~ of Trump Magic #";
1534 basenm = "& Trump Spellbook~ #";
1540 case TV_ARCANE_BOOK:
1544 basenm = "& Èë½Ñ¤ÎËâË¡½ñ#";
1546 if (mp_ptr->spell_book == TV_LIFE_BOOK)
1547 basenm = "& Book~ of Arcane Magic #";
1549 basenm = "& Arcane Spellbook~ #";
1554 case TV_ENCHANT_BOOK:
1558 basenm = "& ¾¢¤ÎËâË¡½ñ#";
1560 if (mp_ptr->spell_book == TV_LIFE_BOOK)
1561 basenm = "& Book~ of Craft Magic #";
1563 basenm = "& Craft Spellbook~ #";
1568 case TV_DAEMON_BOOK:
1572 basenm = "& °Ëâ¤ÎËâË¡½ñ#";
1574 if (mp_ptr->spell_book == TV_LIFE_BOOK)
1575 basenm = "& Book~ of Daemon Magic #";
1577 basenm = "& Daemon Spellbook~ #";
1582 case TV_CRUSADE_BOOK:
1586 basenm = "& Ç˼٤ÎËâË¡½ñ#";
1588 if (mp_ptr->spell_book == TV_LIFE_BOOK)
1589 basenm = "& Book~ of Crusade Magic #";
1591 basenm = "& Crusade Spellbook~ #";
1602 basenm = "& Song Book~ #";
1607 case TV_HISSATSU_BOOK:
1611 basenm = "& Éð·Ý¤Î½ñ#";
1613 basenm = "& Book~ of Kendo #";
1621 /* Hack -- Gold/Gems */
1624 strcpy(buf, basenm);
1628 /* Used in the "inventory" routine */
1632 strcpy(buf, "(¤Ê¤·)");
1634 strcpy(buf, "(nothing)");
1641 /* Use full name from k_info or a_info */
1642 if (aware && have_flag(flgs, TR_FULL_NAME))
1644 if (known && o_ptr->name1) basenm = a_name + a_info[o_ptr->name1].name;
1645 else basenm = get_object_name(o_ptr);
1648 /* Start dumping the result */
1652 if (basenm[0] == '&')
1662 else if (o_ptr->number > 1)
1664 if ( change_numeral == FALSE ){
1665 t = object_desc_num(t, o_ptr->number);
1666 if (o_ptr->number > 9)
1667 t = object_desc_str(t, "¸Ä¤Î ");
1669 t = object_desc_str(t, "¤Ä¤Î ");
1673 t = object_desc_kosuu(t,o_ptr);
1674 t = object_desc_str(t, "¤Î ");
1678 /* ±Ñ¸ì¤Î¾ì¹ç¥¢¡¼¥Æ¥£¥Õ¥¡¥¯¥È¤Ï The ¤¬ÉÕ¤¯¤Î¤Çʬ¤«¤ë¤¬
1679 * ÆüËܸì¤Ç¤Ïʬ¤«¤é¤Ê¤¤¤Î¤Ç¥Þ¡¼¥¯¤ò¤Ä¤±¤ë
1681 if (known && artifact_p(o_ptr)) t = object_desc_str(t, "¡ú");
1682 else if (known && o_ptr->art_name) t = object_desc_str(t, "¡ù");
1686 /* The object "expects" a "number" */
1687 if (basenm[0] == '&')
1689 /* Skip the ampersand (and space) */
1698 /* Hack -- None left */
1699 else if (o_ptr->number <= 0)
1701 t = object_desc_str(t, "no more ");
1704 /* Extract the number */
1705 else if (o_ptr->number > 1)
1707 t = object_desc_num(t, o_ptr->number);
1708 t = object_desc_chr(t, ' ');
1711 /* Hack -- The only one of its kind */
1712 else if (known && (artifact_p(o_ptr) || o_ptr->art_name))
1714 t = object_desc_str(t, "The ");
1717 /* Unique corpses are unique */
1718 else if ((o_ptr->tval == TV_CORPSE) && (r_ptr->flags1 & RF1_UNIQUE))
1720 t = object_desc_str(t, "The ");
1723 /* A single one, with a vowel in the modifier */
1724 else if ((*s == '#') && (is_a_vowel(modstr[0])))
1726 t = object_desc_str(t, "an ");
1729 /* A single one, with a vowel */
1730 else if (is_a_vowel(*s))
1732 t = object_desc_str(t, "an ");
1735 /* A single one, without a vowel */
1738 t = object_desc_str(t, "a ");
1742 /* Hack -- objects that "never" take an article */
1754 /* Hack -- all gone */
1755 else if (o_ptr->number <= 0)
1757 t = object_desc_str(t, "no more ");
1760 /* Prefix a number if required */
1761 else if (o_ptr->number > 1)
1763 t = object_desc_num(t, o_ptr->number);
1764 t = object_desc_chr(t, ' ');
1767 /* Hack -- The only one of its kind */
1768 else if (known && (artifact_p(o_ptr) || o_ptr->art_name))
1770 t = object_desc_str(t, "The ");
1773 /* Hack -- single items get no prefix */
1781 /* Paranoia -- skip illegal tildes */
1782 /* while (*s == '~') s++; */
1785 if ((o_ptr->tval > TV_CAPTURE) && o_ptr->xtra3)
1787 t = object_desc_str(t,format("ÃÃÌê»Õ%s¤Î",player_name));
1790 /* ÅÁÀâ¤Î¥¢¥¤¥Æ¥à¡¢Ì¾¤Î¤¢¤ë¥¢¥¤¥Æ¥à¤Î̾Á°¤òÉղ乤ë */
1792 /* ¥é¥ó¥À¥à¡¦¥¢¡¼¥Æ¥£¥Õ¥¡¥¯¥È */
1793 if (o_ptr->art_name)
1795 strcpy(temp, quark_str(o_ptr->art_name));
1796 /* '¡Ø' ¤«¤é»Ï¤Þ¤é¤Ê¤¤ÅÁÀâ¤Î¥¢¥¤¥Æ¥à¤Î̾Á°¤ÏºÇ½é¤ËÉղ乤ë */
1797 /* ±Ñ¸ìÈǤΥ»¡¼¥Ö¥Õ¥¡¥¤¥ë¤«¤éÍ褿 'of XXX' ¤Ï,¡ÖXXX¤Î¡×¤Èɽ¼¨¤¹¤ë */
1798 if ( strncmp( temp , "of ",3)==0 ) {t=object_desc_str(t,&temp[3]);t=object_desc_str(t,"¤Î");}
1800 if ( strncmp( temp , "¡Ø" , 2 ) != 0 && temp[0]!='\'')
1801 t=object_desc_str(t, temp);
1803 /* ÅÁÀâ¤Î¥¢¥¤¥Æ¥à */
1804 else if (o_ptr->name1 && !have_flag(flgs, TR_FULL_NAME)) {
1805 artifact_type *a_ptr = &a_info[o_ptr->name1];
1806 /* '¡Ø' ¤«¤é»Ï¤Þ¤é¤Ê¤¤ÅÁÀâ¤Î¥¢¥¤¥Æ¥à¤Î̾Á°¤ÏºÇ½é¤ËÉղ乤ë */
1807 if ( strncmp( (a_name + a_ptr->name), "¡Ø" , 2) != 0){
1808 t=object_desc_str(t, (a_name + a_ptr->name));
1811 /* ̾¤Î¤¢¤ë¥¢¥¤¥Æ¥à */
1812 else if (o_ptr->name2) {
1813 ego_item_type *e_ptr = &e_info[o_ptr->name2];
1814 t=object_desc_str(t, (e_name + e_ptr->name));
1818 /* Copy the string */
1827 /* Add a plural if needed */
1828 if (pref && o_ptr->number != 1)
1832 /* XXX XXX XXX Mega-Hack */
1834 /* Hack -- "Cutlass-es" and "Torch-es" */
1835 if ((k == 's') || (k == 'h')) *t++ = 'e';
1847 /* Insert the modifier */
1848 for (u = modstr; *u; u++) *t++ = *u;
1853 /* saigo ¤ÎÂå¤ï¤ê¡£¸úǽ¤òÉÕ²½¤¹¤ë by ita*/
1855 modstr=get_object_name(o_ptr);
1856 for (u = modstr; *u; u++) *t++ = *u;
1871 /* Append the "kind name" to the "base name" */
1875 t = object_desc_str(t, " of ");
1876 t = object_desc_str(t, get_object_name(o_ptr));
1882 /* '¡Ø'¤«¤é»Ï¤Þ¤ëÅÁÀâ¤Î¥¢¥¤¥Æ¥à¤Î̾Á°¤ÏºÇ¸å¤ËÉղ乤ë */
1884 /* ¥é¥ó¥À¥à¥¢¡¼¥Æ¥£¥Õ¥¡¥¯¥È¤Î̾Á°¤Ï¥»¡¼¥Ö¥Õ¥¡¥¤¥ë¤ËµÏ¿
1885 ¤µ¤ì¤ë¤Î¤Ç¡¢±Ñ¸ìÈǤÎ̾Á°¤â¤½¤ì¤é¤·¤¯ÊÑ´¹¤¹¤ë */
1886 if (o_ptr->art_name)
1887 { char temp[256];int itemp;
1888 strcpy(temp, quark_str(o_ptr->art_name));
1889 /* MEGA HACK by ita*/
1890 if ( strncmp( temp , "¡Ø" , 2 ) == 0 ) t=object_desc_str(t, temp);else
1891 if( temp[0]=='\'' ) { itemp=strlen(temp);temp[itemp-1]=0;
1892 t=object_desc_str(t,"¡Ø");
1893 t=object_desc_str(t,&temp[1]);
1894 t=object_desc_str(t,"¡Ù");}
1897 else if (o_ptr->name1) {
1898 artifact_type *a_ptr = &a_info[o_ptr->name1];
1899 if ( strncmp( (a_name + a_ptr->name) , "¡Ø" , 2 ) == 0 ){
1900 t=object_desc_str(t, (a_name + a_ptr->name));
1903 else if (o_ptr->inscription)
1905 cptr str = quark_str(o_ptr->inscription);
1914 if (*str == '#') break;
1920 cptr str = strchr(quark_str(o_ptr->inscription), '#');
1922 /* Add the false name */
1923 t=object_desc_str(t,"¡Ø");
1924 t = object_desc_str(t, &str[1]);
1925 t=object_desc_str(t,"¡Ù");
1930 if ((o_ptr->tval > TV_CAPTURE) && o_ptr->xtra3)
1932 t = object_desc_str(t,format(" of %s the Smith",player_name));
1935 /* Hack -- Append "Artifact" or "Special" names */
1936 if (known && !have_flag(flgs, TR_FULL_NAME))
1938 /* Is it a new random artifact ? */
1939 if (o_ptr->art_name)
1941 t = object_desc_chr(t, ' ');
1943 t = object_desc_str(t, quark_str(o_ptr->art_name));
1946 /* Grab any artifact name */
1947 else if (o_ptr->name1)
1949 artifact_type *a_ptr = &a_info[o_ptr->name1];
1951 t = object_desc_chr(t, ' ');
1952 t = object_desc_str(t, (a_name + a_ptr->name));
1955 /* Grab any ego-item name */
1960 ego_item_type *e_ptr = &e_info[o_ptr->name2];
1962 t = object_desc_chr(t, ' ');
1963 t = object_desc_str(t, (e_name + e_ptr->name));
1966 if (o_ptr->inscription && strchr(quark_str(o_ptr->inscription), '#'))
1969 cptr str = strchr(quark_str(o_ptr->inscription), '#');
1971 /* Add the false name */
1972 t = object_desc_chr(t, ' ');
1973 t = object_desc_str(t, &str[1]);
1981 /* No more details wanted */
1982 if (mode < 1) goto copyback;
1984 /* Hack -- Chests must be described in detail */
1985 if (o_ptr->tval == TV_CHEST)
1987 /* Not searched yet */
1993 /* May be "empty" */
1994 else if (!o_ptr->pval)
1997 t = object_desc_str(t, "(¶õ)");
1999 t = object_desc_str(t, " (empty)");
2004 /* May be "disarmed" */
2005 else if (o_ptr->pval < 0)
2007 if (chest_traps[0 - o_ptr->pval])
2010 t = object_desc_str(t, "(²ò½üºÑ)");
2012 t = object_desc_str(t, " (disarmed)");
2019 t = object_desc_str(t, "(Èó»Ü¾û)");
2021 t = object_desc_str(t, " (unlocked)");
2027 /* Describe the traps, if any */
2030 /* Describe the traps */
2031 switch (chest_traps[o_ptr->pval])
2036 t = object_desc_str(t, "(»Ü¾û)");
2038 t = object_desc_str(t, " (Locked)");
2043 case CHEST_LOSE_STR:
2046 t = object_desc_str(t, "(ÆÇ¿Ë)");
2048 t = object_desc_str(t, " (Poison Needle)");
2053 case CHEST_LOSE_CON:
2056 t = object_desc_str(t, "(ÆÇ¿Ë)");
2058 t = object_desc_str(t, " (Poison Needle)");
2066 t = object_desc_str(t, "(¥¬¥¹¡¦¥È¥é¥Ã¥×)");
2068 t = object_desc_str(t, " (Gas Trap)");
2073 case CHEST_PARALYZE:
2076 t = object_desc_str(t, "(¥¬¥¹¡¦¥È¥é¥Ã¥×)");
2078 t = object_desc_str(t, " (Gas Trap)");
2086 t = object_desc_str(t, "(ÇúȯÁõÃÖ)");
2088 t = object_desc_str(t, " (Explosion Device)");
2094 case CHEST_BIRD_STORM:
2095 case CHEST_E_SUMMON:
2096 case CHEST_H_SUMMON:
2099 t = object_desc_str(t, "(¾¤´¤Î¥ë¡¼¥ó)");
2101 t = object_desc_str(t, " (Summoning Runes)");
2106 case CHEST_RUNES_OF_EVIL:
2109 t = object_desc_str(t, "(¼Ù°¤Ê¥ë¡¼¥ó)");
2111 t = object_desc_str(t, " (Gleaming Black Runes)");
2119 t = object_desc_str(t, "(·ÙÊóÁõÃÖ)");
2121 t = object_desc_str(t, " (Alarm)");
2129 t = object_desc_str(t, "(¥Þ¥ë¥Á¡¦¥È¥é¥Ã¥×)");
2131 t = object_desc_str(t, " (Multiple Traps)");
2141 /* Display the item like a weapon */
2142 if (have_flag(flgs, TR_SHOW_MODS)) show_weapon = TRUE;
2144 /* Display the item like a weapon */
2145 if (o_ptr->to_h && o_ptr->to_d) show_weapon = TRUE;
2147 /* Display the item like armour */
2148 if (o_ptr->ac) show_armour = TRUE;
2151 /* Dump base weapon info */
2152 switch (o_ptr->tval)
2154 /* Missiles and Weapons */
2163 /* Append a "damage" string */
2164 t = object_desc_chr(t, ' ');
2165 t = object_desc_chr(t, p1);
2166 t = object_desc_num(t, o_ptr->dd);
2167 t = object_desc_chr(t, 'd');
2168 t = object_desc_num(t, o_ptr->ds);
2169 t = object_desc_chr(t, p2);
2175 /* Bows get a special "damage string" */
2178 /* Mega-Hack -- Extract the "base power" */
2179 power = (o_ptr->sval % 10);
2181 /* Apply the "Extra Might" flag */
2182 if (have_flag(flgs, TR_XTRA_MIGHT)) power++;
2184 /* Append a special "damage" string */
2185 t = object_desc_chr(t, ' ');
2186 t = object_desc_chr(t, p1);
2187 t = object_desc_chr(t, 'x');
2188 t = object_desc_num(t, power);
2189 t = object_desc_chr(t, p2);
2196 /* Add the weapon bonuses */
2199 /* Show the tohit/todam on request */
2202 t = object_desc_chr(t, ' ');
2203 t = object_desc_chr(t, p1);
2204 t = object_desc_int(t, o_ptr->to_h);
2205 t = object_desc_chr(t, ',');
2206 t = object_desc_int(t, o_ptr->to_d);
2207 t = object_desc_chr(t, p2);
2210 /* Show the tohit if needed */
2211 else if (o_ptr->to_h)
2213 t = object_desc_chr(t, ' ');
2214 t = object_desc_chr(t, p1);
2215 t = object_desc_int(t, o_ptr->to_h);
2216 t = object_desc_chr(t, p2);
2219 /* Show the todam if needed */
2220 else if (o_ptr->to_d)
2222 t = object_desc_chr(t, ' ');
2223 t = object_desc_chr(t, p1);
2224 t = object_desc_int(t, o_ptr->to_d);
2225 t = object_desc_chr(t, p2);
2229 bow_ptr = &inventory[INVEN_BOW];
2231 /* if have a firing weapon + ammo matches bow*/
2232 if (bow_ptr->k_idx &&
2233 (((bow_ptr->sval == SV_SLING) && (o_ptr->tval == TV_SHOT)) ||
2234 (((bow_ptr->sval == SV_SHORT_BOW) ||
2235 (bow_ptr->sval == SV_LONG_BOW) ||
2236 (bow_ptr->sval == SV_NAMAKE_BOW)) && (o_ptr->tval == TV_ARROW)) ||
2237 (((bow_ptr->sval == SV_LIGHT_XBOW) ||
2238 (bow_ptr->sval == SV_HEAVY_XBOW)) && (o_ptr->tval == TV_BOLT))))
2244 avgdam = o_ptr->dd * (o_ptr->ds + 1) * 10 / 2;
2246 /* See if the bow is "known" - then set damage bonus*/
2247 if (object_known_p(bow_ptr))
2249 avgdam += (bow_ptr->to_d * 10);
2252 /* effect of ammo */
2253 if (known) avgdam += (o_ptr->to_d * 10);
2255 energy_fire = bow_energy(bow_ptr->sval);
2256 tmul = bow_tmul(bow_ptr->sval);
2258 /* Get extra "power" from "extra might" */
2259 if (p_ptr->xtra_might) tmul++;
2261 tmul = tmul * (100 + (int)(adj_str_td[p_ptr->stat_ind[A_STR]]) - 128);
2263 /* launcher multiplier */
2265 avgdam /= (100 * 10);
2266 if (avgdam < 0) avgdam = 0;
2268 /* display (shot damage/ avg damage) */
2269 t = object_desc_chr(t, ' ');
2270 t = object_desc_chr(t, p1);
2271 t = object_desc_num(t, avgdam);
2272 t = object_desc_chr(t, '/');
2274 if (p_ptr->num_fire == 0)
2276 t = object_desc_chr(t, '0');
2280 /* calc effects of energy */
2281 avgdam *= (p_ptr->num_fire * 100);
2283 avgdam /= energy_fire;
2285 t = object_desc_num(t, avgdam);
2288 t = object_desc_chr(t, p2);
2290 else if ((p_ptr->pclass == CLASS_NINJA) && (o_ptr->tval == TV_SPIKE))
2295 if (p_ptr->mighty_throw)
2299 avgdam += ((p_ptr->lev+30)*(p_ptr->lev+30)-900)/55;
2301 energy_fire = 100 - p_ptr->lev;
2303 /* display (shot damage/ avg damage) */
2304 t = object_desc_chr(t, ' ');
2305 t = object_desc_chr(t, p1);
2306 t = object_desc_num(t, avgdam);
2307 t = object_desc_chr(t, '/');
2309 /* calc effects of energy */
2310 avgdam = 100 * avgdam / energy_fire;
2312 t = object_desc_num(t, avgdam);
2314 t = object_desc_chr(t, p2);
2318 /* Add the armor bonuses */
2321 /* Show the armor class info */
2324 t = object_desc_chr(t, ' ');
2325 t = object_desc_chr(t, b1);
2326 t = object_desc_num(t, o_ptr->ac);
2327 t = object_desc_chr(t, ',');
2328 t = object_desc_int(t, o_ptr->to_a);
2329 t = object_desc_chr(t, b2);
2332 /* No base armor, but does increase armor */
2333 else if (o_ptr->to_a)
2335 t = object_desc_chr(t, ' ');
2336 t = object_desc_chr(t, b1);
2337 t = object_desc_int(t, o_ptr->to_a);
2338 t = object_desc_chr(t, b2);
2342 /* Hack -- always show base armor */
2343 else if (show_armour)
2345 t = object_desc_chr(t, ' ');
2346 t = object_desc_chr(t, b1);
2347 t = object_desc_num(t, o_ptr->ac);
2348 t = object_desc_chr(t, b2);
2352 /* No more details wanted */
2353 if (mode < 2) goto copyback;
2357 * Hack -- Wands and Staffs have charges. Make certain how many charges
2358 * a stack of staffs really has is clear. -LM-
2361 ((o_ptr->tval == TV_STAFF) ||
2362 (o_ptr->tval == TV_WAND)))
2364 /* Dump " (N charges)" */
2365 t = object_desc_chr(t, ' ');
2366 t = object_desc_chr(t, p1);
2368 /* Clear explaination for staffs. */
2369 if ((o_ptr->tval == TV_STAFF) && (o_ptr->number > 1))
2371 t = object_desc_num(t, o_ptr->number);
2372 t = object_desc_str(t, "x ");
2374 t = object_desc_num(t, o_ptr->pval);
2376 t = object_desc_str(t, "²óʬ");
2378 t = object_desc_str(t, " charge");
2380 if (o_ptr->pval != 1)
2382 t = object_desc_chr(t, 's');
2387 t = object_desc_chr(t, p2);
2389 /* Hack -- Rods have a "charging" indicator. Now that stacks of rods may
2390 * be in any state of charge or discharge, this now includes a number. -LM-
2392 else if (known && (o_ptr->tval == TV_ROD))
2394 /* Hack -- Dump " (# charging)" if relevant */
2397 /* Stacks of rods display an exact count of charging rods. */
2398 if (o_ptr->number > 1)
2401 if (k_ptr->pval == 0) k_ptr->pval = 1;
2403 /* Find out how many rods are charging, by dividing
2404 * current timeout by each rod's maximum timeout.
2405 * Ensure that any remainder is rounded up. Display
2406 * very discharged stacks as merely fully discharged.
2408 power = (o_ptr->timeout + (k_ptr->pval - 1)) / k_ptr->pval;
2409 if (power > o_ptr->number) power = o_ptr->number;
2411 /* Display prettily. */
2412 t = object_desc_str(t, " (");
2413 t = object_desc_num(t, power);
2415 t = object_desc_str(t, "ËÜ ½¼Å¶Ãæ)");
2417 t = object_desc_str(t, " charging)");
2422 /* "one Rod of Perception (1 charging)" would look tacky. */
2426 t = object_desc_str(t, "(½¼Å¶Ãæ)");
2428 t = object_desc_str(t, " (charging)");
2435 /* Dump "pval" flags for wearable items */
2436 if (known && (have_pval_flags(flgs)))
2438 /* Start the display */
2439 t = object_desc_chr(t, ' ');
2440 t = object_desc_chr(t, p1);
2442 /* Dump the "pval" itself */
2443 t = object_desc_int(t, o_ptr->pval);
2445 /* Do not display the "pval" flags */
2446 if (have_flag(flgs, TR_HIDE_TYPE))
2452 else if (have_flag(flgs, TR_SPEED))
2454 /* Dump " to speed" */
2456 t = object_desc_str(t, "²Ã®");
2458 t = object_desc_str(t, " to speed");
2464 else if (have_flag(flgs, TR_BLOWS))
2468 t = object_desc_str(t, "¹¶·â");
2470 t = object_desc_str(t, " attack");
2473 if (ABS(o_ptr->pval) != 1) t = object_desc_chr(t, 's');
2479 else if (have_flag(flgs, TR_STEALTH))
2481 /* Dump " to stealth" */
2483 t = object_desc_str(t, "±£Ì©");
2485 t = object_desc_str(t, " to stealth");
2491 else if (have_flag(flgs, TR_SEARCH))
2493 /* Dump " to searching" */
2495 t = object_desc_str(t, "õº÷");
2497 t = object_desc_str(t, " to searching");
2503 else if (have_flag(flgs, TR_INFRA))
2505 /* Dump " to infravision" */
2507 t = object_desc_str(t, "ÀÖ³°Àþ»ëÎÏ");
2509 t = object_desc_str(t, " to infravision");
2515 else if (have_flag(flgs, TR_TUNNEL))
2520 /* Finish the display */
2521 t = object_desc_chr(t, p2);
2524 /* Hack -- Process Lanterns/Torches */
2525 if (known && (o_ptr->tval == TV_LITE) && (!(artifact_p(o_ptr) || (o_ptr->sval == SV_LITE_FEANOR))))
2527 /* Hack -- Turns of light for normal lites */
2529 t = object_desc_str(t, "(");
2531 t = object_desc_str(t, " (with ");
2534 if (o_ptr->name2 == EGO_LITE_LONG) t = object_desc_num(t, o_ptr->xtra4*2);
2535 else t = object_desc_num(t, o_ptr->xtra4);
2537 t = object_desc_str(t, "¥¿¡¼¥ó¤Î¼÷Ì¿)");
2539 t = object_desc_str(t, " turns of light)");
2545 /* Indicate charging objects, but not rods. */
2546 if (known && o_ptr->timeout && o_ptr->tval != TV_ROD)
2548 /* Hack -- Dump " (charging)" if relevant */
2550 t = object_desc_str(t, "(½¼Å¶Ãæ)");
2552 t = object_desc_str(t, " (charging)");
2558 /* No more details wanted */
2559 if (mode < 3) goto copyback;
2562 /* No inscription yet */
2565 /* Use the game-generated "feeling" otherwise, if available */
2568 strcpy(tmp_val2, game_inscriptions[o_ptr->feeling]);
2571 /* Note "cursed" if the item is known to be cursed */
2572 else if (cursed_p(o_ptr) && (known || (o_ptr->ident & (IDENT_SENSE))))
2575 strcpy(tmp_val2, "¼ö¤ï¤ì¤Æ¤¤¤ë");
2577 strcpy(tmp_val2, "cursed");
2582 /* Note "unidentified" if the item is unidentified */
2583 else if ((o_ptr->tval == TV_RING || o_ptr->tval == TV_AMULET
2584 || o_ptr->tval == TV_LITE || o_ptr->tval == TV_FIGURINE)
2585 && object_aware_p(o_ptr) && !object_known_p(o_ptr)
2586 && !((o_ptr->ident)&IDENT_SENSE))
2589 strcpy(tmp_val2, "̤´ÕÄê");
2591 strcpy(tmp_val2, "unidentified");
2595 /* Mega-Hack -- note empty wands/staffs */
2596 else if (!known && (o_ptr->ident & (IDENT_EMPTY)))
2599 strcpy(tmp_val2, "¶õ");
2601 strcpy(tmp_val2, "empty");
2606 /* Note "tried" if the object has been tested unsuccessfully */
2607 else if (!aware && object_tried_p(o_ptr))
2610 strcpy(tmp_val2, "̤ȽÌÀ");
2612 strcpy(tmp_val2, "tried");
2617 /* Use the standard inscription if available */
2618 if (o_ptr->inscription)
2622 if (tmp_val2[0]) strcat(tmp_val2, ", ");
2624 strcat(tmp_val2, quark_str(o_ptr->inscription));
2626 for (; *u && (*u != '#'); u++);
2631 /* Note the discount, if any */
2632 else if (o_ptr->discount && !(tmp_val2[0]))
2634 (void)object_desc_num(tmp_val2, o_ptr->discount);
2636 strcat(tmp_val2, "%°ú¤");
2638 strcat(tmp_val2, "% off");
2643 /* Append the inscription, if any */
2646 /* Append the inscription */
2647 t = object_desc_chr(t, ' ');
2648 t = object_desc_chr(t, c1);
2649 t = object_desc_str(t, tmp_val2);
2650 t = object_desc_chr(t, c2);
2655 for (i = 0; i < MAX_NLEN-2; i++)
2658 if (iskanji(*(t+i)))
2666 if (i == MAX_NLEN-2)
2669 if (iskanji(*(t+i)))
2675 *(buf+MAX_NLEN-1) = '\0';