OSDN Git Service

Reword English message for giant eagle teleport self effect: original had subject...
[hengband/hengband.git] / src / perception / identification.c
index 968a9bf..3389023 100644 (file)
@@ -1,18 +1,28 @@
 #include "perception/identification.h"
-#include "art-definition/art-protector-types.h"
-#include "object-enchant/artifact.h"
+#include "artifact/fixed-art-types.h"
+#include "flavor/flavor-describer.h"
+#include "flavor/object-flavor-types.h"
+#include "game-option/special-options.h"
+#include "io/input-key-acceptor.h"
+#include "monster-race/monster-race.h"
+#include "monster-race/race-flags2.h"
+#include "monster-race/race-indice-types.h"
 #include "object-enchant/object-ego.h"
 #include "object-enchant/tr-types.h"
 #include "object-enchant/trc-types.h"
+#include "object-hook/hook-checker.h"
+#include "object-hook/hook-weapon.h"
 #include "object/object-flags.h"
-#include "object/object-flavor.h"
-#include "object/object-hook.h"
+#include "object/object-info.h"
 #include "object/object-kind.h"
-#include "object/object1.h"
 #include "sv-definition/sv-amulet-types.h"
 #include "sv-definition/sv-other-types.h"
 #include "sv-definition/sv-ring-types.h"
 #include "sv-definition/sv-weapon-types.h"
+#include "system/artifact-type-definition.h"
+#include "term/screen-processor.h"
+#include "util/bit-flags-calculator.h"
+#include "util/buffer-shaper.h"
 
 /*!
  * @brief オブジェクトの*鑑定*内容を詳述して表示する /
@@ -31,9 +41,9 @@ bool screen_object(player_type *player_ptr, object_type *o_ptr, BIT_FLAGS mode)
     char desc[256];
 
     int trivial_info = 0;
-    object_flags(o_ptr, flgs);
+    object_flags(player_ptr, o_ptr, flgs);
 
-    roff_to_buf(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));
+    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));
 
     int i = 0;
     for (int j = 0; temp[j]; j += 1 + strlen(&temp[j])) {
@@ -45,9 +55,9 @@ bool screen_object(player_type *player_ptr, object_type *o_ptr, BIT_FLAGS mode)
         trivial_info = i;
     }
 
-    if (have_flag(flgs, TR_ACTIVATE)) {
+    if (has_flag(flgs, TR_ACTIVATE)) {
         info[i++] = _("始動したときの効果...", "It can be activated for...");
-        info[i++] = activation_explanation(o_ptr);
+        info[i++] = activation_explanation(player_ptr, o_ptr);
         info[i++] = _("...ただし装備していなければならない。", "...if it is being worn.");
     }
 
@@ -68,23 +78,31 @@ bool screen_object(player_type *player_ptr, object_type *o_ptr, BIT_FLAGS mode)
         info[i++] = _("それは無敵のバリアを切り裂く。", "It always penetrates invulnerability barriers.");
     }
 
-    if (o_ptr->name2 == EGO_2WEAPON) {
+    if (has_flag(flgs, TR_EASY2_WEAPON)) {
         info[i++] = _("それは二刀流での命中率を向上させる。", "It affects your ability to hit when you are wielding two weapons.");
     }
 
-    if (have_flag(flgs, TR_EASY_SPELL)) {
+    if (has_flag(flgs, TR_INVULN_ARROW)) {
+        info[i++] = _("それは視界がある限り物理的な飛び道具の一切をはねのける。", "It repels all physical missiles as long as there is visibility.");
+    }
+
+    if (has_flag(flgs, TR_NO_AC)) {
+        info[i++] = _("それは物理的防護の一切を奪う。", "It robs you of any physical protection.");
+    }
+
+    if (has_flag(flgs, TR_EASY_SPELL)) {
         info[i++] = _("それは魔法の難易度を下げる。", "It affects your ability to cast spells.");
     }
 
-    if (o_ptr->name2 == EGO_AMU_FOOL) {
+    if (has_flag(flgs, TR_HEAVY_SPELL)) {
         info[i++] = _("それは魔法の難易度を上げる。", "It interferes with casting spells.");
     }
 
-    if (o_ptr->name2 == EGO_RING_THROW) {
+    if (has_flag(flgs, TR_MIGHTY_THROW)) {
         info[i++] = _("それは物を強く投げることを可能にする。", "It provides great strength when you throw an item.");
     }
 
-    if (o_ptr->name2 == EGO_AMU_NAIVETY) {
+    if (has_flag(flgs, TR_LOW_MAGIC)) {
         info[i++] = _("それは魔法抵抗力を下げる。", "It decreases your magic resistance.");
     }
 
@@ -98,27 +116,27 @@ bool screen_object(player_type *player_ptr, object_type *o_ptr, BIT_FLAGS mode)
             info[i++] = _("それは部屋に飾ると楽しい。", "It is cheerful.");
     }
 
-    if (o_ptr->name2 == EGO_LITE_DARKNESS)
+    if (has_flag(flgs, TR_DARK_SOURCE))
         info[i++] = _("それは全く光らない。", "It provides no light.");
 
     POSITION rad = 0;
-    if (have_flag(flgs, TR_LITE_1) && o_ptr->name2 != EGO_LITE_DARKNESS)
+    if (has_flag(flgs, TR_LITE_1) && !has_flag(flgs, TR_DARK_SOURCE))
         rad += 1;
-    if (have_flag(flgs, TR_LITE_2) && o_ptr->name2 != EGO_LITE_DARKNESS)
+    if (has_flag(flgs, TR_LITE_2) && !has_flag(flgs, TR_DARK_SOURCE))
         rad += 2;
-    if (have_flag(flgs, TR_LITE_3) && o_ptr->name2 != EGO_LITE_DARKNESS)
+    if (has_flag(flgs, TR_LITE_3) && !has_flag(flgs, TR_DARK_SOURCE))
         rad += 3;
-    if (have_flag(flgs, TR_LITE_M1))
+    if (has_flag(flgs, TR_LITE_M1))
         rad -= 1;
-    if (have_flag(flgs, TR_LITE_M2))
+    if (has_flag(flgs, TR_LITE_M2))
         rad -= 2;
-    if (have_flag(flgs, TR_LITE_M3))
+    if (has_flag(flgs, TR_LITE_M3))
         rad -= 3;
 
     if (o_ptr->name2 == EGO_LITE_SHINE)
         rad++;
 
-    if (have_flag(flgs, TR_LITE_FUEL) && o_ptr->name2 != EGO_LITE_DARKNESS) {
+    if (has_flag(flgs, TR_LITE_FUEL) && !has_flag(flgs, TR_DARK_SOURCE)) {
         if (rad > 0)
             sprintf(desc, _("それは燃料補給によって明かり(半径 %d)を授ける。", "It provides light (radius %d) when fueled."), (int)rad);
     } else {
@@ -135,7 +153,7 @@ bool screen_object(player_type *player_ptr, object_type *o_ptr, BIT_FLAGS mode)
         info[i++] = _("それは長いターン明かりを授ける。", "It provides light for much longer time.");
     }
 
-    if (have_flag(flgs, TR_RIDING)) {
+    if (has_flag(flgs, TR_RIDING)) {
         if ((o_ptr->tval == TV_POLEARM) && ((o_ptr->sval == SV_LANCE) || (o_ptr->sval == SV_HEAVY_LANCE)))
             info[i++] = _("それは乗馬中は非常に使いやすい。", "It is made for use while riding.");
         else {
@@ -144,391 +162,391 @@ bool screen_object(player_type *player_ptr, object_type *o_ptr, BIT_FLAGS mode)
         }
     }
 
-    if (have_flag(flgs, TR_STR)) {
+    if (has_flag(flgs, TR_STR)) {
         info[i++] = _("それは腕力に影響を及ぼす。", "It affects your strength.");
     }
 
-    if (have_flag(flgs, TR_INT)) {
+    if (has_flag(flgs, TR_INT)) {
         info[i++] = _("それは知能に影響を及ぼす。", "It affects your intelligence.");
     }
 
-    if (have_flag(flgs, TR_WIS)) {
+    if (has_flag(flgs, TR_WIS)) {
         info[i++] = _("それは賢さに影響を及ぼす。", "It affects your wisdom.");
     }
 
-    if (have_flag(flgs, TR_DEX)) {
+    if (has_flag(flgs, TR_DEX)) {
         info[i++] = _("それは器用さに影響を及ぼす。", "It affects your dexterity.");
     }
 
-    if (have_flag(flgs, TR_CON)) {
+    if (has_flag(flgs, TR_CON)) {
         info[i++] = _("それは耐久力に影響を及ぼす。", "It affects your constitution.");
     }
 
-    if (have_flag(flgs, TR_CHR)) {
+    if (has_flag(flgs, TR_CHR)) {
         info[i++] = _("それは魅力に影響を及ぼす。", "It affects your charisma.");
     }
 
-    if (have_flag(flgs, TR_MAGIC_MASTERY)) {
+    if (has_flag(flgs, TR_MAGIC_MASTERY)) {
         info[i++] = _("それは魔法道具使用能力に影響を及ぼす。", "It affects your ability to use magic devices.");
     }
 
-    if (have_flag(flgs, TR_STEALTH)) {
+    if (has_flag(flgs, TR_STEALTH)) {
         info[i++] = _("それは隠密行動能力に影響を及ぼす。", "It affects your stealth.");
     }
 
-    if (have_flag(flgs, TR_SEARCH)) {
+    if (has_flag(flgs, TR_SEARCH)) {
         info[i++] = _("それは探索能力に影響を及ぼす。", "It affects your searching.");
     }
 
-    if (have_flag(flgs, TR_INFRA)) {
+    if (has_flag(flgs, TR_INFRA)) {
         info[i++] = _("それは赤外線視力に影響を及ぼす。", "It affects your infravision.");
     }
 
-    if (have_flag(flgs, TR_TUNNEL)) {
+    if (has_flag(flgs, TR_TUNNEL)) {
         info[i++] = _("それは採掘能力に影響を及ぼす。", "It affects your ability to tunnel.");
     }
 
-    if (have_flag(flgs, TR_SPEED)) {
+    if (has_flag(flgs, TR_SPEED)) {
         info[i++] = _("それはスピードに影響を及ぼす。", "It affects your speed.");
     }
 
-    if (have_flag(flgs, TR_BLOWS)) {
+    if (has_flag(flgs, TR_BLOWS)) {
         info[i++] = _("それは打撃回数に影響を及ぼす。", "It affects your attack speed.");
     }
 
-    if (have_flag(flgs, TR_BRAND_ACID)) {
+    if (has_flag(flgs, TR_BRAND_ACID)) {
         info[i++] = _("それは酸によって大きなダメージを与える。", "It does extra damage from acid.");
     }
 
-    if (have_flag(flgs, TR_BRAND_ELEC)) {
+    if (has_flag(flgs, TR_BRAND_ELEC)) {
         info[i++] = _("それは電撃によって大きなダメージを与える。", "It does extra damage from electricity.");
     }
 
-    if (have_flag(flgs, TR_BRAND_FIRE)) {
+    if (has_flag(flgs, TR_BRAND_FIRE)) {
         info[i++] = _("それは火炎によって大きなダメージを与える。", "It does extra damage from fire.");
     }
 
-    if (have_flag(flgs, TR_BRAND_COLD)) {
+    if (has_flag(flgs, TR_BRAND_COLD)) {
         info[i++] = _("それは冷気によって大きなダメージを与える。", "It does extra damage from frost.");
     }
 
-    if (have_flag(flgs, TR_BRAND_POIS)) {
+    if (has_flag(flgs, TR_BRAND_POIS)) {
         info[i++] = _("それは敵を毒する。", "It poisons your foes.");
     }
 
-    if (have_flag(flgs, TR_CHAOTIC)) {
+    if (has_flag(flgs, TR_CHAOTIC)) {
         info[i++] = _("それはカオス的な効果を及ぼす。", "It produces chaotic effects.");
     }
 
-    if (have_flag(flgs, TR_VAMPIRIC)) {
+    if (has_flag(flgs, TR_VAMPIRIC)) {
         info[i++] = _("それは敵から生命力を吸収する。", "It drains life from your foes.");
     }
 
-    if (have_flag(flgs, TR_IMPACT)) {
+    if (has_flag(flgs, TR_IMPACT)) {
         info[i++] = _("それは地震を起こすことができる。", "It can cause earthquakes.");
     }
 
-    if (have_flag(flgs, TR_VORPAL)) {
+    if (has_flag(flgs, TR_VORPAL)) {
         info[i++] = _("それは非常に切れ味が鋭く敵を切断することができる。", "It is very sharp and can cut your foes.");
     }
 
-    if (have_flag(flgs, TR_KILL_DRAGON)) {
+    if (has_flag(flgs, TR_KILL_DRAGON)) {
         info[i++] = _("それはドラゴンにとっての天敵である。", "It is a great bane of dragons.");
-    } else if (have_flag(flgs, TR_SLAY_DRAGON)) {
+    } else if (has_flag(flgs, TR_SLAY_DRAGON)) {
         info[i++] = _("それはドラゴンに対して特に恐るべき力を発揮する。", "It is especially deadly against dragons.");
     }
 
-    if (have_flag(flgs, TR_KILL_ORC)) {
+    if (has_flag(flgs, TR_KILL_ORC)) {
         info[i++] = _("それはオークにとっての天敵である。", "It is a great bane of orcs.");
     }
 
-    if (have_flag(flgs, TR_SLAY_ORC)) {
+    if (has_flag(flgs, TR_SLAY_ORC)) {
         info[i++] = _("それはオークに対して特に恐るべき力を発揮する。", "It is especially deadly against orcs.");
     }
 
-    if (have_flag(flgs, TR_KILL_TROLL)) {
+    if (has_flag(flgs, TR_KILL_TROLL)) {
         info[i++] = _("それはトロルにとっての天敵である。", "It is a great bane of trolls.");
     }
 
-    if (have_flag(flgs, TR_SLAY_TROLL)) {
+    if (has_flag(flgs, TR_SLAY_TROLL)) {
         info[i++] = _("それはトロルに対して特に恐るべき力を発揮する。", "It is especially deadly against trolls.");
     }
 
-    if (have_flag(flgs, TR_KILL_GIANT)) {
+    if (has_flag(flgs, TR_KILL_GIANT)) {
         info[i++] = _("それは巨人にとっての天敵である。", "It is a great bane of giants.");
-    } else if (have_flag(flgs, TR_SLAY_GIANT)) {
+    } else if (has_flag(flgs, TR_SLAY_GIANT)) {
         info[i++] = _("それは巨人に対して特に恐るべき力を発揮する。", "It is especially deadly against giants.");
     }
 
-    if (have_flag(flgs, TR_KILL_DEMON)) {
+    if (has_flag(flgs, TR_KILL_DEMON)) {
         info[i++] = _("それはデーモンにとっての天敵である。", "It is a great bane of demons.");
     }
 
-    if (have_flag(flgs, TR_SLAY_DEMON)) {
+    if (has_flag(flgs, TR_SLAY_DEMON)) {
         info[i++] = _("それはデーモンに対して聖なる力を発揮する。", "It strikes at demons with holy wrath.");
     }
 
-    if (have_flag(flgs, TR_KILL_UNDEAD)) {
+    if (has_flag(flgs, TR_KILL_UNDEAD)) {
         info[i++] = _("それはアンデッドにとっての天敵である。", "It is a great bane of undead.");
     }
 
-    if (have_flag(flgs, TR_SLAY_UNDEAD)) {
+    if (has_flag(flgs, TR_SLAY_UNDEAD)) {
         info[i++] = _("それはアンデッドに対して聖なる力を発揮する。", "It strikes at undead with holy wrath.");
     }
 
-    if (have_flag(flgs, TR_KILL_EVIL)) {
+    if (has_flag(flgs, TR_KILL_EVIL)) {
         info[i++] = _("それは邪悪なる存在にとっての天敵である。", "It is a great bane of evil monsters.");
     }
 
-    if (have_flag(flgs, TR_SLAY_EVIL)) {
+    if (has_flag(flgs, TR_SLAY_EVIL)) {
         info[i++] = _("それは邪悪なる存在に対して聖なる力で攻撃する。", "It fights against evil with holy fury.");
     }
 
-    if (have_flag(flgs, TR_KILL_ANIMAL)) {
+    if (has_flag(flgs, TR_KILL_ANIMAL)) {
         info[i++] = _("それは自然界の動物にとっての天敵である。", "It is a great bane of natural creatures.");
     }
 
-    if (have_flag(flgs, TR_SLAY_ANIMAL)) {
+    if (has_flag(flgs, TR_SLAY_ANIMAL)) {
         info[i++] = _("それは自然界の動物に対して特に恐るべき力を発揮する。", "It is especially deadly against natural creatures.");
     }
 
-    if (have_flag(flgs, TR_KILL_HUMAN)) {
+    if (has_flag(flgs, TR_KILL_HUMAN)) {
         info[i++] = _("それは人間にとっての天敵である。", "It is a great bane of humans.");
     }
 
-    if (have_flag(flgs, TR_SLAY_HUMAN)) {
+    if (has_flag(flgs, TR_SLAY_HUMAN)) {
         info[i++] = _("それは人間に対して特に恐るべき力を発揮する。", "It is especially deadly against humans.");
     }
 
-    if (have_flag(flgs, TR_FORCE_WEAPON)) {
+    if (has_flag(flgs, TR_FORCE_WEAPON)) {
         info[i++] = _("それは使用者の魔力を使って攻撃する。", "It powerfully strikes at a monster using your mana.");
     }
 
-    if (have_flag(flgs, TR_DEC_MANA)) {
+    if (has_flag(flgs, TR_DEC_MANA)) {
         info[i++] = _("それは魔力の消費を押さえる。", "It decreases your mana consumption.");
     }
 
-    if (have_flag(flgs, TR_SUST_STR)) {
+    if (has_flag(flgs, TR_SUST_STR)) {
         info[i++] = _("それはあなたの腕力を維持する。", "It sustains your strength.");
     }
 
-    if (have_flag(flgs, TR_SUST_INT)) {
+    if (has_flag(flgs, TR_SUST_INT)) {
         info[i++] = _("それはあなたの知能を維持する。", "It sustains your intelligence.");
     }
 
-    if (have_flag(flgs, TR_SUST_WIS)) {
+    if (has_flag(flgs, TR_SUST_WIS)) {
         info[i++] = _("それはあなたの賢さを維持する。", "It sustains your wisdom.");
     }
 
-    if (have_flag(flgs, TR_SUST_DEX)) {
+    if (has_flag(flgs, TR_SUST_DEX)) {
         info[i++] = _("それはあなたの器用さを維持する。", "It sustains your dexterity.");
     }
 
-    if (have_flag(flgs, TR_SUST_CON)) {
+    if (has_flag(flgs, TR_SUST_CON)) {
         info[i++] = _("それはあなたの耐久力を維持する。", "It sustains your constitution.");
     }
 
-    if (have_flag(flgs, TR_SUST_CHR)) {
+    if (has_flag(flgs, TR_SUST_CHR)) {
         info[i++] = _("それはあなたの魅力を維持する。", "It sustains your charisma.");
     }
 
-    if (have_flag(flgs, TR_IM_ACID)) {
+    if (has_flag(flgs, TR_IM_ACID)) {
         info[i++] = _("それは酸に対する完全な免疫を授ける。", "It provides immunity to acid.");
     }
 
-    if (have_flag(flgs, TR_IM_ELEC)) {
+    if (has_flag(flgs, TR_IM_ELEC)) {
         info[i++] = _("それは電撃に対する完全な免疫を授ける。", "It provides immunity to electricity.");
     }
 
-    if (have_flag(flgs, TR_IM_FIRE)) {
+    if (has_flag(flgs, TR_IM_FIRE)) {
         info[i++] = _("それは火に対する完全な免疫を授ける。", "It provides immunity to fire.");
     }
 
-    if (have_flag(flgs, TR_IM_COLD)) {
+    if (has_flag(flgs, TR_IM_COLD)) {
         info[i++] = _("それは寒さに対する完全な免疫を授ける。", "It provides immunity to cold.");
     }
 
-    if (have_flag(flgs, TR_THROW)) {
+    if (has_flag(flgs, TR_THROW)) {
         info[i++] = _("それは敵に投げて大きなダメージを与えることができる。", "It is perfectly balanced for throwing.");
     }
 
-    if (have_flag(flgs, TR_FREE_ACT)) {
+    if (has_flag(flgs, TR_FREE_ACT)) {
         info[i++] = _("それは麻痺に対する完全な免疫を授ける。", "It provides immunity to paralysis.");
     }
 
-    if (have_flag(flgs, TR_HOLD_EXP)) {
+    if (has_flag(flgs, TR_HOLD_EXP)) {
         info[i++] = _("それは経験値吸収に対する耐性を授ける。", "It provides resistance to experience draining.");
     }
 
-    if (have_flag(flgs, TR_RES_FEAR)) {
+    if (has_flag(flgs, TR_RES_FEAR)) {
         info[i++] = _("それは恐怖への完全な耐性を授ける。", "It makes you completely fearless.");
     }
 
-    if (have_flag(flgs, TR_RES_ACID)) {
+    if (has_flag(flgs, TR_RES_ACID)) {
         info[i++] = _("それは酸への耐性を授ける。", "It provides resistance to acid.");
     }
 
-    if (have_flag(flgs, TR_RES_ELEC)) {
+    if (has_flag(flgs, TR_RES_ELEC)) {
         info[i++] = _("それは電撃への耐性を授ける。", "It provides resistance to electricity.");
     }
 
-    if (have_flag(flgs, TR_RES_FIRE)) {
+    if (has_flag(flgs, TR_RES_FIRE)) {
         info[i++] = _("それは火への耐性を授ける。", "It provides resistance to fire.");
     }
 
-    if (have_flag(flgs, TR_RES_COLD)) {
+    if (has_flag(flgs, TR_RES_COLD)) {
         info[i++] = _("それは寒さへの耐性を授ける。", "It provides resistance to cold.");
     }
 
-    if (have_flag(flgs, TR_RES_POIS)) {
+    if (has_flag(flgs, TR_RES_POIS)) {
         info[i++] = _("それは毒への耐性を授ける。", "It provides resistance to poison.");
     }
 
-    if (have_flag(flgs, TR_RES_LITE)) {
+    if (has_flag(flgs, TR_RES_LITE)) {
         info[i++] = _("それは閃光への耐性を授ける。", "It provides resistance to light.");
     }
 
-    if (have_flag(flgs, TR_RES_DARK)) {
+    if (has_flag(flgs, TR_RES_DARK)) {
         info[i++] = _("それは暗黒への耐性を授ける。", "It provides resistance to dark.");
     }
 
-    if (have_flag(flgs, TR_RES_BLIND)) {
+    if (has_flag(flgs, TR_RES_BLIND)) {
         info[i++] = _("それは盲目への耐性を授ける。", "It provides resistance to blindness.");
     }
 
-    if (have_flag(flgs, TR_RES_CONF)) {
+    if (has_flag(flgs, TR_RES_CONF)) {
         info[i++] = _("それは混乱への耐性を授ける。", "It provides resistance to confusion.");
     }
 
-    if (have_flag(flgs, TR_RES_SOUND)) {
+    if (has_flag(flgs, TR_RES_SOUND)) {
         info[i++] = _("それは轟音への耐性を授ける。", "It provides resistance to sound.");
     }
 
-    if (have_flag(flgs, TR_RES_SHARDS)) {
+    if (has_flag(flgs, TR_RES_SHARDS)) {
         info[i++] = _("それは破片への耐性を授ける。", "It provides resistance to shards.");
     }
 
-    if (have_flag(flgs, TR_RES_NETHER)) {
+    if (has_flag(flgs, TR_RES_NETHER)) {
         info[i++] = _("それは地獄への耐性を授ける。", "It provides resistance to nether.");
     }
 
-    if (have_flag(flgs, TR_RES_NEXUS)) {
+    if (has_flag(flgs, TR_RES_NEXUS)) {
         info[i++] = _("それは因果混乱への耐性を授ける。", "It provides resistance to nexus.");
     }
 
-    if (have_flag(flgs, TR_RES_CHAOS)) {
+    if (has_flag(flgs, TR_RES_CHAOS)) {
         info[i++] = _("それはカオスへの耐性を授ける。", "It provides resistance to chaos.");
     }
 
-    if (have_flag(flgs, TR_RES_DISEN)) {
+    if (has_flag(flgs, TR_RES_DISEN)) {
         info[i++] = _("それは劣化への耐性を授ける。", "It provides resistance to disenchantment.");
     }
 
-    if (have_flag(flgs, TR_LEVITATION)) {
+    if (has_flag(flgs, TR_LEVITATION)) {
         info[i++] = _("それは宙に浮くことを可能にする。", "It allows you to levitate.");
     }
 
-    if (have_flag(flgs, TR_SEE_INVIS)) {
+    if (has_flag(flgs, TR_SEE_INVIS)) {
         info[i++] = _("それは透明なモンスターを見ることを可能にする。", "It allows you to see invisible monsters.");
     }
 
-    if (have_flag(flgs, TR_TELEPATHY)) {
+    if (has_flag(flgs, TR_TELEPATHY)) {
         info[i++] = _("それはテレパシー能力を授ける。", "It gives telepathic powers.");
     }
 
-    if (have_flag(flgs, TR_ESP_ANIMAL)) {
+    if (has_flag(flgs, TR_ESP_ANIMAL)) {
         info[i++] = _("それは自然界の生物を感知する。", "It senses natural creatures.");
     }
 
-    if (have_flag(flgs, TR_ESP_UNDEAD)) {
+    if (has_flag(flgs, TR_ESP_UNDEAD)) {
         info[i++] = _("それはアンデッドを感知する。", "It senses undead.");
     }
 
-    if (have_flag(flgs, TR_ESP_DEMON)) {
+    if (has_flag(flgs, TR_ESP_DEMON)) {
         info[i++] = _("それは悪魔を感知する。", "It senses demons.");
     }
 
-    if (have_flag(flgs, TR_ESP_ORC)) {
+    if (has_flag(flgs, TR_ESP_ORC)) {
         info[i++] = _("それはオークを感知する。", "It senses orcs.");
     }
 
-    if (have_flag(flgs, TR_ESP_TROLL)) {
+    if (has_flag(flgs, TR_ESP_TROLL)) {
         info[i++] = _("それはトロルを感知する。", "It senses trolls.");
     }
 
-    if (have_flag(flgs, TR_ESP_GIANT)) {
+    if (has_flag(flgs, TR_ESP_GIANT)) {
         info[i++] = _("それは巨人を感知する。", "It senses giants.");
     }
 
-    if (have_flag(flgs, TR_ESP_DRAGON)) {
+    if (has_flag(flgs, TR_ESP_DRAGON)) {
         info[i++] = _("それはドラゴンを感知する。", "It senses dragons.");
     }
 
-    if (have_flag(flgs, TR_ESP_HUMAN)) {
+    if (has_flag(flgs, TR_ESP_HUMAN)) {
         info[i++] = _("それは人間を感知する。", "It senses humans.");
     }
 
-    if (have_flag(flgs, TR_ESP_EVIL)) {
+    if (has_flag(flgs, TR_ESP_EVIL)) {
         info[i++] = _("それは邪悪な存在を感知する。", "It senses evil creatures.");
     }
 
-    if (have_flag(flgs, TR_ESP_GOOD)) {
+    if (has_flag(flgs, TR_ESP_GOOD)) {
         info[i++] = _("それは善良な存在を感知する。", "It senses good creatures.");
     }
 
-    if (have_flag(flgs, TR_ESP_NONLIVING)) {
+    if (has_flag(flgs, TR_ESP_NONLIVING)) {
         info[i++] = _("それは活動する無生物体を感知する。", "It senses non-living creatures.");
     }
 
-    if (have_flag(flgs, TR_ESP_UNIQUE)) {
+    if (has_flag(flgs, TR_ESP_UNIQUE)) {
         info[i++] = _("それは特別な強敵を感知する。", "It senses unique monsters.");
     }
 
-    if (have_flag(flgs, TR_SLOW_DIGEST)) {
+    if (has_flag(flgs, TR_SLOW_DIGEST)) {
         info[i++] = _("それはあなたの新陳代謝を遅くする。", "It slows your metabolism.");
     }
 
-    if (have_flag(flgs, TR_REGEN)) {
+    if (has_flag(flgs, TR_REGEN)) {
         info[i++] = _("それは体力回復力を強化する。", "It speeds your regenerative powers.");
     }
 
-    if (have_flag(flgs, TR_WARNING)) {
+    if (has_flag(flgs, TR_WARNING)) {
         info[i++] = _("それは危険に対して警告を発する。", "It warns you of danger");
     }
 
-    if (have_flag(flgs, TR_REFLECT)) {
+    if (has_flag(flgs, TR_REFLECT)) {
         info[i++] = _("それは矢の呪文を反射する。", "It reflects bolt spells.");
     }
 
-    if (have_flag(flgs, TR_SH_FIRE)) {
+    if (has_flag(flgs, TR_SH_FIRE)) {
         info[i++] = _("それは炎のバリアを張る。", "It produces a fiery sheath.");
     }
 
-    if (have_flag(flgs, TR_SH_ELEC)) {
+    if (has_flag(flgs, TR_SH_ELEC)) {
         info[i++] = _("それは電気のバリアを張る。", "It produces an electric sheath.");
     }
 
-    if (have_flag(flgs, TR_SH_COLD)) {
+    if (has_flag(flgs, TR_SH_COLD)) {
         info[i++] = _("それは冷気のバリアを張る。", "It produces a sheath of coldness.");
     }
 
-    if (have_flag(flgs, TR_NO_MAGIC)) {
+    if (has_flag(flgs, TR_NO_MAGIC)) {
         info[i++] = _("それは反魔法バリアを張る。", "It produces an anti-magic shell.");
     }
 
-    if (have_flag(flgs, TR_NO_TELE)) {
+    if (has_flag(flgs, TR_NO_TELE)) {
         info[i++] = _("それはテレポートを邪魔する。", "It prevents teleportation.");
     }
 
-    if (have_flag(flgs, TR_XTRA_MIGHT)) {
+    if (has_flag(flgs, TR_XTRA_MIGHT)) {
         info[i++] = _("それは矢/ボルト/弾をより強力に発射することができる。", "It fires missiles with extra might.");
     }
 
-    if (have_flag(flgs, TR_XTRA_SHOTS)) {
+    if (has_flag(flgs, TR_XTRA_SHOTS)) {
         info[i++] = _("それは矢/ボルト/弾を非常に早く発射することができる。", "It fires missiles excessively fast.");
     }
 
-    if (have_flag(flgs, TR_BLESSED)) {
+    if (has_flag(flgs, TR_BLESSED)) {
         info[i++] = _("それは神に祝福されている。", "It has been blessed by the gods.");
     }
 
@@ -548,15 +566,15 @@ bool screen_object(player_type *player_ptr, object_type *o_ptr, BIT_FLAGS mode)
         }
     }
 
-    if ((have_flag(flgs, TR_TY_CURSE)) || (o_ptr->curse_flags & TRC_TY_CURSE)) {
+    if ((has_flag(flgs, TR_TY_CURSE)) || (o_ptr->curse_flags & TRC_TY_CURSE)) {
         info[i++] = _("それは太古の禍々しい怨念が宿っている。", "It carries an ancient foul curse.");
     }
 
-    if ((have_flag(flgs, TR_AGGRAVATE)) || (o_ptr->curse_flags & TRC_AGGRAVATE)) {
+    if ((has_flag(flgs, TR_AGGRAVATE)) || (o_ptr->curse_flags & TRC_AGGRAVATE)) {
         info[i++] = _("それは付近のモンスターを怒らせる。", "It aggravates nearby creatures.");
     }
 
-    if ((have_flag(flgs, TR_DRAIN_EXP)) || (o_ptr->curse_flags & TRC_DRAIN_EXP)) {
+    if ((has_flag(flgs, TR_DRAIN_EXP)) || (o_ptr->curse_flags & TRC_DRAIN_EXP)) {
         info[i++] = _("それは経験値を吸い取る。", "It drains experience.");
     }
 
@@ -564,59 +582,59 @@ bool screen_object(player_type *player_ptr, object_type *o_ptr, BIT_FLAGS mode)
         info[i++] = _("それは回復力を弱める。", "It slows your regenerative powers.");
     }
 
-    if ((o_ptr->curse_flags & TRC_ADD_L_CURSE) || have_flag(flgs, TR_ADD_L_CURSE)) {
+    if ((o_ptr->curse_flags & TRC_ADD_L_CURSE) || has_flag(flgs, TR_ADD_L_CURSE)) {
         info[i++] = _("それは弱い呪いを増やす。", "It adds weak curses.");
     }
 
-    if ((o_ptr->curse_flags & TRC_ADD_H_CURSE) || have_flag(flgs, TR_ADD_H_CURSE)) {
+    if ((o_ptr->curse_flags & TRC_ADD_H_CURSE) || has_flag(flgs, TR_ADD_H_CURSE)) {
         info[i++] = _("それは強力な呪いを増やす。", "It adds heavy curses.");
     }
 
-    if ((have_flag(flgs, TR_CALL_ANIMAL)) || (o_ptr->curse_flags & TRC_CALL_ANIMAL)) {
+    if ((has_flag(flgs, TR_CALL_ANIMAL)) || (o_ptr->curse_flags & TRC_CALL_ANIMAL)) {
         info[i++] = _("それは動物を呼び寄せる。", "It attracts animals.");
     }
 
-    if ((have_flag(flgs, TR_CALL_DEMON)) || (o_ptr->curse_flags & TRC_CALL_DEMON)) {
+    if ((has_flag(flgs, TR_CALL_DEMON)) || (o_ptr->curse_flags & TRC_CALL_DEMON)) {
         info[i++] = _("それは悪魔を呼び寄せる。", "It attracts demons.");
     }
 
-    if ((have_flag(flgs, TR_CALL_DRAGON)) || (o_ptr->curse_flags & TRC_CALL_DRAGON)) {
+    if ((has_flag(flgs, TR_CALL_DRAGON)) || (o_ptr->curse_flags & TRC_CALL_DRAGON)) {
         info[i++] = _("それはドラゴンを呼び寄せる。", "It attracts dragons.");
     }
 
-    if ((have_flag(flgs, TR_CALL_UNDEAD)) || (o_ptr->curse_flags & TRC_CALL_UNDEAD)) {
+    if ((has_flag(flgs, TR_CALL_UNDEAD)) || (o_ptr->curse_flags & TRC_CALL_UNDEAD)) {
         info[i++] = _("それは死霊を呼び寄せる。", "It attracts undeads.");
     }
 
-    if ((have_flag(flgs, TR_COWARDICE)) || (o_ptr->curse_flags & TRC_COWARDICE)) {
+    if ((has_flag(flgs, TR_COWARDICE)) || (o_ptr->curse_flags & TRC_COWARDICE)) {
         info[i++] = _("それは恐怖感を引き起こす。", "It makes you subject to cowardice.");
     }
 
-    if ((have_flag(flgs, TR_TELEPORT)) || (o_ptr->curse_flags & TRC_TELEPORT)) {
+    if ((has_flag(flgs, TR_TELEPORT)) || (o_ptr->curse_flags & TRC_TELEPORT)) {
         info[i++] = _("それはランダムなテレポートを引き起こす。", "It induces random teleportation.");
     }
 
-    if ((have_flag(flgs, TR_LOW_MELEE)) || o_ptr->curse_flags & TRC_LOW_MELEE) {
+    if ((has_flag(flgs, TR_LOW_MELEE)) || o_ptr->curse_flags & TRC_LOW_MELEE) {
         info[i++] = _("それは攻撃を外しやすい。", "It causes you to miss blows.");
     }
 
-    if ((have_flag(flgs, TR_LOW_AC)) || (o_ptr->curse_flags & TRC_LOW_AC)) {
+    if ((has_flag(flgs, TR_LOW_AC)) || (o_ptr->curse_flags & TRC_LOW_AC)) {
         info[i++] = _("それは攻撃を受けやすい。", "It helps your enemies' blows.");
     }
 
-    if ((have_flag(flgs, TR_LOW_MAGIC)) || (o_ptr->curse_flags & TRC_LOW_MAGIC)) {
+    if ((has_flag(flgs, TR_LOW_MAGIC)) || (o_ptr->curse_flags & TRC_LOW_MAGIC)) {
         info[i++] = _("それは魔法を唱えにくくする。", "It encumbers you while spellcasting.");
     }
 
-    if ((have_flag(flgs, TR_FAST_DIGEST)) || (o_ptr->curse_flags & TRC_FAST_DIGEST)) {
+    if ((has_flag(flgs, TR_FAST_DIGEST)) || (o_ptr->curse_flags & TRC_FAST_DIGEST)) {
         info[i++] = _("それはあなたの新陳代謝を速くする。", "It speeds your metabolism.");
     }
 
-    if ((have_flag(flgs, TR_DRAIN_HP)) || (o_ptr->curse_flags & TRC_DRAIN_HP)) {
+    if ((has_flag(flgs, TR_DRAIN_HP)) || (o_ptr->curse_flags & TRC_DRAIN_HP)) {
         info[i++] = _("それはあなたの体力を吸い取る。", "It drains you.");
     }
 
-    if ((have_flag(flgs, TR_DRAIN_MANA)) || (o_ptr->curse_flags & TRC_DRAIN_MANA)) {
+    if ((has_flag(flgs, TR_DRAIN_MANA)) || (o_ptr->curse_flags & TRC_DRAIN_MANA)) {
         info[i++] = _("それはあなたの魔力を吸い取る。", "It drains your mana.");
     }
 
@@ -649,22 +667,22 @@ bool screen_object(player_type *player_ptr, object_type *o_ptr, BIT_FLAGS mode)
         }
     }
 
-    if (have_flag(flgs, TR_IGNORE_ACID) && have_flag(flgs, TR_IGNORE_ELEC) && have_flag(flgs, TR_IGNORE_FIRE) && have_flag(flgs, TR_IGNORE_COLD)) {
+    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)) {
         info[i++] = _("それは酸・電撃・火炎・冷気では傷つかない。", "It cannot be harmed by the elements.");
     } else {
-        if (have_flag(flgs, TR_IGNORE_ACID)) {
+        if (has_flag(flgs, TR_IGNORE_ACID)) {
             info[i++] = _("それは酸では傷つかない。", "It cannot be harmed by acid.");
         }
 
-        if (have_flag(flgs, TR_IGNORE_ELEC)) {
+        if (has_flag(flgs, TR_IGNORE_ELEC)) {
             info[i++] = _("それは電撃では傷つかない。", "It cannot be harmed by electricity.");
         }
 
-        if (have_flag(flgs, TR_IGNORE_FIRE)) {
+        if (has_flag(flgs, TR_IGNORE_FIRE)) {
             info[i++] = _("それは火炎では傷つかない。", "It cannot be harmed by fire.");
         }
 
-        if (have_flag(flgs, TR_IGNORE_COLD)) {
+        if (has_flag(flgs, TR_IGNORE_COLD)) {
             info[i++] = _("それは冷気では傷つかない。", "It cannot be harmed by cold.");
         }
     }
@@ -677,12 +695,12 @@ bool screen_object(player_type *player_ptr, object_type *o_ptr, BIT_FLAGS mode)
 
     screen_save();
     int wid, hgt;
-    Term_get_size(&wid, &hgt);
+    term_get_size(&wid, &hgt);
 
     if (!(mode & SCROBJ_FAKE_OBJECT))
-        object_desc(player_ptr, o_name, o_ptr, 0);
+        describe_flavor(player_ptr, o_name, o_ptr, 0);
     else
-        object_desc(player_ptr, o_name, o_ptr, (OD_NAME_ONLY | OD_STORE));
+        describe_flavor(player_ptr, o_name, o_ptr, (OD_NAME_ONLY | OD_STORE));
 
     prt(o_name, 0, 0);
     for (int k = 1; k < hgt; k++) {
@@ -693,7 +711,7 @@ bool screen_object(player_type *player_ptr, object_type *o_ptr, BIT_FLAGS mode)
         monster_race *r_ptr = &r_info[o_ptr->pval];
         int namelen = strlen(r_name + r_ptr->name);
         prt(format("%s: '", r_name + r_ptr->name), 1, 15);
-        Term_queue_bigchar(18 + namelen, 1, r_ptr->x_attr, r_ptr->x_char, 0, 0);
+        term_queue_bigchar(18 + namelen, 1, r_ptr->x_attr, r_ptr->x_char, 0, 0);
         prt("'", 1, (use_bigtile ? 20 : 19) + namelen);
     } else {
         prt(_("     アイテムの能力:", "     Item Attributes:"), 1, 15);