OSDN Git Service

Reword English message for giant eagle teleport self effect: original had subject...
[hengband/hengband.git] / src / perception / identification.c
1 #include "perception/identification.h"
2 #include "artifact/fixed-art-types.h"
3 #include "flavor/flavor-describer.h"
4 #include "flavor/object-flavor-types.h"
5 #include "game-option/special-options.h"
6 #include "io/input-key-acceptor.h"
7 #include "monster-race/monster-race.h"
8 #include "monster-race/race-flags2.h"
9 #include "monster-race/race-indice-types.h"
10 #include "object-enchant/object-ego.h"
11 #include "object-enchant/tr-types.h"
12 #include "object-enchant/trc-types.h"
13 #include "object-hook/hook-checker.h"
14 #include "object-hook/hook-weapon.h"
15 #include "object/object-flags.h"
16 #include "object/object-info.h"
17 #include "object/object-kind.h"
18 #include "sv-definition/sv-amulet-types.h"
19 #include "sv-definition/sv-other-types.h"
20 #include "sv-definition/sv-ring-types.h"
21 #include "sv-definition/sv-weapon-types.h"
22 #include "system/artifact-type-definition.h"
23 #include "term/screen-processor.h"
24 #include "util/bit-flags-calculator.h"
25 #include "util/buffer-shaper.h"
26
27 /*!
28  * @brief オブジェクトの*鑑定*内容を詳述して表示する /
29  * Describe a "fully identified" item
30  * @param player_ptr プレーヤーへの参照ポインタ
31  * @param o_ptr *鑑定*情報を取得する元のオブジェクト構造体参照ポインタ
32  * @param mode 表示オプション
33  * @return 特筆すべき情報が一つでもあった場合TRUE、一つもなく表示がキャンセルされた場合FALSEを返す。
34  */
35 bool screen_object(player_type *player_ptr, object_type *o_ptr, BIT_FLAGS mode)
36 {
37     BIT_FLAGS flgs[TR_FLAG_SIZE];
38     char temp[70 * 20];
39     concptr info[128];
40     GAME_TEXT o_name[MAX_NLEN];
41     char desc[256];
42
43     int trivial_info = 0;
44     object_flags(player_ptr, o_ptr, flgs);
45
46     shape_buffer(o_ptr->name1 ? (a_text + a_info[o_ptr->name1].text) : (k_text + k_info[o_ptr->k_idx].text), 77 - 15, temp, sizeof(temp));
47
48     int i = 0;
49     for (int j = 0; temp[j]; j += 1 + strlen(&temp[j])) {
50         info[i] = &temp[j];
51         i++;
52     }
53
54     if (object_is_equipment(o_ptr)) {
55         trivial_info = i;
56     }
57
58     if (has_flag(flgs, TR_ACTIVATE)) {
59         info[i++] = _("始動したときの効果...", "It can be activated for...");
60         info[i++] = activation_explanation(player_ptr, o_ptr);
61         info[i++] = _("...ただし装備していなければならない。", "...if it is being worn.");
62     }
63
64     if (o_ptr->tval == TV_FIGURINE) {
65         info[i++] = _("それは投げた時ペットに変化する。", "It will transform into a pet when thrown.");
66     }
67
68     if (o_ptr->name1 == ART_STONEMASK) {
69         info[i++] = _("それを装備した者は吸血鬼になる。", "It makes you turn into a vampire permanently.");
70     }
71
72     if ((o_ptr->tval == TV_SWORD) && (o_ptr->sval == SV_POISON_NEEDLE)) {
73         info[i++] = _("それは相手を一撃で倒すことがある。", "It will attempt to kill a monster instantly.");
74     }
75
76     if ((o_ptr->tval == TV_POLEARM) && (o_ptr->sval == SV_DEATH_SCYTHE)) {
77         info[i++] = _("それは自分自身に攻撃が返ってくることがある。", "It causes you to strike yourself sometimes.");
78         info[i++] = _("それは無敵のバリアを切り裂く。", "It always penetrates invulnerability barriers.");
79     }
80
81     if (has_flag(flgs, TR_EASY2_WEAPON)) {
82         info[i++] = _("それは二刀流での命中率を向上させる。", "It affects your ability to hit when you are wielding two weapons.");
83     }
84
85     if (has_flag(flgs, TR_INVULN_ARROW)) {
86         info[i++] = _("それは視界がある限り物理的な飛び道具の一切をはねのける。", "It repels all physical missiles as long as there is visibility.");
87     }
88
89     if (has_flag(flgs, TR_NO_AC)) {
90         info[i++] = _("それは物理的防護の一切を奪う。", "It robs you of any physical protection.");
91     }
92
93     if (has_flag(flgs, TR_EASY_SPELL)) {
94         info[i++] = _("それは魔法の難易度を下げる。", "It affects your ability to cast spells.");
95     }
96
97     if (has_flag(flgs, TR_HEAVY_SPELL)) {
98         info[i++] = _("それは魔法の難易度を上げる。", "It interferes with casting spells.");
99     }
100
101     if (has_flag(flgs, TR_MIGHTY_THROW)) {
102         info[i++] = _("それは物を強く投げることを可能にする。", "It provides great strength when you throw an item.");
103     }
104
105     if (has_flag(flgs, TR_LOW_MAGIC)) {
106         info[i++] = _("それは魔法抵抗力を下げる。", "It decreases your magic resistance.");
107     }
108
109     if (o_ptr->tval == TV_STATUE) {
110         monster_race *r_ptr = &r_info[o_ptr->pval];
111         if (o_ptr->pval == MON_BULLGATES)
112             info[i++] = _("それは部屋に飾ると恥ずかしい。", "It is shameful.");
113         else if (r_ptr->flags2 & (RF2_ELDRITCH_HORROR))
114             info[i++] = _("それは部屋に飾ると恐い。", "It is fearful.");
115         else
116             info[i++] = _("それは部屋に飾ると楽しい。", "It is cheerful.");
117     }
118
119     if (has_flag(flgs, TR_DARK_SOURCE))
120         info[i++] = _("それは全く光らない。", "It provides no light.");
121
122     POSITION rad = 0;
123     if (has_flag(flgs, TR_LITE_1) && !has_flag(flgs, TR_DARK_SOURCE))
124         rad += 1;
125     if (has_flag(flgs, TR_LITE_2) && !has_flag(flgs, TR_DARK_SOURCE))
126         rad += 2;
127     if (has_flag(flgs, TR_LITE_3) && !has_flag(flgs, TR_DARK_SOURCE))
128         rad += 3;
129     if (has_flag(flgs, TR_LITE_M1))
130         rad -= 1;
131     if (has_flag(flgs, TR_LITE_M2))
132         rad -= 2;
133     if (has_flag(flgs, TR_LITE_M3))
134         rad -= 3;
135
136     if (o_ptr->name2 == EGO_LITE_SHINE)
137         rad++;
138
139     if (has_flag(flgs, TR_LITE_FUEL) && !has_flag(flgs, TR_DARK_SOURCE)) {
140         if (rad > 0)
141             sprintf(desc, _("それは燃料補給によって明かり(半径 %d)を授ける。", "It provides light (radius %d) when fueled."), (int)rad);
142     } else {
143         if (rad > 0)
144             sprintf(desc, _("それは永遠なる明かり(半径 %d)を授ける。", "It provides light (radius %d) forever."), (int)rad);
145         if (rad < 0)
146             sprintf(desc, _("それは明かりの半径を狭める(半径に-%d)。", "It decreases radius of light source by %d."), (int)-rad);
147     }
148
149     if (rad != 0)
150         info[i++] = desc;
151
152     if (o_ptr->name2 == EGO_LITE_LONG) {
153         info[i++] = _("それは長いターン明かりを授ける。", "It provides light for much longer time.");
154     }
155
156     if (has_flag(flgs, TR_RIDING)) {
157         if ((o_ptr->tval == TV_POLEARM) && ((o_ptr->sval == SV_LANCE) || (o_ptr->sval == SV_HEAVY_LANCE)))
158             info[i++] = _("それは乗馬中は非常に使いやすい。", "It is made for use while riding.");
159         else {
160             info[i++] = _("それは乗馬中でも使いやすい。", "It is suitable for use while riding.");
161             trivial_info++;
162         }
163     }
164
165     if (has_flag(flgs, TR_STR)) {
166         info[i++] = _("それは腕力に影響を及ぼす。", "It affects your strength.");
167     }
168
169     if (has_flag(flgs, TR_INT)) {
170         info[i++] = _("それは知能に影響を及ぼす。", "It affects your intelligence.");
171     }
172
173     if (has_flag(flgs, TR_WIS)) {
174         info[i++] = _("それは賢さに影響を及ぼす。", "It affects your wisdom.");
175     }
176
177     if (has_flag(flgs, TR_DEX)) {
178         info[i++] = _("それは器用さに影響を及ぼす。", "It affects your dexterity.");
179     }
180
181     if (has_flag(flgs, TR_CON)) {
182         info[i++] = _("それは耐久力に影響を及ぼす。", "It affects your constitution.");
183     }
184
185     if (has_flag(flgs, TR_CHR)) {
186         info[i++] = _("それは魅力に影響を及ぼす。", "It affects your charisma.");
187     }
188
189     if (has_flag(flgs, TR_MAGIC_MASTERY)) {
190         info[i++] = _("それは魔法道具使用能力に影響を及ぼす。", "It affects your ability to use magic devices.");
191     }
192
193     if (has_flag(flgs, TR_STEALTH)) {
194         info[i++] = _("それは隠密行動能力に影響を及ぼす。", "It affects your stealth.");
195     }
196
197     if (has_flag(flgs, TR_SEARCH)) {
198         info[i++] = _("それは探索能力に影響を及ぼす。", "It affects your searching.");
199     }
200
201     if (has_flag(flgs, TR_INFRA)) {
202         info[i++] = _("それは赤外線視力に影響を及ぼす。", "It affects your infravision.");
203     }
204
205     if (has_flag(flgs, TR_TUNNEL)) {
206         info[i++] = _("それは採掘能力に影響を及ぼす。", "It affects your ability to tunnel.");
207     }
208
209     if (has_flag(flgs, TR_SPEED)) {
210         info[i++] = _("それはスピードに影響を及ぼす。", "It affects your speed.");
211     }
212
213     if (has_flag(flgs, TR_BLOWS)) {
214         info[i++] = _("それは打撃回数に影響を及ぼす。", "It affects your attack speed.");
215     }
216
217     if (has_flag(flgs, TR_BRAND_ACID)) {
218         info[i++] = _("それは酸によって大きなダメージを与える。", "It does extra damage from acid.");
219     }
220
221     if (has_flag(flgs, TR_BRAND_ELEC)) {
222         info[i++] = _("それは電撃によって大きなダメージを与える。", "It does extra damage from electricity.");
223     }
224
225     if (has_flag(flgs, TR_BRAND_FIRE)) {
226         info[i++] = _("それは火炎によって大きなダメージを与える。", "It does extra damage from fire.");
227     }
228
229     if (has_flag(flgs, TR_BRAND_COLD)) {
230         info[i++] = _("それは冷気によって大きなダメージを与える。", "It does extra damage from frost.");
231     }
232
233     if (has_flag(flgs, TR_BRAND_POIS)) {
234         info[i++] = _("それは敵を毒する。", "It poisons your foes.");
235     }
236
237     if (has_flag(flgs, TR_CHAOTIC)) {
238         info[i++] = _("それはカオス的な効果を及ぼす。", "It produces chaotic effects.");
239     }
240
241     if (has_flag(flgs, TR_VAMPIRIC)) {
242         info[i++] = _("それは敵から生命力を吸収する。", "It drains life from your foes.");
243     }
244
245     if (has_flag(flgs, TR_IMPACT)) {
246         info[i++] = _("それは地震を起こすことができる。", "It can cause earthquakes.");
247     }
248
249     if (has_flag(flgs, TR_VORPAL)) {
250         info[i++] = _("それは非常に切れ味が鋭く敵を切断することができる。", "It is very sharp and can cut your foes.");
251     }
252
253     if (has_flag(flgs, TR_KILL_DRAGON)) {
254         info[i++] = _("それはドラゴンにとっての天敵である。", "It is a great bane of dragons.");
255     } else if (has_flag(flgs, TR_SLAY_DRAGON)) {
256         info[i++] = _("それはドラゴンに対して特に恐るべき力を発揮する。", "It is especially deadly against dragons.");
257     }
258
259     if (has_flag(flgs, TR_KILL_ORC)) {
260         info[i++] = _("それはオークにとっての天敵である。", "It is a great bane of orcs.");
261     }
262
263     if (has_flag(flgs, TR_SLAY_ORC)) {
264         info[i++] = _("それはオークに対して特に恐るべき力を発揮する。", "It is especially deadly against orcs.");
265     }
266
267     if (has_flag(flgs, TR_KILL_TROLL)) {
268         info[i++] = _("それはトロルにとっての天敵である。", "It is a great bane of trolls.");
269     }
270
271     if (has_flag(flgs, TR_SLAY_TROLL)) {
272         info[i++] = _("それはトロルに対して特に恐るべき力を発揮する。", "It is especially deadly against trolls.");
273     }
274
275     if (has_flag(flgs, TR_KILL_GIANT)) {
276         info[i++] = _("それは巨人にとっての天敵である。", "It is a great bane of giants.");
277     } else if (has_flag(flgs, TR_SLAY_GIANT)) {
278         info[i++] = _("それは巨人に対して特に恐るべき力を発揮する。", "It is especially deadly against giants.");
279     }
280
281     if (has_flag(flgs, TR_KILL_DEMON)) {
282         info[i++] = _("それはデーモンにとっての天敵である。", "It is a great bane of demons.");
283     }
284
285     if (has_flag(flgs, TR_SLAY_DEMON)) {
286         info[i++] = _("それはデーモンに対して聖なる力を発揮する。", "It strikes at demons with holy wrath.");
287     }
288
289     if (has_flag(flgs, TR_KILL_UNDEAD)) {
290         info[i++] = _("それはアンデッドにとっての天敵である。", "It is a great bane of undead.");
291     }
292
293     if (has_flag(flgs, TR_SLAY_UNDEAD)) {
294         info[i++] = _("それはアンデッドに対して聖なる力を発揮する。", "It strikes at undead with holy wrath.");
295     }
296
297     if (has_flag(flgs, TR_KILL_EVIL)) {
298         info[i++] = _("それは邪悪なる存在にとっての天敵である。", "It is a great bane of evil monsters.");
299     }
300
301     if (has_flag(flgs, TR_SLAY_EVIL)) {
302         info[i++] = _("それは邪悪なる存在に対して聖なる力で攻撃する。", "It fights against evil with holy fury.");
303     }
304
305     if (has_flag(flgs, TR_KILL_ANIMAL)) {
306         info[i++] = _("それは自然界の動物にとっての天敵である。", "It is a great bane of natural creatures.");
307     }
308
309     if (has_flag(flgs, TR_SLAY_ANIMAL)) {
310         info[i++] = _("それは自然界の動物に対して特に恐るべき力を発揮する。", "It is especially deadly against natural creatures.");
311     }
312
313     if (has_flag(flgs, TR_KILL_HUMAN)) {
314         info[i++] = _("それは人間にとっての天敵である。", "It is a great bane of humans.");
315     }
316
317     if (has_flag(flgs, TR_SLAY_HUMAN)) {
318         info[i++] = _("それは人間に対して特に恐るべき力を発揮する。", "It is especially deadly against humans.");
319     }
320
321     if (has_flag(flgs, TR_FORCE_WEAPON)) {
322         info[i++] = _("それは使用者の魔力を使って攻撃する。", "It powerfully strikes at a monster using your mana.");
323     }
324
325     if (has_flag(flgs, TR_DEC_MANA)) {
326         info[i++] = _("それは魔力の消費を押さえる。", "It decreases your mana consumption.");
327     }
328
329     if (has_flag(flgs, TR_SUST_STR)) {
330         info[i++] = _("それはあなたの腕力を維持する。", "It sustains your strength.");
331     }
332
333     if (has_flag(flgs, TR_SUST_INT)) {
334         info[i++] = _("それはあなたの知能を維持する。", "It sustains your intelligence.");
335     }
336
337     if (has_flag(flgs, TR_SUST_WIS)) {
338         info[i++] = _("それはあなたの賢さを維持する。", "It sustains your wisdom.");
339     }
340
341     if (has_flag(flgs, TR_SUST_DEX)) {
342         info[i++] = _("それはあなたの器用さを維持する。", "It sustains your dexterity.");
343     }
344
345     if (has_flag(flgs, TR_SUST_CON)) {
346         info[i++] = _("それはあなたの耐久力を維持する。", "It sustains your constitution.");
347     }
348
349     if (has_flag(flgs, TR_SUST_CHR)) {
350         info[i++] = _("それはあなたの魅力を維持する。", "It sustains your charisma.");
351     }
352
353     if (has_flag(flgs, TR_IM_ACID)) {
354         info[i++] = _("それは酸に対する完全な免疫を授ける。", "It provides immunity to acid.");
355     }
356
357     if (has_flag(flgs, TR_IM_ELEC)) {
358         info[i++] = _("それは電撃に対する完全な免疫を授ける。", "It provides immunity to electricity.");
359     }
360
361     if (has_flag(flgs, TR_IM_FIRE)) {
362         info[i++] = _("それは火に対する完全な免疫を授ける。", "It provides immunity to fire.");
363     }
364
365     if (has_flag(flgs, TR_IM_COLD)) {
366         info[i++] = _("それは寒さに対する完全な免疫を授ける。", "It provides immunity to cold.");
367     }
368
369     if (has_flag(flgs, TR_THROW)) {
370         info[i++] = _("それは敵に投げて大きなダメージを与えることができる。", "It is perfectly balanced for throwing.");
371     }
372
373     if (has_flag(flgs, TR_FREE_ACT)) {
374         info[i++] = _("それは麻痺に対する完全な免疫を授ける。", "It provides immunity to paralysis.");
375     }
376
377     if (has_flag(flgs, TR_HOLD_EXP)) {
378         info[i++] = _("それは経験値吸収に対する耐性を授ける。", "It provides resistance to experience draining.");
379     }
380
381     if (has_flag(flgs, TR_RES_FEAR)) {
382         info[i++] = _("それは恐怖への完全な耐性を授ける。", "It makes you completely fearless.");
383     }
384
385     if (has_flag(flgs, TR_RES_ACID)) {
386         info[i++] = _("それは酸への耐性を授ける。", "It provides resistance to acid.");
387     }
388
389     if (has_flag(flgs, TR_RES_ELEC)) {
390         info[i++] = _("それは電撃への耐性を授ける。", "It provides resistance to electricity.");
391     }
392
393     if (has_flag(flgs, TR_RES_FIRE)) {
394         info[i++] = _("それは火への耐性を授ける。", "It provides resistance to fire.");
395     }
396
397     if (has_flag(flgs, TR_RES_COLD)) {
398         info[i++] = _("それは寒さへの耐性を授ける。", "It provides resistance to cold.");
399     }
400
401     if (has_flag(flgs, TR_RES_POIS)) {
402         info[i++] = _("それは毒への耐性を授ける。", "It provides resistance to poison.");
403     }
404
405     if (has_flag(flgs, TR_RES_LITE)) {
406         info[i++] = _("それは閃光への耐性を授ける。", "It provides resistance to light.");
407     }
408
409     if (has_flag(flgs, TR_RES_DARK)) {
410         info[i++] = _("それは暗黒への耐性を授ける。", "It provides resistance to dark.");
411     }
412
413     if (has_flag(flgs, TR_RES_BLIND)) {
414         info[i++] = _("それは盲目への耐性を授ける。", "It provides resistance to blindness.");
415     }
416
417     if (has_flag(flgs, TR_RES_CONF)) {
418         info[i++] = _("それは混乱への耐性を授ける。", "It provides resistance to confusion.");
419     }
420
421     if (has_flag(flgs, TR_RES_SOUND)) {
422         info[i++] = _("それは轟音への耐性を授ける。", "It provides resistance to sound.");
423     }
424
425     if (has_flag(flgs, TR_RES_SHARDS)) {
426         info[i++] = _("それは破片への耐性を授ける。", "It provides resistance to shards.");
427     }
428
429     if (has_flag(flgs, TR_RES_NETHER)) {
430         info[i++] = _("それは地獄への耐性を授ける。", "It provides resistance to nether.");
431     }
432
433     if (has_flag(flgs, TR_RES_NEXUS)) {
434         info[i++] = _("それは因果混乱への耐性を授ける。", "It provides resistance to nexus.");
435     }
436
437     if (has_flag(flgs, TR_RES_CHAOS)) {
438         info[i++] = _("それはカオスへの耐性を授ける。", "It provides resistance to chaos.");
439     }
440
441     if (has_flag(flgs, TR_RES_DISEN)) {
442         info[i++] = _("それは劣化への耐性を授ける。", "It provides resistance to disenchantment.");
443     }
444
445     if (has_flag(flgs, TR_LEVITATION)) {
446         info[i++] = _("それは宙に浮くことを可能にする。", "It allows you to levitate.");
447     }
448
449     if (has_flag(flgs, TR_SEE_INVIS)) {
450         info[i++] = _("それは透明なモンスターを見ることを可能にする。", "It allows you to see invisible monsters.");
451     }
452
453     if (has_flag(flgs, TR_TELEPATHY)) {
454         info[i++] = _("それはテレパシー能力を授ける。", "It gives telepathic powers.");
455     }
456
457     if (has_flag(flgs, TR_ESP_ANIMAL)) {
458         info[i++] = _("それは自然界の生物を感知する。", "It senses natural creatures.");
459     }
460
461     if (has_flag(flgs, TR_ESP_UNDEAD)) {
462         info[i++] = _("それはアンデッドを感知する。", "It senses undead.");
463     }
464
465     if (has_flag(flgs, TR_ESP_DEMON)) {
466         info[i++] = _("それは悪魔を感知する。", "It senses demons.");
467     }
468
469     if (has_flag(flgs, TR_ESP_ORC)) {
470         info[i++] = _("それはオークを感知する。", "It senses orcs.");
471     }
472
473     if (has_flag(flgs, TR_ESP_TROLL)) {
474         info[i++] = _("それはトロルを感知する。", "It senses trolls.");
475     }
476
477     if (has_flag(flgs, TR_ESP_GIANT)) {
478         info[i++] = _("それは巨人を感知する。", "It senses giants.");
479     }
480
481     if (has_flag(flgs, TR_ESP_DRAGON)) {
482         info[i++] = _("それはドラゴンを感知する。", "It senses dragons.");
483     }
484
485     if (has_flag(flgs, TR_ESP_HUMAN)) {
486         info[i++] = _("それは人間を感知する。", "It senses humans.");
487     }
488
489     if (has_flag(flgs, TR_ESP_EVIL)) {
490         info[i++] = _("それは邪悪な存在を感知する。", "It senses evil creatures.");
491     }
492
493     if (has_flag(flgs, TR_ESP_GOOD)) {
494         info[i++] = _("それは善良な存在を感知する。", "It senses good creatures.");
495     }
496
497     if (has_flag(flgs, TR_ESP_NONLIVING)) {
498         info[i++] = _("それは活動する無生物体を感知する。", "It senses non-living creatures.");
499     }
500
501     if (has_flag(flgs, TR_ESP_UNIQUE)) {
502         info[i++] = _("それは特別な強敵を感知する。", "It senses unique monsters.");
503     }
504
505     if (has_flag(flgs, TR_SLOW_DIGEST)) {
506         info[i++] = _("それはあなたの新陳代謝を遅くする。", "It slows your metabolism.");
507     }
508
509     if (has_flag(flgs, TR_REGEN)) {
510         info[i++] = _("それは体力回復力を強化する。", "It speeds your regenerative powers.");
511     }
512
513     if (has_flag(flgs, TR_WARNING)) {
514         info[i++] = _("それは危険に対して警告を発する。", "It warns you of danger");
515     }
516
517     if (has_flag(flgs, TR_REFLECT)) {
518         info[i++] = _("それは矢の呪文を反射する。", "It reflects bolt spells.");
519     }
520
521     if (has_flag(flgs, TR_SH_FIRE)) {
522         info[i++] = _("それは炎のバリアを張る。", "It produces a fiery sheath.");
523     }
524
525     if (has_flag(flgs, TR_SH_ELEC)) {
526         info[i++] = _("それは電気のバリアを張る。", "It produces an electric sheath.");
527     }
528
529     if (has_flag(flgs, TR_SH_COLD)) {
530         info[i++] = _("それは冷気のバリアを張る。", "It produces a sheath of coldness.");
531     }
532
533     if (has_flag(flgs, TR_NO_MAGIC)) {
534         info[i++] = _("それは反魔法バリアを張る。", "It produces an anti-magic shell.");
535     }
536
537     if (has_flag(flgs, TR_NO_TELE)) {
538         info[i++] = _("それはテレポートを邪魔する。", "It prevents teleportation.");
539     }
540
541     if (has_flag(flgs, TR_XTRA_MIGHT)) {
542         info[i++] = _("それは矢/ボルト/弾をより強力に発射することができる。", "It fires missiles with extra might.");
543     }
544
545     if (has_flag(flgs, TR_XTRA_SHOTS)) {
546         info[i++] = _("それは矢/ボルト/弾を非常に早く発射することができる。", "It fires missiles excessively fast.");
547     }
548
549     if (has_flag(flgs, TR_BLESSED)) {
550         info[i++] = _("それは神に祝福されている。", "It has been blessed by the gods.");
551     }
552
553     if (object_is_cursed(o_ptr)) {
554         if (o_ptr->curse_flags & TRC_PERMA_CURSE) {
555             info[i++] = _("それは永遠の呪いがかけられている。", "It is permanently cursed.");
556         } else if (o_ptr->curse_flags & TRC_HEAVY_CURSE) {
557             info[i++] = _("それは強力な呪いがかけられている。", "It is heavily cursed.");
558         } else {
559             info[i++] = _("それは呪われている。", "It is cursed.");
560
561             /*
562              * It's a trivial infomation since there is
563              * fake inscription {cursed}
564              */
565             trivial_info++;
566         }
567     }
568
569     if ((has_flag(flgs, TR_TY_CURSE)) || (o_ptr->curse_flags & TRC_TY_CURSE)) {
570         info[i++] = _("それは太古の禍々しい怨念が宿っている。", "It carries an ancient foul curse.");
571     }
572
573     if ((has_flag(flgs, TR_AGGRAVATE)) || (o_ptr->curse_flags & TRC_AGGRAVATE)) {
574         info[i++] = _("それは付近のモンスターを怒らせる。", "It aggravates nearby creatures.");
575     }
576
577     if ((has_flag(flgs, TR_DRAIN_EXP)) || (o_ptr->curse_flags & TRC_DRAIN_EXP)) {
578         info[i++] = _("それは経験値を吸い取る。", "It drains experience.");
579     }
580
581     if (o_ptr->curse_flags & TRC_SLOW_REGEN) {
582         info[i++] = _("それは回復力を弱める。", "It slows your regenerative powers.");
583     }
584
585     if ((o_ptr->curse_flags & TRC_ADD_L_CURSE) || has_flag(flgs, TR_ADD_L_CURSE)) {
586         info[i++] = _("それは弱い呪いを増やす。", "It adds weak curses.");
587     }
588
589     if ((o_ptr->curse_flags & TRC_ADD_H_CURSE) || has_flag(flgs, TR_ADD_H_CURSE)) {
590         info[i++] = _("それは強力な呪いを増やす。", "It adds heavy curses.");
591     }
592
593     if ((has_flag(flgs, TR_CALL_ANIMAL)) || (o_ptr->curse_flags & TRC_CALL_ANIMAL)) {
594         info[i++] = _("それは動物を呼び寄せる。", "It attracts animals.");
595     }
596
597     if ((has_flag(flgs, TR_CALL_DEMON)) || (o_ptr->curse_flags & TRC_CALL_DEMON)) {
598         info[i++] = _("それは悪魔を呼び寄せる。", "It attracts demons.");
599     }
600
601     if ((has_flag(flgs, TR_CALL_DRAGON)) || (o_ptr->curse_flags & TRC_CALL_DRAGON)) {
602         info[i++] = _("それはドラゴンを呼び寄せる。", "It attracts dragons.");
603     }
604
605     if ((has_flag(flgs, TR_CALL_UNDEAD)) || (o_ptr->curse_flags & TRC_CALL_UNDEAD)) {
606         info[i++] = _("それは死霊を呼び寄せる。", "It attracts undeads.");
607     }
608
609     if ((has_flag(flgs, TR_COWARDICE)) || (o_ptr->curse_flags & TRC_COWARDICE)) {
610         info[i++] = _("それは恐怖感を引き起こす。", "It makes you subject to cowardice.");
611     }
612
613     if ((has_flag(flgs, TR_TELEPORT)) || (o_ptr->curse_flags & TRC_TELEPORT)) {
614         info[i++] = _("それはランダムなテレポートを引き起こす。", "It induces random teleportation.");
615     }
616
617     if ((has_flag(flgs, TR_LOW_MELEE)) || o_ptr->curse_flags & TRC_LOW_MELEE) {
618         info[i++] = _("それは攻撃を外しやすい。", "It causes you to miss blows.");
619     }
620
621     if ((has_flag(flgs, TR_LOW_AC)) || (o_ptr->curse_flags & TRC_LOW_AC)) {
622         info[i++] = _("それは攻撃を受けやすい。", "It helps your enemies' blows.");
623     }
624
625     if ((has_flag(flgs, TR_LOW_MAGIC)) || (o_ptr->curse_flags & TRC_LOW_MAGIC)) {
626         info[i++] = _("それは魔法を唱えにくくする。", "It encumbers you while spellcasting.");
627     }
628
629     if ((has_flag(flgs, TR_FAST_DIGEST)) || (o_ptr->curse_flags & TRC_FAST_DIGEST)) {
630         info[i++] = _("それはあなたの新陳代謝を速くする。", "It speeds your metabolism.");
631     }
632
633     if ((has_flag(flgs, TR_DRAIN_HP)) || (o_ptr->curse_flags & TRC_DRAIN_HP)) {
634         info[i++] = _("それはあなたの体力を吸い取る。", "It drains you.");
635     }
636
637     if ((has_flag(flgs, TR_DRAIN_MANA)) || (o_ptr->curse_flags & TRC_DRAIN_MANA)) {
638         info[i++] = _("それはあなたの魔力を吸い取る。", "It drains your mana.");
639     }
640
641     if (mode & SCROBJ_FAKE_OBJECT) {
642         switch (o_ptr->tval) {
643         case TV_RING:
644             switch (o_ptr->sval) {
645             case SV_RING_LORDLY:
646                 info[i++] = _("それは幾つかのランダムな耐性を授ける。", "It provides some random resistances.");
647                 break;
648             case SV_RING_WARNING:
649                 info[i++] = _("それはひとつの低級なESPを授ける事がある。", "It may provide a low rank ESP.");
650                 break;
651             }
652
653             break;
654
655         case TV_AMULET:
656             switch (o_ptr->sval) {
657             case SV_AMULET_RESISTANCE:
658                 info[i++] = _("それは毒への耐性を授ける事がある。", "It may provides resistance to poison.");
659                 info[i++] = _("それはランダムな耐性を授ける事がある。", "It may provide a random resistances.");
660                 break;
661             case SV_AMULET_THE_MAGI:
662                 info[i++] = _("それは最大で3つまでの低級なESPを授ける。", "It provides up to three low rank ESPs.");
663                 break;
664             }
665
666             break;
667         }
668     }
669
670     if (has_flag(flgs, TR_IGNORE_ACID) && has_flag(flgs, TR_IGNORE_ELEC) && has_flag(flgs, TR_IGNORE_FIRE) && has_flag(flgs, TR_IGNORE_COLD)) {
671         info[i++] = _("それは酸・電撃・火炎・冷気では傷つかない。", "It cannot be harmed by the elements.");
672     } else {
673         if (has_flag(flgs, TR_IGNORE_ACID)) {
674             info[i++] = _("それは酸では傷つかない。", "It cannot be harmed by acid.");
675         }
676
677         if (has_flag(flgs, TR_IGNORE_ELEC)) {
678             info[i++] = _("それは電撃では傷つかない。", "It cannot be harmed by electricity.");
679         }
680
681         if (has_flag(flgs, TR_IGNORE_FIRE)) {
682             info[i++] = _("それは火炎では傷つかない。", "It cannot be harmed by fire.");
683         }
684
685         if (has_flag(flgs, TR_IGNORE_COLD)) {
686             info[i++] = _("それは冷気では傷つかない。", "It cannot be harmed by cold.");
687         }
688     }
689
690     if (mode & SCROBJ_FORCE_DETAIL)
691         trivial_info = 0;
692
693     if (i <= trivial_info)
694         return FALSE;
695
696     screen_save();
697     int wid, hgt;
698     term_get_size(&wid, &hgt);
699
700     if (!(mode & SCROBJ_FAKE_OBJECT))
701         describe_flavor(player_ptr, o_name, o_ptr, 0);
702     else
703         describe_flavor(player_ptr, o_name, o_ptr, (OD_NAME_ONLY | OD_STORE));
704
705     prt(o_name, 0, 0);
706     for (int k = 1; k < hgt; k++) {
707         prt("", k, 13);
708     }
709
710     if ((o_ptr->tval == TV_STATUE) && (o_ptr->sval == SV_PHOTO)) {
711         monster_race *r_ptr = &r_info[o_ptr->pval];
712         int namelen = strlen(r_name + r_ptr->name);
713         prt(format("%s: '", r_name + r_ptr->name), 1, 15);
714         term_queue_bigchar(18 + namelen, 1, r_ptr->x_attr, r_ptr->x_char, 0, 0);
715         prt("'", 1, (use_bigtile ? 20 : 19) + namelen);
716     } else {
717         prt(_("     アイテムの能力:", "     Item Attributes:"), 1, 15);
718     }
719
720     int k = 2;
721     for (int j = 0; j < i; j++) {
722         prt(info[j], k++, 15);
723         if ((k == hgt - 2) && (j + 1 < i)) {
724             prt(_("-- 続く --", "-- more --"), k, 15);
725             inkey();
726             for (; k > 2; k--)
727                 prt("", k, 15);
728         }
729     }
730
731     prt(_("[何かキーを押すとゲームに戻ります]", "[Press any key to continue]"), k, 15);
732     inkey();
733     screen_load();
734     return TRUE;
735 }