OSDN Git Service

[Refactor] #41156 Conflict 対策に have_flag() を has_flag() へ / Rename have_flag() to...
authordeskull <deskull@users.sourceforge.jp>
Thu, 14 Jan 2021 09:40:06 +0000 (18:40 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Thu, 14 Jan 2021 09:40:06 +0000 (18:40 +0900)
99 files changed:
src/action/movement-execution.c
src/action/open-close-execution.c
src/action/run-execution.c
src/action/tunnel-execution.c
src/artifact/artifact-info.c
src/artifact/random-art-characteristics.c
src/artifact/random-art-generator.c
src/artifact/random-art-misc.c
src/artifact/random-art-pval-investor.c
src/artifact/random-art-resistance.c
src/artifact/random-art-slay.c
src/cmd-action/cmd-move.c
src/cmd-action/cmd-open-close.c
src/cmd-action/cmd-others.c
src/cmd-action/cmd-pet.c
src/cmd-action/cmd-travel.c
src/cmd-action/cmd-tunnel.c
src/cmd-item/cmd-smith.c
src/cmd-item/cmd-throw.c
src/combat/shoot.c
src/combat/slaying.c
src/core/hp-mp-processor.c
src/dungeon/quest-monster-placer.c
src/effect/effect-feature.c
src/effect/effect-item.c
src/flavor/flavor-describer.c
src/flavor/flavor-util.c
src/flavor/named-item-describer.c
src/flavor/object-flavor.c
src/floor/cave-generator.c
src/floor/cave.c
src/floor/floor-events.c
src/floor/floor-leaver.c
src/floor/floor-streams.c
src/floor/object-allocator.c
src/floor/pattern-walk.c
src/floor/wild.c
src/grid/door.c
src/grid/feature.c
src/grid/grid.c
src/grid/trap.c
src/inventory/inventory-curse.c
src/knowledge/knowledge-inventory.c
src/load/load-v1-5-0.c
src/market/building-craft-fix.c
src/market/building-craft-weapon.c
src/mind/mind-archer.c
src/mind/mind-ninja.c
src/mind/mind-priest.c
src/mind/mind-samurai.c
src/monster-floor/monster-move.c
src/monster-floor/monster-object.c
src/monster/monster-info.c
src/monster/monster-util.c
src/mspell/mspell-lite.c
src/mutation/mutation-techniques.c
src/object-activation/activation-breath.c
src/object-enchant/apply-magic-accessory.c
src/object-enchant/apply-magic.c
src/object-enchant/object-curse.c
src/object-hook/hook-magic.c
src/object-hook/hook-weapon.c
src/object/object-broken.c
src/object/object-info.c
src/object/object-value-calc.c
src/object/object-value.c
src/object/warning.c
src/perception/identification.c
src/player-attack/blood-sucking-processor.c
src/player-attack/player-attack.c
src/player-info/base-status-info.c
src/player-info/weapon-effect-info.c
src/player/player-damage.c
src/player/player-move.c
src/player/player-status-flags.c
src/player/player-status.c
src/player/race-resistances.c
src/player/selfinfo.c
src/realm/realm-hex.c
src/realm/realm-hissatsu.c
src/room/rooms-city.c
src/specific-object/death-scythe.c
src/specific-object/torch.c
src/spell-kind/earthquake.c
src/spell-kind/spells-floor.c
src/spell-kind/spells-lite.c
src/spell-kind/spells-teleport.c
src/spell-realm/spells-chaos.c
src/store/service-checker.c
src/target/target-describer.c
src/target/target-preparation.c
src/util/bit-flags-calculator.h
src/view/display-characteristic.c
src/view/display-map.c
src/view/display-player-stat-info.c
src/view/status-first-page.c
src/wizard/artifact-analyzer.c
src/wizard/wizard-special-process.c
src/world/world-turn-processor.c

index 444a167..78d71da 100644 (file)
@@ -46,9 +46,9 @@ static bool boundary_floor(grid_type *g_ptr, feature_type *f_ptr, feature_type *
 {
     bool is_boundary_floor = g_ptr->mimic > 0;
     is_boundary_floor &= permanent_wall(f_ptr);
-    is_boundary_floor &= have_flag((mimic_f_ptr)->flags, FF_MOVE) || have_flag((mimic_f_ptr)->flags, FF_CAN_FLY);
-    is_boundary_floor &= have_flag((mimic_f_ptr)->flags, FF_PROJECT);
-    is_boundary_floor &= !have_flag((mimic_f_ptr)->flags, FF_OPEN);
+    is_boundary_floor &= has_flag((mimic_f_ptr)->flags, FF_MOVE) || has_flag((mimic_f_ptr)->flags, FF_CAN_FLY);
+    is_boundary_floor &= has_flag((mimic_f_ptr)->flags, FF_PROJECT);
+    is_boundary_floor &= !has_flag((mimic_f_ptr)->flags, FF_OPEN);
     return is_boundary_floor;
 }
 
@@ -140,8 +140,8 @@ void exe_movement(player_type *creature_ptr, DIRECTION dir, bool do_pickup, bool
         stormbringer = TRUE;
 
     feature_type *f_ptr = &f_info[g_ptr->feat];
-    bool p_can_kill_walls = creature_ptr->kill_wall && have_flag(f_ptr->flags, FF_HURT_DISI) && (!p_can_enter || !have_flag(f_ptr->flags, FF_LOS))
-        && !have_flag(f_ptr->flags, FF_PERMANENT);
+    bool p_can_kill_walls = creature_ptr->kill_wall && has_flag(f_ptr->flags, FF_HURT_DISI) && (!p_can_enter || !has_flag(f_ptr->flags, FF_LOS))
+        && !has_flag(f_ptr->flags, FF_PERMANENT);
     GAME_TEXT m_name[MAX_NLEN];
     bool can_move = TRUE;
     bool do_past = FALSE;
@@ -193,22 +193,22 @@ void exe_movement(player_type *creature_ptr, DIRECTION dir, bool do_pickup, bool
         } else if (creature_ptr->riding_ryoute) {
             can_move = FALSE;
             disturb(creature_ptr, FALSE, TRUE);
-        } else if (have_flag(f_ptr->flags, FF_CAN_FLY) && (riding_r_ptr->flags7 & RF7_CAN_FLY)) {
+        } else if (has_flag(f_ptr->flags, FF_CAN_FLY) && (riding_r_ptr->flags7 & RF7_CAN_FLY)) {
             /* Allow moving */
-        } else if (have_flag(f_ptr->flags, FF_CAN_SWIM) && (riding_r_ptr->flags7 & RF7_CAN_SWIM)) {
+        } else if (has_flag(f_ptr->flags, FF_CAN_SWIM) && (riding_r_ptr->flags7 & RF7_CAN_SWIM)) {
             /* Allow moving */
-        } else if (have_flag(f_ptr->flags, FF_WATER) && !(riding_r_ptr->flags7 & RF7_AQUATIC)
-            && (have_flag(f_ptr->flags, FF_DEEP) || (riding_r_ptr->flags2 & RF2_AURA_FIRE))) {
+        } else if (has_flag(f_ptr->flags, FF_WATER) && !(riding_r_ptr->flags7 & RF7_AQUATIC)
+            && (has_flag(f_ptr->flags, FF_DEEP) || (riding_r_ptr->flags2 & RF2_AURA_FIRE))) {
             msg_format(_("%sの上に行けない。", "Can't swim."), f_name + f_info[get_feat_mimic(g_ptr)].name);
             free_turn(creature_ptr);
             can_move = FALSE;
             disturb(creature_ptr, FALSE, TRUE);
-        } else if (!have_flag(f_ptr->flags, FF_WATER) && (riding_r_ptr->flags7 & RF7_AQUATIC)) {
+        } else if (!has_flag(f_ptr->flags, FF_WATER) && (riding_r_ptr->flags7 & RF7_AQUATIC)) {
             msg_format(_("%sから上がれない。", "Can't land."), f_name + f_info[get_feat_mimic(&floor_ptr->grid_array[creature_ptr->y][creature_ptr->x])].name);
             free_turn(creature_ptr);
             can_move = FALSE;
             disturb(creature_ptr, FALSE, TRUE);
-        } else if (have_flag(f_ptr->flags, FF_LAVA) && !(riding_r_ptr->flagsr & RFR_EFF_IM_FIRE_MASK)) {
+        } else if (has_flag(f_ptr->flags, FF_LAVA) && !(riding_r_ptr->flagsr & RFR_EFF_IM_FIRE_MASK)) {
             msg_format(_("%sの上に行けない。", "Too hot to go through."), f_name + f_info[get_feat_mimic(g_ptr)].name);
             free_turn(creature_ptr);
             can_move = FALSE;
@@ -225,15 +225,15 @@ void exe_movement(player_type *creature_ptr, DIRECTION dir, bool do_pickup, bool
     }
 
     if (!can_move) {
-    } else if (!have_flag(f_ptr->flags, FF_MOVE) && have_flag(f_ptr->flags, FF_CAN_FLY) && !creature_ptr->levitation) {
+    } else if (!has_flag(f_ptr->flags, FF_MOVE) && has_flag(f_ptr->flags, FF_CAN_FLY) && !creature_ptr->levitation) {
         msg_format(_("空を飛ばないと%sの上には行けない。", "You need to fly to go through the %s."), f_name + f_info[get_feat_mimic(g_ptr)].name);
         free_turn(creature_ptr);
         creature_ptr->running = 0;
         can_move = FALSE;
-    } else if (have_flag(f_ptr->flags, FF_TREE) && !p_can_kill_walls) {
+    } else if (has_flag(f_ptr->flags, FF_TREE) && !p_can_kill_walls) {
         if ((creature_ptr->pclass != CLASS_RANGER) && !creature_ptr->levitation && (!creature_ptr->riding || !(riding_r_ptr->flags8 & RF8_WILD_WOOD)))
             creature_ptr->energy_use *= 2;
-    } else if ((do_pickup != easy_disarm) && have_flag(f_ptr->flags, FF_DISARM) && !g_ptr->mimic) {
+    } else if ((do_pickup != easy_disarm) && has_flag(f_ptr->flags, FF_DISARM) && !g_ptr->mimic) {
         if (!trap_can_be_ignored(creature_ptr, g_ptr->feat)) {
             (void)exe_disarm(creature_ptr, y, x, dir);
             return;
index 1926091..a02fff6 100644 (file)
@@ -42,7 +42,7 @@ bool exe_open(player_type *creature_ptr, POSITION y, POSITION x)
     feature_type *f_ptr = &f_info[g_ptr->feat];
     bool more = FALSE;
     take_turn(creature_ptr, 100);
-    if (!have_flag(f_ptr->flags, FF_OPEN)) {
+    if (!has_flag(f_ptr->flags, FF_OPEN)) {
         msg_format(_("%sはがっちりと閉じられているようだ。", "The %s appears to be stuck."), f_name + f_info[get_feat_mimic(g_ptr)].name);
         return more;
     }
@@ -98,11 +98,11 @@ bool exe_close(player_type *creature_ptr, POSITION y, POSITION x)
     FEAT_IDX old_feat = g_ptr->feat;
     bool more = FALSE;
     take_turn(creature_ptr, 100);
-    if (!have_flag(f_info[old_feat].flags, FF_CLOSE))
+    if (!has_flag(f_info[old_feat].flags, FF_CLOSE))
         return more;
 
     s16b closed_feat = feat_state(creature_ptr, old_feat, FF_CLOSE);
-    if ((g_ptr->o_idx || (g_ptr->info & CAVE_OBJECT)) && (closed_feat != old_feat) && !have_flag(f_info[closed_feat].flags, FF_DROP)) {
+    if ((g_ptr->o_idx || (g_ptr->info & CAVE_OBJECT)) && (closed_feat != old_feat) && !has_flag(f_info[closed_feat].flags, FF_DROP)) {
         msg_print(_("何かがつっかえて閉まらない。", "Something prevents it from closing."));
     } else {
         cave_alter_feat(creature_ptr, y, x, FF_CLOSE);
@@ -138,7 +138,7 @@ bool easy_open_door(player_type *creature_ptr, POSITION y, POSITION x)
     if (!is_closed_door(creature_ptr, g_ptr->feat))
         return FALSE;
 
-    if (!have_flag(f_ptr->flags, FF_OPEN)) {
+    if (!has_flag(f_ptr->flags, FF_OPEN)) {
         msg_format(_("%sはがっちりと閉じられているようだ。", "The %s appears to be stuck."), f_name + f_info[get_feat_mimic(g_ptr)].name);
     } else if (f_ptr->power) {
         i = creature_ptr->skill_dis;
@@ -313,8 +313,8 @@ bool exe_bash(player_type *creature_ptr, POSITION y, POSITION x, DIRECTION dir)
 
     if (randint0(100) < temp) {
         msg_format(_("%sを壊した!", "The %s crashes open!"), name);
-        sound(have_flag(f_ptr->flags, FF_GLASS) ? SOUND_GLASS : SOUND_OPENDOOR);
-        if ((randint0(100) < 50) || (feat_state(creature_ptr, g_ptr->feat, FF_OPEN) == g_ptr->feat) || have_flag(f_ptr->flags, FF_GLASS)) {
+        sound(has_flag(f_ptr->flags, FF_GLASS) ? SOUND_GLASS : SOUND_OPENDOOR);
+        if ((randint0(100) < 50) || (feat_state(creature_ptr, g_ptr->feat, FF_OPEN) == g_ptr->feat) || has_flag(f_ptr->flags, FF_GLASS)) {
             cave_alter_feat(creature_ptr, y, x, FF_BASH);
         } else {
             cave_alter_feat(creature_ptr, y, x, FF_OPEN);
index 26e226c..6d214bf 100644 (file)
@@ -59,13 +59,13 @@ static bool see_wall(player_type *creature_ptr, DIRECTION dir, POSITION y, POSIT
     s16b feat = get_feat_mimic(g_ptr);
     feature_type *f_ptr = &f_info[feat];
     if (!player_can_enter(creature_ptr, feat, 0))
-        return !have_flag(f_ptr->flags, FF_DOOR);
+        return !has_flag(f_ptr->flags, FF_DOOR);
 
-    if (have_flag(f_ptr->flags, FF_AVOID_RUN) && !ignore_avoid_run)
+    if (has_flag(f_ptr->flags, FF_AVOID_RUN) && !ignore_avoid_run)
         return TRUE;
 
-    if (!have_flag(f_ptr->flags, FF_MOVE) && !have_flag(f_ptr->flags, FF_CAN_FLY))
-        return !have_flag(f_ptr->flags, FF_DOOR);
+    if (!has_flag(f_ptr->flags, FF_MOVE) && !has_flag(f_ptr->flags, FF_CAN_FLY))
+        return !has_flag(f_ptr->flags, FF_DOOR);
 
     return FALSE;
 }
@@ -225,15 +225,15 @@ static bool run_test(player_type *creature_ptr)
 
         bool inv = TRUE;
         if (g_ptr->info & (CAVE_MARK)) {
-            bool notice = have_flag(f_ptr->flags, FF_NOTICE);
-            if (notice && have_flag(f_ptr->flags, FF_MOVE)) {
-                if (find_ignore_doors && have_flag(f_ptr->flags, FF_DOOR) && have_flag(f_ptr->flags, FF_CLOSE)) {
+            bool notice = has_flag(f_ptr->flags, FF_NOTICE);
+            if (notice && has_flag(f_ptr->flags, FF_MOVE)) {
+                if (find_ignore_doors && has_flag(f_ptr->flags, FF_DOOR) && has_flag(f_ptr->flags, FF_CLOSE)) {
                     notice = FALSE;
-                } else if (find_ignore_stairs && have_flag(f_ptr->flags, FF_STAIRS)) {
+                } else if (find_ignore_stairs && has_flag(f_ptr->flags, FF_STAIRS)) {
                     notice = FALSE;
-                } else if (have_flag(f_ptr->flags, FF_LAVA) && (creature_ptr->immune_fire || is_invuln(creature_ptr))) {
+                } else if (has_flag(f_ptr->flags, FF_LAVA) && (creature_ptr->immune_fire || is_invuln(creature_ptr))) {
                     notice = FALSE;
-                } else if (have_flag(f_ptr->flags, FF_WATER) && have_flag(f_ptr->flags, FF_DEEP)
+                } else if (has_flag(f_ptr->flags, FF_WATER) && has_flag(f_ptr->flags, FF_DEEP)
                     && (creature_ptr->levitation || creature_ptr->can_swim || (creature_ptr->total_weight <= weight_limit(creature_ptr)))) {
                     notice = FALSE;
                 }
index 6664b5a..1cb36e1 100644 (file)
@@ -62,12 +62,12 @@ bool exe_tunnel(player_type *creature_ptr, POSITION y, POSITION x)
     mimic_f_ptr = &f_info[get_feat_mimic(g_ptr)];
     name = f_name + mimic_f_ptr->name;
     sound(SOUND_DIG);
-    if (have_flag(f_ptr->flags, FF_PERMANENT)) {
-        if (have_flag(mimic_f_ptr->flags, FF_PERMANENT))
+    if (has_flag(f_ptr->flags, FF_PERMANENT)) {
+        if (has_flag(mimic_f_ptr->flags, FF_PERMANENT))
             msg_print(_("この岩は硬すぎて掘れないようだ。", "This seems to be permanent rock."));
         else
             msg_print(_("そこは掘れない!", "You can't tunnel through that!"));
-    } else if (have_flag(f_ptr->flags, FF_CAN_DIG)) {
+    } else if (has_flag(f_ptr->flags, FF_CAN_DIG)) {
         if (creature_ptr->skill_dig > randint0(20 * power)) {
             msg_format(_("%sをくずした。", "You have removed the %s."), name);
             cave_alter_feat(creature_ptr, y, x, FF_TUNNEL);
@@ -77,7 +77,7 @@ bool exe_tunnel(player_type *creature_ptr, POSITION y, POSITION x)
             more = TRUE;
         }
     } else {
-        bool tree = have_flag(mimic_f_ptr->flags, FF_TREE);
+        bool tree = has_flag(mimic_f_ptr->flags, FF_TREE);
         if (creature_ptr->skill_dig > power + randint0(40 * power)) {
             if (tree)
                 msg_format(_("%sを切り払った。", "You have cleared away the %s."), name);
@@ -86,7 +86,7 @@ bool exe_tunnel(player_type *creature_ptr, POSITION y, POSITION x)
                 creature_ptr->update |= (PU_FLOW);
             }
 
-            if (have_flag(f_ptr->flags, FF_GLASS))
+            if (has_flag(f_ptr->flags, FF_GLASS))
                 sound(SOUND_GLASS);
 
             cave_alter_feat(creature_ptr, y, x, FF_TUNNEL);
index 635d84f..2f8ac71 100644 (file)
@@ -34,13 +34,13 @@ int activation_index(player_type *player_ptr, object_type *o_ptr)
         }
     }
 
-    if (object_is_fixed_artifact(o_ptr) && have_flag(a_info[o_ptr->name1].flags, TR_ACTIVATE))
+    if (object_is_fixed_artifact(o_ptr) && has_flag(a_info[o_ptr->name1].flags, TR_ACTIVATE))
         return a_info[o_ptr->name1].act_idx;
 
-    if (object_is_ego(o_ptr) && have_flag(e_info[o_ptr->name2].flags, TR_ACTIVATE))
+    if (object_is_ego(o_ptr) && has_flag(e_info[o_ptr->name2].flags, TR_ACTIVATE))
         return e_info[o_ptr->name2].act_idx;
 
-    if (!object_is_random_artifact(o_ptr) && have_flag(k_info[o_ptr->k_idx].flags, TR_ACTIVATE))
+    if (!object_is_random_artifact(o_ptr) && has_flag(k_info[o_ptr->k_idx].flags, TR_ACTIVATE))
         return k_info[o_ptr->k_idx].act_idx;
 
     return o_ptr->xtra2;
index 8492127..72038c8 100644 (file)
@@ -160,19 +160,19 @@ static HIT_POINT calc_arm_avgdamage(player_type *player_ptr, object_type *o_ptr)
     HIT_POINT base, forced, vorpal;
     HIT_POINT s_evil = forced = vorpal = 0;
     HIT_POINT dam = base = (o_ptr->dd * o_ptr->ds + o_ptr->dd) / 2;
-    if (have_flag(flgs, TR_KILL_EVIL)) {
+    if (has_flag(flgs, TR_KILL_EVIL)) {
         dam = s_evil = dam * 7 / 2;
-    } else if (!have_flag(flgs, TR_KILL_EVIL) && have_flag(flgs, TR_SLAY_EVIL)) {
+    } else if (!has_flag(flgs, TR_KILL_EVIL) && has_flag(flgs, TR_SLAY_EVIL)) {
         dam = s_evil = dam * 2;
     } else
         s_evil = dam;
 
-    if (have_flag(flgs, TR_FORCE_WEAPON)) {
+    if (has_flag(flgs, TR_FORCE_WEAPON)) {
         dam = forced = dam * 3 / 2 + (o_ptr->dd * o_ptr->ds + o_ptr->dd);
     } else
         forced = dam;
 
-    if (have_flag(flgs, TR_VORPAL)) {
+    if (has_flag(flgs, TR_VORPAL)) {
         dam = vorpal = dam * 11 / 9;
     } else
         vorpal = dam;
@@ -186,16 +186,16 @@ bool has_extreme_damage_rate(player_type *player_ptr, object_type *o_ptr)
 {
     BIT_FLAGS flgs[TR_FLAG_SIZE];
     object_flags(player_ptr, o_ptr, flgs);
-    if (have_flag(flgs, TR_VAMPIRIC)) {
-        if (have_flag(flgs, TR_BLOWS) && (o_ptr->pval == 1) && (calc_arm_avgdamage(player_ptr, o_ptr) > 52)) {
+    if (has_flag(flgs, TR_VAMPIRIC)) {
+        if (has_flag(flgs, TR_BLOWS) && (o_ptr->pval == 1) && (calc_arm_avgdamage(player_ptr, o_ptr) > 52)) {
             return TRUE;
         }
 
-        if (have_flag(flgs, TR_BLOWS) && (o_ptr->pval == 2) && (calc_arm_avgdamage(player_ptr, o_ptr) > 43)) {
+        if (has_flag(flgs, TR_BLOWS) && (o_ptr->pval == 2) && (calc_arm_avgdamage(player_ptr, o_ptr) > 43)) {
             return TRUE;
         }
 
-        if (have_flag(flgs, TR_BLOWS) && (o_ptr->pval == 3) && (calc_arm_avgdamage(player_ptr, o_ptr) > 33)) {
+        if (has_flag(flgs, TR_BLOWS) && (o_ptr->pval == 3) && (calc_arm_avgdamage(player_ptr, o_ptr) > 33)) {
             return TRUE;
         }
 
@@ -206,15 +206,15 @@ bool has_extreme_damage_rate(player_type *player_ptr, object_type *o_ptr)
         return FALSE;
     }
 
-    if (have_flag(flgs, TR_BLOWS) && (o_ptr->pval == 1) && (calc_arm_avgdamage(player_ptr, o_ptr) > 65)) {
+    if (has_flag(flgs, TR_BLOWS) && (o_ptr->pval == 1) && (calc_arm_avgdamage(player_ptr, o_ptr) > 65)) {
         return TRUE;
     }
 
-    if (have_flag(flgs, TR_BLOWS) && (o_ptr->pval == 2) && (calc_arm_avgdamage(player_ptr, o_ptr) > 52)) {
+    if (has_flag(flgs, TR_BLOWS) && (o_ptr->pval == 2) && (calc_arm_avgdamage(player_ptr, o_ptr) > 52)) {
         return TRUE;
     }
 
-    if (have_flag(flgs, TR_BLOWS) && (o_ptr->pval == 3) && (calc_arm_avgdamage(player_ptr, o_ptr) > 40)) {
+    if (has_flag(flgs, TR_BLOWS) && (o_ptr->pval == 3) && (calc_arm_avgdamage(player_ptr, o_ptr) > 40)) {
         return TRUE;
     }
 
index a17423b..d8a1f21 100644 (file)
@@ -43,7 +43,7 @@ static bool weakening_artifact(player_type *player_ptr, object_type *o_ptr)
     BIT_FLAGS flgs[TR_FLAG_SIZE];
     object_flags(player_ptr, o_ptr, flgs);
 
-    if (have_flag(flgs, TR_KILL_EVIL)) {
+    if (has_flag(flgs, TR_KILL_EVIL)) {
         remove_flag(o_ptr->art_flags, TR_KILL_EVIL);
         add_flag(o_ptr->art_flags, TR_SLAY_EVIL);
         return TRUE;
@@ -226,7 +226,7 @@ static void invest_powers(player_type *player_ptr, object_type *o_ptr, int *powe
 
 static void strengthen_pval(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_BLOWS)) {
+    if (has_flag(o_ptr->art_flags, TR_BLOWS)) {
         o_ptr->pval = randint1(2);
         if ((o_ptr->tval == TV_SWORD) && (o_ptr->sval == SV_HAYABUSA))
             o_ptr->pval++;
@@ -258,7 +258,7 @@ static void invest_positive_modified_value(player_type *player_ptr, object_type
 
     o_ptr->to_h += randint1(o_ptr->to_h > 19 ? 1 : 20 - o_ptr->to_h);
     o_ptr->to_d += randint1(o_ptr->to_d > 19 ? 1 : 20 - o_ptr->to_d);
-    if ((have_flag(o_ptr->art_flags, TR_WIS)) && (o_ptr->pval > 0))
+    if ((has_flag(o_ptr->art_flags, TR_WIS)) && (o_ptr->pval > 0))
         add_flag(o_ptr->art_flags, TR_BLESSED);
 }
 
index ee35cb1..5339bed 100644 (file)
@@ -7,7 +7,7 @@
 
 static bool invest_misc_ranger(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_SUST_CON))
+    if (has_flag(o_ptr->art_flags, TR_SUST_CON))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_SUST_CON);
@@ -16,7 +16,7 @@ static bool invest_misc_ranger(object_type *o_ptr)
 
 static bool invest_misc_strength(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_SUST_STR))
+    if (has_flag(o_ptr->art_flags, TR_SUST_STR))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_SUST_STR);
@@ -25,7 +25,7 @@ static bool invest_misc_strength(object_type *o_ptr)
 
 static bool invest_misc_wisdom(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_SUST_WIS))
+    if (has_flag(o_ptr->art_flags, TR_SUST_WIS))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_SUST_WIS);
@@ -34,7 +34,7 @@ static bool invest_misc_wisdom(object_type *o_ptr)
 
 static bool invest_misc_intelligence(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_SUST_INT))
+    if (has_flag(o_ptr->art_flags, TR_SUST_INT))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_SUST_INT);
@@ -43,7 +43,7 @@ static bool invest_misc_intelligence(object_type *o_ptr)
 
 static bool invest_misc_dexterity(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_SUST_DEX))
+    if (has_flag(o_ptr->art_flags, TR_SUST_DEX))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_SUST_DEX);
@@ -52,7 +52,7 @@ static bool invest_misc_dexterity(object_type *o_ptr)
 
 static bool invest_misc_constitution(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_SUST_CON))
+    if (has_flag(o_ptr->art_flags, TR_SUST_CON))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_SUST_CON);
@@ -61,7 +61,7 @@ static bool invest_misc_constitution(object_type *o_ptr)
 
 static bool invest_misc_charisma(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_SUST_CHR))
+    if (has_flag(o_ptr->art_flags, TR_SUST_CHR))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_SUST_CHR);
@@ -70,7 +70,7 @@ static bool invest_misc_charisma(object_type *o_ptr)
 
 static bool invest_misc_chaos(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_TELEPORT))
+    if (has_flag(o_ptr->art_flags, TR_TELEPORT))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_TELEPORT);
@@ -102,7 +102,7 @@ static bool switch_misc_bias(object_type *o_ptr)
     case BIAS_CHAOS:
         return invest_misc_chaos(o_ptr);
     case BIAS_FIRE:
-        if (!(have_flag(o_ptr->art_flags, TR_LITE_1)))
+        if (!(has_flag(o_ptr->art_flags, TR_LITE_1)))
             add_flag(o_ptr->art_flags, TR_LITE_1);
 
         return FALSE;
index 113be3d..2146fe5 100644 (file)
@@ -14,7 +14,7 @@
 
 static bool random_art_bias_strength(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_STR))
+    if (has_flag(o_ptr->art_flags, TR_STR))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_STR);
@@ -23,7 +23,7 @@ static bool random_art_bias_strength(object_type *o_ptr)
 
 static bool random_art_bias_intelligence(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_INT))
+    if (has_flag(o_ptr->art_flags, TR_INT))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_INT);
@@ -32,7 +32,7 @@ static bool random_art_bias_intelligence(object_type *o_ptr)
 
 static bool random_art_bias_wisdom(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_WIS))
+    if (has_flag(o_ptr->art_flags, TR_WIS))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_WIS);
@@ -41,7 +41,7 @@ static bool random_art_bias_wisdom(object_type *o_ptr)
 
 static bool random_art_bias_dexterity(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_DEX))
+    if (has_flag(o_ptr->art_flags, TR_DEX))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_DEX);
@@ -50,7 +50,7 @@ static bool random_art_bias_dexterity(object_type *o_ptr)
 
 static bool random_art_bias_constitution(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_CON))
+    if (has_flag(o_ptr->art_flags, TR_CON))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_CON);
@@ -59,7 +59,7 @@ static bool random_art_bias_constitution(object_type *o_ptr)
 
 static bool random_art_bias_charisma(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_CHR))
+    if (has_flag(o_ptr->art_flags, TR_CHR))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_CHR);
@@ -68,7 +68,7 @@ static bool random_art_bias_charisma(object_type *o_ptr)
 
 static bool random_art_bias_magic_mastery(object_type *o_ptr)
 {
-    if ((o_ptr->tval != TV_GLOVES) || have_flag(o_ptr->art_flags, TR_MAGIC_MASTERY))
+    if ((o_ptr->tval != TV_GLOVES) || has_flag(o_ptr->art_flags, TR_MAGIC_MASTERY))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_MAGIC_MASTERY);
@@ -77,7 +77,7 @@ static bool random_art_bias_magic_mastery(object_type *o_ptr)
 
 static bool random_art_bias_stealth(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_STEALTH))
+    if (has_flag(o_ptr->art_flags, TR_STEALTH))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_STEALTH);
@@ -86,7 +86,7 @@ static bool random_art_bias_stealth(object_type *o_ptr)
 
 static bool random_art_bias_search(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_SEARCH))
+    if (has_flag(o_ptr->art_flags, TR_SEARCH))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_SEARCH);
@@ -125,7 +125,7 @@ static bool switch_random_art_bias(object_type *o_ptr)
 static bool random_art_bias_decrease_mana(object_type *o_ptr)
 {
     if (((o_ptr->artifact_bias != BIAS_MAGE) && (o_ptr->artifact_bias != BIAS_PRIESTLY)) || (o_ptr->tval != TV_SOFT_ARMOR) || (o_ptr->sval != SV_ROBE)
-        || have_flag(o_ptr->art_flags, TR_DEC_MANA) || !one_in_(3))
+        || has_flag(o_ptr->art_flags, TR_DEC_MANA) || !one_in_(3))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_DEC_MANA);
index 503adae..591b966 100644 (file)
@@ -6,7 +6,7 @@
 
 static bool random_art_resistance_acid(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_RES_ACID))
+    if (has_flag(o_ptr->art_flags, TR_RES_ACID))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_RES_ACID);
@@ -15,7 +15,7 @@ static bool random_art_resistance_acid(object_type *o_ptr)
 
 static bool random_art_immunity_acid(object_type *o_ptr)
 {
-    if (!one_in_(BIAS_LUCK) || have_flag(o_ptr->art_flags, TR_IM_ACID))
+    if (!one_in_(BIAS_LUCK) || has_flag(o_ptr->art_flags, TR_IM_ACID))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_IM_ACID);
@@ -30,7 +30,7 @@ static bool random_art_immunity_acid(object_type *o_ptr)
 
 static bool random_art_resistance_elec(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_RES_ELEC))
+    if (has_flag(o_ptr->art_flags, TR_RES_ELEC))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_RES_ELEC);
@@ -39,7 +39,7 @@ static bool random_art_resistance_elec(object_type *o_ptr)
 
 static bool random_art_aura_elec(object_type *o_ptr)
 {
-    if ((o_ptr->tval < TV_CLOAK) || (o_ptr->tval > TV_HARD_ARMOR) || have_flag(o_ptr->art_flags, TR_SH_ELEC))
+    if ((o_ptr->tval < TV_CLOAK) || (o_ptr->tval > TV_HARD_ARMOR) || has_flag(o_ptr->art_flags, TR_SH_ELEC))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_SH_ELEC);
@@ -48,7 +48,7 @@ static bool random_art_aura_elec(object_type *o_ptr)
 
 static bool random_art_immunity_elec(object_type *o_ptr)
 {
-    if (!one_in_(BIAS_LUCK) || have_flag(o_ptr->art_flags, TR_IM_ELEC))
+    if (!one_in_(BIAS_LUCK) || has_flag(o_ptr->art_flags, TR_IM_ELEC))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_IM_ELEC);
@@ -63,7 +63,7 @@ static bool random_art_immunity_elec(object_type *o_ptr)
 
 static bool random_art_resistance_fire(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_RES_FIRE))
+    if (has_flag(o_ptr->art_flags, TR_RES_FIRE))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_RES_FIRE);
@@ -72,7 +72,7 @@ static bool random_art_resistance_fire(object_type *o_ptr)
 
 static bool random_art_aura_fire(object_type *o_ptr)
 {
-    if ((o_ptr->tval < TV_CLOAK) || (o_ptr->tval > TV_HARD_ARMOR) || have_flag(o_ptr->art_flags, TR_SH_FIRE))
+    if ((o_ptr->tval < TV_CLOAK) || (o_ptr->tval > TV_HARD_ARMOR) || has_flag(o_ptr->art_flags, TR_SH_FIRE))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_SH_FIRE);
@@ -81,7 +81,7 @@ static bool random_art_aura_fire(object_type *o_ptr)
 
 static bool random_art_immunity_fire(object_type *o_ptr)
 {
-    if (!one_in_(BIAS_LUCK) || have_flag(o_ptr->art_flags, TR_IM_FIRE))
+    if (!one_in_(BIAS_LUCK) || has_flag(o_ptr->art_flags, TR_IM_FIRE))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_IM_FIRE);
@@ -96,7 +96,7 @@ static bool random_art_immunity_fire(object_type *o_ptr)
 
 static bool random_art_resistance_cold(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_RES_COLD))
+    if (has_flag(o_ptr->art_flags, TR_RES_COLD))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_RES_COLD);
@@ -105,7 +105,7 @@ static bool random_art_resistance_cold(object_type *o_ptr)
 
 static bool random_art_aura_cold(object_type *o_ptr)
 {
-    if ((o_ptr->tval < TV_CLOAK) || (o_ptr->tval > TV_HARD_ARMOR) || have_flag(o_ptr->art_flags, TR_SH_COLD))
+    if ((o_ptr->tval < TV_CLOAK) || (o_ptr->tval > TV_HARD_ARMOR) || has_flag(o_ptr->art_flags, TR_SH_COLD))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_SH_COLD);
@@ -114,7 +114,7 @@ static bool random_art_aura_cold(object_type *o_ptr)
 
 static bool random_art_immunity_cold(object_type *o_ptr)
 {
-    if (!one_in_(BIAS_LUCK) || have_flag(o_ptr->art_flags, TR_IM_COLD))
+    if (!one_in_(BIAS_LUCK) || has_flag(o_ptr->art_flags, TR_IM_COLD))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_IM_COLD);
@@ -129,7 +129,7 @@ static bool random_art_immunity_cold(object_type *o_ptr)
 
 static bool random_art_resistance_pois(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_RES_POIS))
+    if (has_flag(o_ptr->art_flags, TR_RES_POIS))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_RES_POIS);
@@ -138,7 +138,7 @@ static bool random_art_resistance_pois(object_type *o_ptr)
 
 static bool random_art_resistance_fear(object_type *o_ptr)
 {
-    if (one_in_(3) || have_flag(o_ptr->art_flags, TR_RES_FEAR))
+    if (one_in_(3) || has_flag(o_ptr->art_flags, TR_RES_FEAR))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_RES_FEAR);
@@ -147,7 +147,7 @@ static bool random_art_resistance_fear(object_type *o_ptr)
 
 static bool random_art_resistance_no_magic(object_type *o_ptr)
 {
-    if (!one_in_(3) || have_flag(o_ptr->art_flags, TR_NO_MAGIC))
+    if (!one_in_(3) || has_flag(o_ptr->art_flags, TR_NO_MAGIC))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_NO_MAGIC);
@@ -156,7 +156,7 @@ static bool random_art_resistance_no_magic(object_type *o_ptr)
 
 static bool random_art_resistance_nether(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_RES_NETHER))
+    if (has_flag(o_ptr->art_flags, TR_RES_NETHER))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_RES_NETHER);
@@ -165,7 +165,7 @@ static bool random_art_resistance_nether(object_type *o_ptr)
 
 static bool random_art_resistance_dark(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_RES_DARK))
+    if (has_flag(o_ptr->art_flags, TR_RES_DARK))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_RES_DARK);
@@ -174,7 +174,7 @@ static bool random_art_resistance_dark(object_type *o_ptr)
 
 static bool random_art_resistance_chaos(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_RES_CHAOS))
+    if (has_flag(o_ptr->art_flags, TR_RES_CHAOS))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_RES_CHAOS);
@@ -183,7 +183,7 @@ static bool random_art_resistance_chaos(object_type *o_ptr)
 
 static bool random_art_resistance_confusion(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_RES_CONF))
+    if (has_flag(o_ptr->art_flags, TR_RES_CONF))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_RES_CONF);
@@ -192,7 +192,7 @@ static bool random_art_resistance_confusion(object_type *o_ptr)
 
 static bool random_art_resistance_disenchant(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_RES_DISEN))
+    if (has_flag(o_ptr->art_flags, TR_RES_DISEN))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_RES_DISEN);
index efbc49f..eecf0c4 100644 (file)
@@ -36,7 +36,7 @@ static bool random_art_slay_bow(object_type *o_ptr)
 
 static bool random_art_slay_chaos(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_CHAOTIC))
+    if (has_flag(o_ptr->art_flags, TR_CHAOTIC))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_CHAOTIC);
@@ -45,7 +45,7 @@ static bool random_art_slay_chaos(object_type *o_ptr)
 
 static bool random_art_slay_vampiric(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_VAMPIRIC))
+    if (has_flag(o_ptr->art_flags, TR_VAMPIRIC))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_VAMPIRIC);
@@ -54,7 +54,7 @@ static bool random_art_slay_vampiric(object_type *o_ptr)
 
 static bool random_art_slay_brand_acid(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_BRAND_ACID))
+    if (has_flag(o_ptr->art_flags, TR_BRAND_ACID))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_BRAND_ACID);
@@ -63,7 +63,7 @@ static bool random_art_slay_brand_acid(object_type *o_ptr)
 
 static bool random_art_slay_brand_elec(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_BRAND_ELEC))
+    if (has_flag(o_ptr->art_flags, TR_BRAND_ELEC))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_BRAND_ELEC);
@@ -72,7 +72,7 @@ static bool random_art_slay_brand_elec(object_type *o_ptr)
 
 static bool random_art_slay_brand_fire(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_BRAND_FIRE))
+    if (has_flag(o_ptr->art_flags, TR_BRAND_FIRE))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_BRAND_FIRE);
@@ -81,7 +81,7 @@ static bool random_art_slay_brand_fire(object_type *o_ptr)
 
 static bool random_art_slay_brand_cold(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_BRAND_COLD))
+    if (has_flag(o_ptr->art_flags, TR_BRAND_COLD))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_BRAND_COLD);
@@ -90,7 +90,7 @@ static bool random_art_slay_brand_cold(object_type *o_ptr)
 
 static bool random_art_slay_brand_pois(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_BRAND_POIS) || one_in_(2))
+    if (has_flag(o_ptr->art_flags, TR_BRAND_POIS) || one_in_(2))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_BRAND_POIS);
@@ -99,7 +99,7 @@ static bool random_art_slay_brand_pois(object_type *o_ptr)
 
 static bool random_art_slay_animal(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_SLAY_ANIMAL))
+    if (has_flag(o_ptr->art_flags, TR_SLAY_ANIMAL))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_SLAY_ANIMAL);
@@ -108,7 +108,7 @@ static bool random_art_slay_animal(object_type *o_ptr)
 
 static bool random_art_slay_evil(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_SLAY_EVIL))
+    if (has_flag(o_ptr->art_flags, TR_SLAY_EVIL))
         return FALSE;
     
     add_flag(o_ptr->art_flags, TR_SLAY_EVIL);
@@ -117,7 +117,7 @@ static bool random_art_slay_evil(object_type *o_ptr)
 
 static bool random_art_slay_undead(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_SLAY_UNDEAD))
+    if (has_flag(o_ptr->art_flags, TR_SLAY_UNDEAD))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_SLAY_UNDEAD);
@@ -126,7 +126,7 @@ static bool random_art_slay_undead(object_type *o_ptr)
 
 static bool random_art_slay_demon(object_type *o_ptr)
 {
-    if (have_flag(o_ptr->art_flags, TR_SLAY_DEMON))
+    if (has_flag(o_ptr->art_flags, TR_SLAY_DEMON))
         return FALSE;
 
     add_flag(o_ptr->art_flags, TR_SLAY_DEMON);
@@ -139,7 +139,7 @@ static bool switch_random_art_slay(object_type *o_ptr)
     case BIAS_CHAOS:
         return random_art_slay_chaos(o_ptr);
     case BIAS_PRIESTLY:
-        if (((o_ptr->tval == TV_SWORD) || (o_ptr->tval == TV_POLEARM)) && !have_flag(o_ptr->art_flags, TR_BLESSED))
+        if (((o_ptr->tval == TV_SWORD) || (o_ptr->tval == TV_POLEARM)) && !has_flag(o_ptr->art_flags, TR_BLESSED))
             add_flag(o_ptr->art_flags, TR_BLESSED);
 
         return FALSE;
@@ -149,7 +149,7 @@ static bool switch_random_art_slay(object_type *o_ptr)
         return random_art_slay_animal(o_ptr);
     case BIAS_ROGUE:
         if ((((o_ptr->tval == TV_SWORD) && (o_ptr->sval == SV_DAGGER)) || ((o_ptr->tval == TV_POLEARM) && (o_ptr->sval == SV_SPEAR)))
-            && !(have_flag(o_ptr->art_flags, TR_THROW))) {
+            && !(has_flag(o_ptr->art_flags, TR_THROW))) {
             add_flag(o_ptr->art_flags, TR_THROW);
         }
 
index 1ff2045..4143875 100644 (file)
@@ -66,12 +66,12 @@ void do_cmd_go_up(player_type *creature_ptr)
     if (creature_ptr->special_defense & KATA_MUSOU)
         set_action(creature_ptr, ACTION_NONE);
 
-    if (!have_flag(f_ptr->flags, FF_LESS)) {
+    if (!has_flag(f_ptr->flags, FF_LESS)) {
         msg_print(_("ここには上り階段が見当たらない。", "I see no up staircase here."));
         return;
     }
 
-    if (have_flag(f_ptr->flags, FF_QUEST)) {
+    if (has_flag(f_ptr->flags, FF_QUEST)) {
         if (!confirm_leave_level(creature_ptr, FALSE))
             return;
 
@@ -125,7 +125,7 @@ void do_cmd_go_up(player_type *creature_ptr)
         creature_ptr->current_floor_ptr->dun_level = 0;
         up_num = 0;
     } else {
-        if (have_flag(f_ptr->flags, FF_SHAFT)) {
+        if (has_flag(f_ptr->flags, FF_SHAFT)) {
             prepare_change_floor_mode(creature_ptr, CFM_SAVE_FLOORS | CFM_UP | CFM_SHAFT);
             up_num = 2;
         } else {
@@ -164,20 +164,20 @@ void do_cmd_go_down(player_type *creature_ptr)
 
     grid_type *g_ptr = &creature_ptr->current_floor_ptr->grid_array[creature_ptr->y][creature_ptr->x];
     feature_type *f_ptr = &f_info[g_ptr->feat];
-    if (!have_flag(f_ptr->flags, FF_MORE)) {
+    if (!has_flag(f_ptr->flags, FF_MORE)) {
         msg_print(_("ここには下り階段が見当たらない。", "I see no down staircase here."));
         return;
     }
 
-    if (have_flag(f_ptr->flags, FF_TRAP))
+    if (has_flag(f_ptr->flags, FF_TRAP))
         fall_trap = TRUE;
 
-    if (have_flag(f_ptr->flags, FF_QUEST_ENTER)) {
+    if (has_flag(f_ptr->flags, FF_QUEST_ENTER)) {
         do_cmd_quest(creature_ptr);
         return;
     }
 
-    if (have_flag(f_ptr->flags, FF_QUEST)) {
+    if (has_flag(f_ptr->flags, FF_QUEST)) {
         if (!confirm_leave_level(creature_ptr, TRUE))
             return;
 
@@ -210,7 +210,7 @@ void do_cmd_go_down(player_type *creature_ptr)
 
     DUNGEON_IDX target_dungeon = 0;
     if (!creature_ptr->current_floor_ptr->dun_level) {
-        target_dungeon = have_flag(f_ptr->flags, FF_ENTRANCE) ? g_ptr->special : DUNGEON_ANGBAND;
+        target_dungeon = has_flag(f_ptr->flags, FF_ENTRANCE) ? g_ptr->special : DUNGEON_ANGBAND;
         if (ironman_downward && (target_dungeon != DUNGEON_ANGBAND)) {
             msg_print(_("ダンジョンの入口は塞がれている!", "The entrance of this dungeon is closed!"));
             return;
@@ -233,7 +233,7 @@ void do_cmd_go_down(player_type *creature_ptr)
     if (autosave_l)
         do_cmd_save_game(creature_ptr, TRUE);
 
-    if (have_flag(f_ptr->flags, FF_SHAFT))
+    if (has_flag(f_ptr->flags, FF_SHAFT))
         down_num += 2;
     else
         down_num += 1;
@@ -270,7 +270,7 @@ void do_cmd_go_down(player_type *creature_ptr)
         return;
     }
 
-    if (have_flag(f_ptr->flags, FF_SHAFT))
+    if (has_flag(f_ptr->flags, FF_SHAFT))
         prepare_change_floor_mode(creature_ptr, CFM_SAVE_FLOORS | CFM_DOWN | CFM_SHAFT);
     else
         prepare_change_floor_mode(creature_ptr, CFM_SAVE_FLOORS | CFM_DOWN);
index d94fbe8..8c136d5 100644 (file)
@@ -116,7 +116,7 @@ void do_cmd_open(player_type *creature_ptr)
         g_ptr = &creature_ptr->current_floor_ptr->grid_array[y][x];
         feat = get_feat_mimic(g_ptr);
         o_idx = chest_check(creature_ptr->current_floor_ptr, y, x, FALSE);
-        if (!have_flag(f_info[feat].flags, FF_OPEN) && !o_idx) {
+        if (!has_flag(f_info[feat].flags, FF_OPEN) && !o_idx) {
             msg_print(_("そこには開けるものが見当たらない。", "You see nothing there to open."));
         } else if (g_ptr->m_idx && creature_ptr->riding != g_ptr->m_idx) {
             take_turn(creature_ptr, 100);
@@ -167,7 +167,7 @@ void do_cmd_close(player_type *creature_ptr)
         x = creature_ptr->x + ddx[dir];
         g_ptr = &creature_ptr->current_floor_ptr->grid_array[y][x];
         feat = get_feat_mimic(g_ptr);
-        if (!have_flag(f_info[feat].flags, FF_CLOSE)) {
+        if (!has_flag(f_info[feat].flags, FF_CLOSE)) {
             msg_print(_("そこには閉じるものが見当たらない。", "You see nothing there to close."));
         } else if (g_ptr->m_idx) {
             take_turn(creature_ptr, 100);
@@ -281,7 +281,7 @@ void do_cmd_bash(player_type *creature_ptr)
         x = creature_ptr->x + ddx[dir];
         g_ptr = &creature_ptr->current_floor_ptr->grid_array[y][x];
         feat = get_feat_mimic(g_ptr);
-        if (!have_flag(f_info[feat].flags, FF_BASH)) {
+        if (!has_flag(f_info[feat].flags, FF_BASH)) {
             msg_print(_("そこには体当たりするものが見当たらない。", "You see nothing there to bash."));
         } else if (g_ptr->m_idx) {
             take_turn(creature_ptr, 100);
@@ -351,7 +351,7 @@ void do_cmd_spike(player_type *creature_ptr)
     g_ptr = &creature_ptr->current_floor_ptr->grid_array[y][x];
     FEAT_IDX feat = get_feat_mimic(g_ptr);
     INVENTORY_IDX item;
-    if (!have_flag(f_info[feat].flags, FF_SPIKE)) {
+    if (!has_flag(f_info[feat].flags, FF_SPIKE)) {
         msg_print(_("そこにはくさびを打てるものが見当たらない。", "You see nothing there to spike."));
     } else if (!get_spike(creature_ptr, &item)) {
         msg_print(_("くさびを持っていない!", "You have no spikes!"));
index 43fafb9..35bc1b0 100644 (file)
@@ -71,19 +71,19 @@ static bool exe_alter(player_type *creature_ptr)
         return FALSE;
     }
     
-    if (have_flag(f_ptr->flags, FF_OPEN))
+    if (has_flag(f_ptr->flags, FF_OPEN))
         return exe_open(creature_ptr, y, x);
     
-    if (have_flag(f_ptr->flags, FF_BASH))
+    if (has_flag(f_ptr->flags, FF_BASH))
         return exe_bash(creature_ptr, y, x, dir);
     
-    if (have_flag(f_ptr->flags, FF_TUNNEL))
+    if (has_flag(f_ptr->flags, FF_TUNNEL))
         return exe_tunnel(creature_ptr, y, x);
     
-    if (have_flag(f_ptr->flags, FF_CLOSE))
+    if (has_flag(f_ptr->flags, FF_CLOSE))
         return exe_close(creature_ptr, y, x);
     
-    if (have_flag(f_ptr->flags, FF_DISARM))
+    if (has_flag(f_ptr->flags, FF_DISARM))
         return exe_disarm(creature_ptr, y, x, dir);
 
     msg_print(_("何もない空中を攻撃した。", "You attack the empty air."));
index dc08c11..964aba3 100644 (file)
@@ -255,14 +255,14 @@ bool do_cmd_riding(player_type *creature_ptr, bool force)
             feature_type *f_ptr = &f_info[get_feat_mimic(g_ptr)];
 #ifdef JP
             msg_format("そのモンスターは%sの%sにいる。", f_name + f_ptr->name,
-                ((!have_flag(f_ptr->flags, FF_MOVE) && !have_flag(f_ptr->flags, FF_CAN_FLY))
-                    || (!have_flag(f_ptr->flags, FF_LOS) && !have_flag(f_ptr->flags, FF_TREE)))
+                ((!has_flag(f_ptr->flags, FF_MOVE) && !has_flag(f_ptr->flags, FF_CAN_FLY))
+                    || (!has_flag(f_ptr->flags, FF_LOS) && !has_flag(f_ptr->flags, FF_TREE)))
                     ? "中"
                     : "上");
 #else
             msg_format("This monster is %s the %s.",
-                ((!have_flag(f_ptr->flags, FF_MOVE) && !have_flag(f_ptr->flags, FF_CAN_FLY))
-                    || (!have_flag(f_ptr->flags, FF_LOS) && !have_flag(f_ptr->flags, FF_TREE)))
+                ((!has_flag(f_ptr->flags, FF_MOVE) && !has_flag(f_ptr->flags, FF_CAN_FLY))
+                    || (!has_flag(f_ptr->flags, FF_LOS) && !has_flag(f_ptr->flags, FF_TREE)))
                     ? "in"
                     : "on",
                 f_name + f_ptr->name);
index b55e146..d419067 100644 (file)
@@ -23,13 +23,13 @@ static int travel_flow_cost(player_type *creature_ptr, POSITION y, POSITION x)
 {
     int cost = 1;
     feature_type *f_ptr = &f_info[creature_ptr->current_floor_ptr->grid_array[y][x].feat];
-    if (have_flag(f_ptr->flags, FF_AVOID_RUN))
+    if (has_flag(f_ptr->flags, FF_AVOID_RUN))
         cost += 1;
 
-    if (have_flag(f_ptr->flags, FF_WATER) && have_flag(f_ptr->flags, FF_DEEP) && !creature_ptr->levitation)
+    if (has_flag(f_ptr->flags, FF_WATER) && has_flag(f_ptr->flags, FF_DEEP) && !creature_ptr->levitation)
         cost += 5;
 
-    if (have_flag(f_ptr->flags, FF_LAVA)) {
+    if (has_flag(f_ptr->flags, FF_LAVA)) {
         int lava = 2;
         if (!creature_ptr->resist_fire)
             lava *= 2;
@@ -37,17 +37,17 @@ static int travel_flow_cost(player_type *creature_ptr, POSITION y, POSITION x)
         if (!creature_ptr->levitation)
             lava *= 2;
 
-        if (have_flag(f_ptr->flags, FF_DEEP))
+        if (has_flag(f_ptr->flags, FF_DEEP))
             lava *= 2;
 
         cost += lava;
     }
 
     if (creature_ptr->current_floor_ptr->grid_array[y][x].info & (CAVE_MARK)) {
-        if (have_flag(f_ptr->flags, FF_DOOR))
+        if (has_flag(f_ptr->flags, FF_DOOR))
             cost += 1;
 
-        if (have_flag(f_ptr->flags, FF_TRAP))
+        if (has_flag(f_ptr->flags, FF_TRAP))
             cost += 10;
     }
 
@@ -76,8 +76,8 @@ static void travel_flow_aux(player_type *creature_ptr, POSITION y, POSITION x, i
 
     int add_cost = 1;
     int from_wall = (n / TRAVEL_UNABLE);
-    if (have_flag(f_ptr->flags, FF_WALL) || have_flag(f_ptr->flags, FF_CAN_DIG) || (have_flag(f_ptr->flags, FF_DOOR) && floor_ptr->grid_array[y][x].mimic)
-        || (!have_flag(f_ptr->flags, FF_MOVE) && have_flag(f_ptr->flags, FF_CAN_FLY) && !creature_ptr->levitation)) {
+    if (has_flag(f_ptr->flags, FF_WALL) || has_flag(f_ptr->flags, FF_CAN_DIG) || (has_flag(f_ptr->flags, FF_DOOR) && floor_ptr->grid_array[y][x].mimic)
+        || (!has_flag(f_ptr->flags, FF_MOVE) && has_flag(f_ptr->flags, FF_CAN_FLY) && !creature_ptr->levitation)) {
         if (!wall || !from_wall)
             return;
 
@@ -113,7 +113,7 @@ static void travel_flow(player_type *creature_ptr, POSITION ty, POSITION tx)
     flow_head = flow_tail = 0;
     bool wall = FALSE;
     feature_type *f_ptr = &f_info[creature_ptr->current_floor_ptr->grid_array[creature_ptr->y][creature_ptr->x].feat];
-    if (!have_flag(f_ptr->flags, FF_MOVE))
+    if (!has_flag(f_ptr->flags, FF_MOVE))
         wall = TRUE;
 
     travel_flow_aux(creature_ptr, ty, tx, 0, wall);
@@ -153,8 +153,8 @@ void do_cmd_travel(player_type *creature_ptr)
     feature_type *f_ptr;
     f_ptr = &f_info[floor_ptr->grid_array[y][x].feat];
     if ((floor_ptr->grid_array[y][x].info & CAVE_MARK)
-        && (have_flag(f_ptr->flags, FF_WALL) || have_flag(f_ptr->flags, FF_CAN_DIG)
-            || (have_flag(f_ptr->flags, FF_DOOR) && floor_ptr->grid_array[y][x].mimic))) {
+        && (has_flag(f_ptr->flags, FF_WALL) || has_flag(f_ptr->flags, FF_CAN_DIG)
+            || (has_flag(f_ptr->flags, FF_DOOR) && floor_ptr->grid_array[y][x].mimic))) {
         msg_print(_("そこには行くことができません!", "You cannot travel there!"));
         return;
     }
index 2d82397..32c91ee 100644 (file)
@@ -53,9 +53,9 @@ void do_cmd_tunnel(player_type *creature_ptr)
     grid_type *g_ptr;
     g_ptr = &creature_ptr->current_floor_ptr->grid_array[y][x];
     FEAT_IDX feat = get_feat_mimic(g_ptr);
-    if (have_flag(f_info[feat].flags, FF_DOOR))
+    if (has_flag(f_info[feat].flags, FF_DOOR))
         msg_print(_("ドアは掘れない。", "You cannot tunnel through doors."));
-    else if (!have_flag(f_info[feat].flags, FF_TUNNEL))
+    else if (!has_flag(f_info[feat].flags, FF_TUNNEL))
         msg_print(_("そこは掘れない。", "You can't tunnel through that."));
     else if (g_ptr->m_idx) {
         take_turn(creature_ptr, 100);
index f105e62..d88fe32 100644 (file)
@@ -263,23 +263,23 @@ static void drain_essence(player_type *creature_ptr)
     take_turn(creature_ptr, 100);
 
     object_flags(creature_ptr, o_ptr, old_flgs);
-    if (have_flag(old_flgs, TR_KILL_DRAGON))
+    if (has_flag(old_flgs, TR_KILL_DRAGON))
         add_flag(old_flgs, TR_SLAY_DRAGON);
-    if (have_flag(old_flgs, TR_KILL_ANIMAL))
+    if (has_flag(old_flgs, TR_KILL_ANIMAL))
         add_flag(old_flgs, TR_SLAY_ANIMAL);
-    if (have_flag(old_flgs, TR_KILL_EVIL))
+    if (has_flag(old_flgs, TR_KILL_EVIL))
         add_flag(old_flgs, TR_SLAY_EVIL);
-    if (have_flag(old_flgs, TR_KILL_UNDEAD))
+    if (has_flag(old_flgs, TR_KILL_UNDEAD))
         add_flag(old_flgs, TR_SLAY_UNDEAD);
-    if (have_flag(old_flgs, TR_KILL_DEMON))
+    if (has_flag(old_flgs, TR_KILL_DEMON))
         add_flag(old_flgs, TR_SLAY_DEMON);
-    if (have_flag(old_flgs, TR_KILL_ORC))
+    if (has_flag(old_flgs, TR_KILL_ORC))
         add_flag(old_flgs, TR_SLAY_ORC);
-    if (have_flag(old_flgs, TR_KILL_TROLL))
+    if (has_flag(old_flgs, TR_KILL_TROLL))
         add_flag(old_flgs, TR_SLAY_TROLL);
-    if (have_flag(old_flgs, TR_KILL_GIANT))
+    if (has_flag(old_flgs, TR_KILL_GIANT))
         add_flag(old_flgs, TR_SLAY_GIANT);
-    if (have_flag(old_flgs, TR_KILL_HUMAN))
+    if (has_flag(old_flgs, TR_KILL_HUMAN))
         add_flag(old_flgs, TR_SLAY_HUMAN);
 
     old_to_a = o_ptr->to_a;
@@ -293,41 +293,41 @@ static void drain_essence(player_type *creature_ptr)
     old_timeout = o_ptr->timeout;
     if (o_ptr->curse_flags & (TRC_CURSED | TRC_HEAVY_CURSE | TRC_PERMA_CURSE))
         dec--;
-    if (have_flag(old_flgs, TR_ADD_L_CURSE))
+    if (has_flag(old_flgs, TR_ADD_L_CURSE))
         dec--;
-    if (have_flag(old_flgs, TR_ADD_H_CURSE))
+    if (has_flag(old_flgs, TR_ADD_H_CURSE))
         dec--;
-    if (have_flag(old_flgs, TR_AGGRAVATE))
+    if (has_flag(old_flgs, TR_AGGRAVATE))
         dec--;
-    if (have_flag(old_flgs, TR_NO_TELE))
+    if (has_flag(old_flgs, TR_NO_TELE))
         dec--;
-    if (have_flag(old_flgs, TR_DRAIN_EXP))
+    if (has_flag(old_flgs, TR_DRAIN_EXP))
         dec--;
-    if (have_flag(old_flgs, TR_DRAIN_HP))
+    if (has_flag(old_flgs, TR_DRAIN_HP))
         dec--;
-    if (have_flag(old_flgs, TR_DRAIN_MANA))
+    if (has_flag(old_flgs, TR_DRAIN_MANA))
         dec--;
-    if (have_flag(old_flgs, TR_CALL_ANIMAL))
+    if (has_flag(old_flgs, TR_CALL_ANIMAL))
         dec--;
-    if (have_flag(old_flgs, TR_CALL_DEMON))
+    if (has_flag(old_flgs, TR_CALL_DEMON))
         dec--;
-    if (have_flag(old_flgs, TR_CALL_DRAGON))
+    if (has_flag(old_flgs, TR_CALL_DRAGON))
         dec--;
-    if (have_flag(old_flgs, TR_CALL_UNDEAD))
+    if (has_flag(old_flgs, TR_CALL_UNDEAD))
         dec--;
-    if (have_flag(old_flgs, TR_COWARDICE))
+    if (has_flag(old_flgs, TR_COWARDICE))
         dec--;
-    if (have_flag(old_flgs, TR_LOW_MELEE))
+    if (has_flag(old_flgs, TR_LOW_MELEE))
         dec--;
-    if (have_flag(old_flgs, TR_LOW_AC))
+    if (has_flag(old_flgs, TR_LOW_AC))
         dec--;
-    if (have_flag(old_flgs, TR_LOW_MAGIC))
+    if (has_flag(old_flgs, TR_LOW_MAGIC))
         dec--;
-    if (have_flag(old_flgs, TR_FAST_DIGEST))
+    if (has_flag(old_flgs, TR_FAST_DIGEST))
         dec--;
-    if (have_flag(old_flgs, TR_SLOW_REGEN))
+    if (has_flag(old_flgs, TR_SLOW_REGEN))
         dec--;
-    if (have_flag(old_flgs, TR_TY_CURSE))
+    if (has_flag(old_flgs, TR_TY_CURSE))
         dec--;
 
     iy = o_ptr->iy;
@@ -359,9 +359,9 @@ static void drain_essence(player_type *creature_ptr)
         PARAMETER_VALUE pval = 0;
 
         if (es_ptr->add < TR_FLAG_MAX && is_pval_flag(es_ptr->add) && old_pval)
-            pval = (have_flag(new_flgs, es_ptr->add)) ? old_pval - o_ptr->pval : old_pval;
+            pval = (has_flag(new_flgs, es_ptr->add)) ? old_pval - o_ptr->pval : old_pval;
 
-        if (es_ptr->add < TR_FLAG_MAX && (!have_flag(new_flgs, es_ptr->add) || pval) && have_flag(old_flgs, es_ptr->add)) {
+        if (es_ptr->add < TR_FLAG_MAX && (!has_flag(new_flgs, es_ptr->add) || pval) && has_flag(old_flgs, es_ptr->add)) {
             if (pval) {
                 drain_value[es_ptr->essence] += 10 * pval;
             } else if (es_ptr->essence != -2) {
@@ -383,24 +383,24 @@ static void drain_essence(player_type *creature_ptr)
         }
     }
 
-    if ((have_flag(old_flgs, TR_FORCE_WEAPON)) && !(have_flag(new_flgs, TR_FORCE_WEAPON))) {
+    if ((has_flag(old_flgs, TR_FORCE_WEAPON)) && !(has_flag(new_flgs, TR_FORCE_WEAPON))) {
         drain_value[TR_INT] += 5;
         drain_value[TR_WIS] += 5;
     }
-    if ((have_flag(old_flgs, TR_VORPAL)) && !(have_flag(new_flgs, TR_VORPAL))) {
+    if ((has_flag(old_flgs, TR_VORPAL)) && !(has_flag(new_flgs, TR_VORPAL))) {
         drain_value[TR_BRAND_POIS] += 5;
         drain_value[TR_BRAND_ACID] += 5;
         drain_value[TR_BRAND_ELEC] += 5;
         drain_value[TR_BRAND_FIRE] += 5;
         drain_value[TR_BRAND_COLD] += 5;
     }
-    if ((have_flag(old_flgs, TR_DEC_MANA)) && !(have_flag(new_flgs, TR_DEC_MANA))) {
+    if ((has_flag(old_flgs, TR_DEC_MANA)) && !(has_flag(new_flgs, TR_DEC_MANA))) {
         drain_value[TR_INT] += 10;
     }
-    if ((have_flag(old_flgs, TR_XTRA_MIGHT)) && !(have_flag(new_flgs, TR_XTRA_MIGHT))) {
+    if ((has_flag(old_flgs, TR_XTRA_MIGHT)) && !(has_flag(new_flgs, TR_XTRA_MIGHT))) {
         drain_value[TR_STR] += 10;
     }
-    if ((have_flag(old_flgs, TR_XTRA_SHOTS)) && !(have_flag(new_flgs, TR_XTRA_SHOTS))) {
+    if ((has_flag(old_flgs, TR_XTRA_SHOTS)) && !(has_flag(new_flgs, TR_XTRA_SHOTS))) {
         drain_value[TR_DEX] += 10;
     }
     if (old_name2 == EGO_2WEAPON) {
index b5549df..90f8a6f 100644 (file)
@@ -144,7 +144,7 @@ static void calc_throw_range(player_type *creature_ptr, it_type *it_ptr)
 
     int mul = 10 + 2 * (it_ptr->mult - 1);
     int div = ((it_ptr->q_ptr->weight > 10) ? it_ptr->q_ptr->weight : 10);
-    if ((have_flag(it_ptr->obj_flags, TR_THROW)) || it_ptr->boomerang)
+    if ((has_flag(it_ptr->obj_flags, TR_THROW)) || it_ptr->boomerang)
         div /= 2;
 
     it_ptr->tdis = (adj_str_blow[creature_ptr->stat_ind[A_STR]] + 20) * mul / div;
@@ -204,12 +204,12 @@ static void set_class_specific_throw_params(player_type *creature_ptr, it_type *
     it_ptr->x = creature_ptr->x;
     handle_stuff(creature_ptr);
     it_ptr->shuriken = (creature_ptr->pclass == CLASS_NINJA)
-        && ((it_ptr->q_ptr->tval == TV_SPIKE) || ((have_flag(it_ptr->obj_flags, TR_THROW)) && (it_ptr->q_ptr->tval == TV_SWORD)));
+        && ((it_ptr->q_ptr->tval == TV_SPIKE) || ((has_flag(it_ptr->obj_flags, TR_THROW)) && (it_ptr->q_ptr->tval == TV_SWORD)));
 }
 
 static void set_racial_chance(player_type *creature_ptr, it_type *it_ptr)
 {
-    if (have_flag(it_ptr->obj_flags, TR_THROW))
+    if (has_flag(it_ptr->obj_flags, TR_THROW))
         it_ptr->chance = ((creature_ptr->skill_tht) + ((creature_ptr->to_h_b + it_ptr->q_ptr->to_h) * BTH_PLUS_ADJ));
     else
         it_ptr->chance = (creature_ptr->skill_tht + (creature_ptr->to_h_b * BTH_PLUS_ADJ));
@@ -292,7 +292,7 @@ static void calc_racial_power_damage(player_type *creature_ptr, it_type *it_ptr)
     if (it_ptr->boomerang) {
         it_ptr->tdam *= (it_ptr->mult + creature_ptr->num_blow[it_ptr->item - INVEN_RARM]);
         it_ptr->tdam += creature_ptr->to_d_m;
-    } else if (have_flag(it_ptr->obj_flags, TR_THROW)) {
+    } else if (has_flag(it_ptr->obj_flags, TR_THROW)) {
         it_ptr->tdam *= (3 + it_ptr->mult);
         it_ptr->tdam += creature_ptr->to_d_m;
     } else {
index f24eca6..deea1e1 100644 (file)
@@ -85,7 +85,7 @@ static MULTIPLY calc_shot_damage_with_slay(player_type *sniper_ptr, object_type
     case TV_SHOT:
     case TV_ARROW:
     case TV_BOLT: {
-        if ((have_flag(flgs, TR_SLAY_ANIMAL)) && (r_ptr->flags3 & RF3_ANIMAL)) {
+        if ((has_flag(flgs, TR_SLAY_ANIMAL)) && (r_ptr->flags3 & RF3_ANIMAL)) {
             if (is_original_ap_and_seen(sniper_ptr, m_ptr)) {
                 r_ptr->r_flags3 |= RF3_ANIMAL;
             }
@@ -93,7 +93,7 @@ static MULTIPLY calc_shot_damage_with_slay(player_type *sniper_ptr, object_type
                 mult = 17;
         }
 
-        if ((have_flag(flgs, TR_KILL_ANIMAL)) && (r_ptr->flags3 & RF3_ANIMAL)) {
+        if ((has_flag(flgs, TR_KILL_ANIMAL)) && (r_ptr->flags3 & RF3_ANIMAL)) {
             if (is_original_ap_and_seen(sniper_ptr, m_ptr)) {
                 r_ptr->r_flags3 |= RF3_ANIMAL;
             }
@@ -101,7 +101,7 @@ static MULTIPLY calc_shot_damage_with_slay(player_type *sniper_ptr, object_type
                 mult = 27;
         }
 
-        if ((have_flag(flgs, TR_SLAY_EVIL)) && (r_ptr->flags3 & RF3_EVIL)) {
+        if ((has_flag(flgs, TR_SLAY_EVIL)) && (r_ptr->flags3 & RF3_EVIL)) {
             if (is_original_ap_and_seen(sniper_ptr, m_ptr)) {
                 r_ptr->r_flags3 |= RF3_EVIL;
             }
@@ -109,7 +109,7 @@ static MULTIPLY calc_shot_damage_with_slay(player_type *sniper_ptr, object_type
                 mult = 15;
         }
 
-        if ((have_flag(flgs, TR_KILL_EVIL)) && (r_ptr->flags3 & RF3_EVIL)) {
+        if ((has_flag(flgs, TR_KILL_EVIL)) && (r_ptr->flags3 & RF3_EVIL)) {
             if (is_original_ap_and_seen(sniper_ptr, m_ptr)) {
                 r_ptr->r_flags3 |= RF3_EVIL;
             }
@@ -117,7 +117,7 @@ static MULTIPLY calc_shot_damage_with_slay(player_type *sniper_ptr, object_type
                 mult = 25;
         }
 
-        if ((have_flag(flgs, TR_SLAY_HUMAN)) && (r_ptr->flags2 & RF2_HUMAN)) {
+        if ((has_flag(flgs, TR_SLAY_HUMAN)) && (r_ptr->flags2 & RF2_HUMAN)) {
             if (is_original_ap_and_seen(sniper_ptr, m_ptr)) {
                 r_ptr->r_flags2 |= RF2_HUMAN;
             }
@@ -125,7 +125,7 @@ static MULTIPLY calc_shot_damage_with_slay(player_type *sniper_ptr, object_type
                 mult = 17;
         }
 
-        if ((have_flag(flgs, TR_KILL_HUMAN)) && (r_ptr->flags2 & RF2_HUMAN)) {
+        if ((has_flag(flgs, TR_KILL_HUMAN)) && (r_ptr->flags2 & RF2_HUMAN)) {
             if (is_original_ap_and_seen(sniper_ptr, m_ptr)) {
                 r_ptr->r_flags2 |= RF2_HUMAN;
             }
@@ -133,7 +133,7 @@ static MULTIPLY calc_shot_damage_with_slay(player_type *sniper_ptr, object_type
                 mult = 27;
         }
 
-        if ((have_flag(flgs, TR_SLAY_UNDEAD)) && (r_ptr->flags3 & RF3_UNDEAD)) {
+        if ((has_flag(flgs, TR_SLAY_UNDEAD)) && (r_ptr->flags3 & RF3_UNDEAD)) {
             if (is_original_ap_and_seen(sniper_ptr, m_ptr)) {
                 r_ptr->r_flags3 |= RF3_UNDEAD;
             }
@@ -141,7 +141,7 @@ static MULTIPLY calc_shot_damage_with_slay(player_type *sniper_ptr, object_type
                 mult = 20;
         }
 
-        if ((have_flag(flgs, TR_KILL_UNDEAD)) && (r_ptr->flags3 & RF3_UNDEAD)) {
+        if ((has_flag(flgs, TR_KILL_UNDEAD)) && (r_ptr->flags3 & RF3_UNDEAD)) {
             if (is_original_ap_and_seen(sniper_ptr, m_ptr)) {
                 r_ptr->r_flags3 |= RF3_UNDEAD;
             }
@@ -149,7 +149,7 @@ static MULTIPLY calc_shot_damage_with_slay(player_type *sniper_ptr, object_type
                 mult = 30;
         }
 
-        if ((have_flag(flgs, TR_SLAY_DEMON)) && (r_ptr->flags3 & RF3_DEMON)) {
+        if ((has_flag(flgs, TR_SLAY_DEMON)) && (r_ptr->flags3 & RF3_DEMON)) {
             if (is_original_ap_and_seen(sniper_ptr, m_ptr)) {
                 r_ptr->r_flags3 |= RF3_DEMON;
             }
@@ -157,7 +157,7 @@ static MULTIPLY calc_shot_damage_with_slay(player_type *sniper_ptr, object_type
                 mult = 20;
         }
 
-        if ((have_flag(flgs, TR_KILL_DEMON)) && (r_ptr->flags3 & RF3_DEMON)) {
+        if ((has_flag(flgs, TR_KILL_DEMON)) && (r_ptr->flags3 & RF3_DEMON)) {
             if (is_original_ap_and_seen(sniper_ptr, m_ptr)) {
                 r_ptr->r_flags3 |= RF3_DEMON;
             }
@@ -165,7 +165,7 @@ static MULTIPLY calc_shot_damage_with_slay(player_type *sniper_ptr, object_type
                 mult = 30;
         }
 
-        if ((have_flag(flgs, TR_SLAY_ORC)) && (r_ptr->flags3 & RF3_ORC)) {
+        if ((has_flag(flgs, TR_SLAY_ORC)) && (r_ptr->flags3 & RF3_ORC)) {
             if (is_original_ap_and_seen(sniper_ptr, m_ptr)) {
                 r_ptr->r_flags3 |= RF3_ORC;
             }
@@ -173,7 +173,7 @@ static MULTIPLY calc_shot_damage_with_slay(player_type *sniper_ptr, object_type
                 mult = 20;
         }
 
-        if ((have_flag(flgs, TR_KILL_ORC)) && (r_ptr->flags3 & RF3_ORC)) {
+        if ((has_flag(flgs, TR_KILL_ORC)) && (r_ptr->flags3 & RF3_ORC)) {
             if (is_original_ap_and_seen(sniper_ptr, m_ptr)) {
                 r_ptr->r_flags3 |= RF3_ORC;
             }
@@ -181,7 +181,7 @@ static MULTIPLY calc_shot_damage_with_slay(player_type *sniper_ptr, object_type
                 mult = 30;
         }
 
-        if ((have_flag(flgs, TR_SLAY_TROLL)) && (r_ptr->flags3 & RF3_TROLL)) {
+        if ((has_flag(flgs, TR_SLAY_TROLL)) && (r_ptr->flags3 & RF3_TROLL)) {
             if (is_original_ap_and_seen(sniper_ptr, m_ptr)) {
                 r_ptr->r_flags3 |= RF3_TROLL;
             }
@@ -190,7 +190,7 @@ static MULTIPLY calc_shot_damage_with_slay(player_type *sniper_ptr, object_type
                 mult = 20;
         }
 
-        if ((have_flag(flgs, TR_KILL_TROLL)) && (r_ptr->flags3 & RF3_TROLL)) {
+        if ((has_flag(flgs, TR_KILL_TROLL)) && (r_ptr->flags3 & RF3_TROLL)) {
             if (is_original_ap_and_seen(sniper_ptr, m_ptr)) {
                 r_ptr->r_flags3 |= RF3_TROLL;
             }
@@ -198,7 +198,7 @@ static MULTIPLY calc_shot_damage_with_slay(player_type *sniper_ptr, object_type
                 mult = 30;
         }
 
-        if ((have_flag(flgs, TR_SLAY_GIANT)) && (r_ptr->flags3 & RF3_GIANT)) {
+        if ((has_flag(flgs, TR_SLAY_GIANT)) && (r_ptr->flags3 & RF3_GIANT)) {
             if (is_original_ap_and_seen(sniper_ptr, m_ptr)) {
                 r_ptr->r_flags3 |= RF3_GIANT;
             }
@@ -206,7 +206,7 @@ static MULTIPLY calc_shot_damage_with_slay(player_type *sniper_ptr, object_type
                 mult = 20;
         }
 
-        if ((have_flag(flgs, TR_KILL_GIANT)) && (r_ptr->flags3 & RF3_GIANT)) {
+        if ((has_flag(flgs, TR_KILL_GIANT)) && (r_ptr->flags3 & RF3_GIANT)) {
             if (is_original_ap_and_seen(sniper_ptr, m_ptr)) {
                 r_ptr->r_flags3 |= RF3_GIANT;
             }
@@ -214,7 +214,7 @@ static MULTIPLY calc_shot_damage_with_slay(player_type *sniper_ptr, object_type
                 mult = 30;
         }
 
-        if ((have_flag(flgs, TR_SLAY_DRAGON)) && (r_ptr->flags3 & RF3_DRAGON)) {
+        if ((has_flag(flgs, TR_SLAY_DRAGON)) && (r_ptr->flags3 & RF3_DRAGON)) {
             if (is_original_ap_and_seen(sniper_ptr, m_ptr)) {
                 r_ptr->r_flags3 |= RF3_DRAGON;
             }
@@ -222,7 +222,7 @@ static MULTIPLY calc_shot_damage_with_slay(player_type *sniper_ptr, object_type
                 mult = 20;
         }
 
-        if ((have_flag(flgs, TR_KILL_DRAGON)) && (r_ptr->flags3 & RF3_DRAGON)) {
+        if ((has_flag(flgs, TR_KILL_DRAGON)) && (r_ptr->flags3 & RF3_DRAGON)) {
             if (is_original_ap_and_seen(sniper_ptr, m_ptr)) {
                 r_ptr->r_flags3 |= RF3_DRAGON;
             }
@@ -232,7 +232,7 @@ static MULTIPLY calc_shot_damage_with_slay(player_type *sniper_ptr, object_type
                 mult *= 5;
         }
 
-        if (have_flag(flgs, TR_BRAND_ACID)) {
+        if (has_flag(flgs, TR_BRAND_ACID)) {
             /* Notice immunity */
             if (r_ptr->flagsr & RFR_EFF_IM_ACID_MASK) {
                 if (is_original_ap_and_seen(sniper_ptr, m_ptr)) {
@@ -244,7 +244,7 @@ static MULTIPLY calc_shot_damage_with_slay(player_type *sniper_ptr, object_type
             }
         }
 
-        if (have_flag(flgs, TR_BRAND_ELEC)) {
+        if (has_flag(flgs, TR_BRAND_ELEC)) {
             /* Notice immunity */
             if (r_ptr->flagsr & RFR_EFF_IM_ELEC_MASK) {
                 if (is_original_ap_and_seen(sniper_ptr, m_ptr)) {
@@ -256,7 +256,7 @@ static MULTIPLY calc_shot_damage_with_slay(player_type *sniper_ptr, object_type
             }
         }
 
-        if (have_flag(flgs, TR_BRAND_FIRE)) {
+        if (has_flag(flgs, TR_BRAND_FIRE)) {
             /* Notice immunity */
             if (r_ptr->flagsr & RFR_EFF_IM_FIRE_MASK) {
                 if (is_original_ap_and_seen(sniper_ptr, m_ptr)) {
@@ -276,7 +276,7 @@ static MULTIPLY calc_shot_damage_with_slay(player_type *sniper_ptr, object_type
             }
         }
 
-        if (have_flag(flgs, TR_BRAND_COLD)) {
+        if (has_flag(flgs, TR_BRAND_COLD)) {
             /* Notice immunity */
             if (r_ptr->flagsr & RFR_EFF_IM_COLD_MASK) {
                 if (is_original_ap_and_seen(sniper_ptr, m_ptr)) {
@@ -296,7 +296,7 @@ static MULTIPLY calc_shot_damage_with_slay(player_type *sniper_ptr, object_type
             }
         }
 
-        if (have_flag(flgs, TR_BRAND_POIS)) {
+        if (has_flag(flgs, TR_BRAND_POIS)) {
             /* Notice immunity */
             if (r_ptr->flagsr & RFR_EFF_IM_POIS_MASK) {
                 if (is_original_ap_and_seen(sniper_ptr, m_ptr)) {
@@ -310,7 +310,7 @@ static MULTIPLY calc_shot_damage_with_slay(player_type *sniper_ptr, object_type
             }
         }
 
-        if ((have_flag(flgs, TR_FORCE_WEAPON)) && (sniper_ptr->csp > (sniper_ptr->msp / 30))) {
+        if ((has_flag(flgs, TR_FORCE_WEAPON)) && (sniper_ptr->csp > (sniper_ptr->msp / 30))) {
             sniper_ptr->csp -= (1 + (sniper_ptr->msp / 30));
             sniper_ptr->redraw |= (PR_MANA);
             mult = mult * 5 / 2;
index 58d196e..b135eca 100644 (file)
@@ -61,7 +61,7 @@ MULTIPLY mult_slaying(player_type *player_ptr, MULTIPLY mult, const BIT_FLAGS *f
     for (size_t i = 0; i < sizeof(slay_table) / sizeof(slay_table[0]); ++i) {
         const struct slay_table_t *p = &slay_table[i];
 
-        if (!have_flag(flgs, p->slay_flag) || !(atoffset(BIT_FLAGS, r_ptr, p->flag_offset) & p->affect_race_flag))
+        if (!has_flag(flgs, p->slay_flag) || !(atoffset(BIT_FLAGS, r_ptr, p->flag_offset) & p->affect_race_flag))
             continue;
 
         if (is_original_ap_and_seen(player_ptr, m_ptr)) {
@@ -100,7 +100,7 @@ MULTIPLY mult_brand(player_type *player_ptr, MULTIPLY mult, const BIT_FLAGS *flg
     for (size_t i = 0; i < sizeof(brand_table) / sizeof(brand_table[0]); ++i) {
         const struct brand_table_t *p = &brand_table[i];
 
-        if (!have_flag(flgs, p->brand_flag))
+        if (!has_flag(flgs, p->brand_flag))
             continue;
 
         /* Notice immunity */
@@ -184,7 +184,7 @@ HIT_POINT calc_attack_damage_with_slay(player_type *attacker_ptr, object_type *o
             mult = mult_hissatsu(attacker_ptr, mult, flgs, m_ptr, mode);
         }
 
-        if ((attacker_ptr->pclass != CLASS_SAMURAI) && (have_flag(flgs, TR_FORCE_WEAPON)) && (attacker_ptr->csp > (o_ptr->dd * o_ptr->ds / 5))) {
+        if ((attacker_ptr->pclass != CLASS_SAMURAI) && (has_flag(flgs, TR_FORCE_WEAPON)) && (attacker_ptr->csp > (o_ptr->dd * o_ptr->ds / 5))) {
             attacker_ptr->csp -= (1 + (o_ptr->dd * o_ptr->ds / 5));
             attacker_ptr->redraw |= (PR_MANA);
             mult = mult * 3 / 2 + 20;
index 039346c..13c0af4 100644 (file)
@@ -89,10 +89,10 @@ void process_player_hp_mp(player_type *creature_ptr)
         }
     }
 
-    if (have_flag(f_ptr->flags, FF_LAVA) && !is_invuln(creature_ptr) && !creature_ptr->immune_fire) {
+    if (has_flag(f_ptr->flags, FF_LAVA) && !is_invuln(creature_ptr) && !creature_ptr->immune_fire) {
         int damage = 0;
 
-        if (have_flag(f_ptr->flags, FF_DEEP)) {
+        if (has_flag(f_ptr->flags, FF_DEEP)) {
             damage = 6000 + randint0(4000);
         } else if (!creature_ptr->levitation) {
             damage = 3000 + randint0(2000);
@@ -126,10 +126,10 @@ void process_player_hp_mp(player_type *creature_ptr)
         }
     }
 
-    if (have_flag(f_ptr->flags, FF_COLD_PUDDLE) && !is_invuln(creature_ptr) && !creature_ptr->immune_cold) {
+    if (has_flag(f_ptr->flags, FF_COLD_PUDDLE) && !is_invuln(creature_ptr) && !creature_ptr->immune_cold) {
         int damage = 0;
 
-        if (have_flag(f_ptr->flags, FF_DEEP)) {
+        if (has_flag(f_ptr->flags, FF_DEEP)) {
             damage = 6000 + randint0(4000);
         } else if (!creature_ptr->levitation) {
             damage = 3000 + randint0(2000);
@@ -161,10 +161,10 @@ void process_player_hp_mp(player_type *creature_ptr)
         }
     }
 
-    if (have_flag(f_ptr->flags, FF_ELEC_PUDDLE) && !is_invuln(creature_ptr) && !creature_ptr->immune_elec) {
+    if (has_flag(f_ptr->flags, FF_ELEC_PUDDLE) && !is_invuln(creature_ptr) && !creature_ptr->immune_elec) {
         int damage = 0;
 
-        if (have_flag(f_ptr->flags, FF_DEEP)) {
+        if (has_flag(f_ptr->flags, FF_DEEP)) {
             damage = 6000 + randint0(4000);
         } else if (!creature_ptr->levitation) {
             damage = 3000 + randint0(2000);
@@ -196,10 +196,10 @@ void process_player_hp_mp(player_type *creature_ptr)
         }
     }
 
-    if (have_flag(f_ptr->flags, FF_ACID_PUDDLE) && !is_invuln(creature_ptr) && !creature_ptr->immune_acid) {
+    if (has_flag(f_ptr->flags, FF_ACID_PUDDLE) && !is_invuln(creature_ptr) && !creature_ptr->immune_acid) {
         int damage = 0;
 
-        if (have_flag(f_ptr->flags, FF_DEEP)) {
+        if (has_flag(f_ptr->flags, FF_DEEP)) {
             damage = 6000 + randint0(4000);
         } else if (!creature_ptr->levitation) {
             damage = 3000 + randint0(2000);
@@ -231,10 +231,10 @@ void process_player_hp_mp(player_type *creature_ptr)
         }
     }
 
-    if (have_flag(f_ptr->flags, FF_POISON_PUDDLE) && !is_invuln(creature_ptr)) {
+    if (has_flag(f_ptr->flags, FF_POISON_PUDDLE) && !is_invuln(creature_ptr)) {
         int damage = 0;
 
-        if (have_flag(f_ptr->flags, FF_DEEP)) {
+        if (has_flag(f_ptr->flags, FF_DEEP)) {
             damage = 6000 + randint0(4000);
         } else if (!creature_ptr->levitation) {
             damage = 3000 + randint0(2000);
@@ -270,7 +270,7 @@ void process_player_hp_mp(player_type *creature_ptr)
         }
     }
 
-    if (have_flag(f_ptr->flags, FF_WATER) && have_flag(f_ptr->flags, FF_DEEP) && !creature_ptr->levitation && !creature_ptr->can_swim
+    if (has_flag(f_ptr->flags, FF_WATER) && has_flag(f_ptr->flags, FF_DEEP) && !creature_ptr->levitation && !creature_ptr->can_swim
         && !creature_ptr->resist_water) {
         if (creature_ptr->total_weight > weight_limit(creature_ptr)) {
             msg_print(_("溺れている!", "You are drowning!"));
@@ -321,7 +321,7 @@ void process_player_hp_mp(player_type *creature_ptr)
      * reduced below 0 hp by being inside a stone wall; others
      * WILL BE!
      */
-    if (!have_flag(f_ptr->flags, FF_MOVE) && !have_flag(f_ptr->flags, FF_CAN_FLY)) {
+    if (!has_flag(f_ptr->flags, FF_MOVE) && !has_flag(f_ptr->flags, FF_CAN_FLY)) {
         if (!is_invuln(creature_ptr) && !creature_ptr->wraith_form && !creature_ptr->tim_pass_wall
             && ((creature_ptr->chp > (creature_ptr->lev / 5)) || !creature_ptr->pass_wall)) {
             concptr dam_desc;
index 73d6e8c..fc06e4a 100644 (file)
@@ -48,7 +48,7 @@ bool place_quest_monsters(player_type *creature_ptr)
                     x = randint0(floor_ptr->width);
                     g_ptr = &floor_ptr->grid_array[y][x];
                     f_ptr = &f_info[g_ptr->feat];
-                    if (!have_flag(f_ptr->flags, FF_MOVE) && !have_flag(f_ptr->flags, FF_CAN_FLY))
+                    if (!has_flag(f_ptr->flags, FF_MOVE) && !has_flag(f_ptr->flags, FF_CAN_FLY))
                         continue;
 
                     if (!monster_can_enter(creature_ptr, y, x, r_ptr, 0))
index f8d56c6..96da677 100644 (file)
@@ -70,7 +70,7 @@ bool affect_feature(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITI
     who = who ? who : 0;
     dam = (dam + r) / (r + 1);
 
-    if (have_flag(f_ptr->flags, FF_TREE)) {
+    if (has_flag(f_ptr->flags, FF_TREE)) {
         concptr message;
         switch (typ) {
         case GF_POIS:
@@ -173,7 +173,7 @@ bool affect_feature(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITI
             cave_alter_feat(caster_ptr, y, x, FF_DISARM);
         }
 
-        if (is_closed_door(caster_ptr, g_ptr->feat) && f_ptr->power && have_flag(f_ptr->flags, FF_OPEN)) {
+        if (is_closed_door(caster_ptr, g_ptr->feat) && f_ptr->power && has_flag(f_ptr->flags, FF_OPEN)) {
             FEAT_IDX old_feat = g_ptr->feat;
             cave_alter_feat(caster_ptr, y, x, FF_DISARM);
             if (known && (old_feat != g_ptr->feat)) {
@@ -191,7 +191,7 @@ bool affect_feature(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITI
         break;
     }
     case GF_KILL_DOOR: {
-        if (is_trap(caster_ptr, g_ptr->feat) || have_flag(f_ptr->flags, FF_DOOR)) {
+        if (is_trap(caster_ptr, g_ptr->feat) || has_flag(f_ptr->flags, FF_DOOR)) {
             if (known) {
                 msg_print(_("まばゆい閃光が走った!", "There is a bright flash of light!"));
                 obvious = TRUE;
@@ -209,7 +209,7 @@ bool affect_feature(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITI
         break;
     }
     case GF_JAM_DOOR: {
-        if (!have_flag(f_ptr->flags, FF_SPIKE))
+        if (!has_flag(f_ptr->flags, FF_SPIKE))
             break;
 
         s16b old_mimic = g_ptr->mimic;
@@ -221,7 +221,7 @@ bool affect_feature(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITI
         note_spot(caster_ptr, y, x);
         lite_spot(caster_ptr, y, x);
 
-        if (!known || !have_flag(mimic_f_ptr->flags, FF_OPEN))
+        if (!known || !has_flag(mimic_f_ptr->flags, FF_OPEN))
             break;
 
         msg_format(_("%sに何かがつっかえて開かなくなった。", "The %s seems stuck."), f_name + mimic_f_ptr->name);
@@ -229,7 +229,7 @@ bool affect_feature(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITI
         break;
     }
     case GF_KILL_WALL: {
-        if (!have_flag(f_ptr->flags, FF_HURT_ROCK))
+        if (!has_flag(f_ptr->flags, FF_HURT_ROCK))
             break;
 
         if (known && (g_ptr->info & (CAVE_MARK))) {
@@ -283,10 +283,10 @@ bool affect_feature(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITI
         break;
     }
     case GF_LAVA_FLOW: {
-        if (have_flag(f_ptr->flags, FF_PERMANENT))
+        if (has_flag(f_ptr->flags, FF_PERMANENT))
             break;
         if (dam == 1) {
-            if (!have_flag(f_ptr->flags, FF_FLOOR))
+            if (!has_flag(f_ptr->flags, FF_FLOOR))
                 break;
             cave_set_feat(caster_ptr, y, x, feat_shallow_lava);
         } else if (dam) {
@@ -296,10 +296,10 @@ bool affect_feature(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITI
         break;
     }
     case GF_WATER_FLOW: {
-        if (have_flag(f_ptr->flags, FF_PERMANENT))
+        if (has_flag(f_ptr->flags, FF_PERMANENT))
             break;
         if (dam == 1) {
-            if (!have_flag(f_ptr->flags, FF_FLOOR))
+            if (!has_flag(f_ptr->flags, FF_FLOOR))
                 break;
             cave_set_feat(caster_ptr, y, x, feat_shallow_water);
         } else if (dam) {
@@ -345,7 +345,7 @@ bool affect_feature(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITI
                     continue;
 
                 grid_type *cc_ptr = &floor_ptr->grid_array[by][bx];
-                if (have_flag(f_info[get_feat_mimic(cc_ptr)].flags, FF_GLOW)) {
+                if (has_flag(f_info[get_feat_mimic(cc_ptr)].flags, FF_GLOW)) {
                     do_dark = FALSE;
                     break;
                 }
@@ -358,7 +358,7 @@ bool affect_feature(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITI
         g_ptr->info &= ~(CAVE_GLOW);
 
         /* Hack -- Forget "boring" grids */
-        if (!have_flag(f_ptr->flags, FF_REMEMBER)) {
+        if (!has_flag(f_ptr->flags, FF_REMEMBER)) {
             /* Forget */
             g_ptr->info &= ~(CAVE_MARK);
             note_spot(caster_ptr, y, x);
@@ -385,7 +385,7 @@ bool affect_feature(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITI
                 (PROJECT_GRID | PROJECT_ITEM | PROJECT_KILL | PROJECT_JUMP | PROJECT_NO_HANGEKI), -1);
         }
 
-        if (!have_flag(f_ptr->flags, FF_GLASS) || have_flag(f_ptr->flags, FF_PERMANENT) || (dam < 50))
+        if (!has_flag(f_ptr->flags, FF_GLASS) || has_flag(f_ptr->flags, FF_PERMANENT) || (dam < 50))
             break;
 
         if (known && (g_ptr->info & CAVE_MARK)) {
@@ -406,7 +406,7 @@ bool affect_feature(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITI
                 (PROJECT_GRID | PROJECT_ITEM | PROJECT_KILL | PROJECT_JUMP | PROJECT_NO_HANGEKI), -1);
         }
 
-        if (!have_flag(f_ptr->flags, FF_GLASS) || have_flag(f_ptr->flags, FF_PERMANENT) || (dam < 200))
+        if (!has_flag(f_ptr->flags, FF_GLASS) || has_flag(f_ptr->flags, FF_PERMANENT) || (dam < 200))
             break;
 
         if (known && (g_ptr->info & CAVE_MARK)) {
@@ -422,7 +422,7 @@ bool affect_feature(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITI
         if (is_mirror_grid(g_ptr) || is_glyph_grid(g_ptr) || is_explosive_rune_grid(g_ptr))
             remove_mirror(caster_ptr, y, x);
 
-        if (!have_flag(f_ptr->flags, FF_HURT_DISI) || have_flag(f_ptr->flags, FF_PERMANENT))
+        if (!has_flag(f_ptr->flags, FF_HURT_DISI) || has_flag(f_ptr->flags, FF_PERMANENT))
             break;
 
         cave_alter_feat(caster_ptr, y, x, FF_HURT_DISI);
index 3f0f2ff..6409a59 100644 (file)
@@ -62,7 +62,7 @@ bool affect_item(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITION
             if (hates_acid(o_ptr)) {
                 do_kill = TRUE;
                 note_kill = _("融けてしまった!", (plural ? " melt!" : " melts!"));
-                if (have_flag(flags, TR_IGNORE_ACID))
+                if (has_flag(flags, TR_IGNORE_ACID))
                     ignore = TRUE;
             }
 
@@ -72,7 +72,7 @@ bool affect_item(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITION
             if (hates_elec(o_ptr)) {
                 do_kill = TRUE;
                 note_kill = _("壊れてしまった!", (plural ? " are destroyed!" : " is destroyed!"));
-                if (have_flag(flags, TR_IGNORE_ELEC))
+                if (has_flag(flags, TR_IGNORE_ELEC))
                     ignore = TRUE;
             }
 
@@ -82,7 +82,7 @@ bool affect_item(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITION
             if (hates_fire(o_ptr)) {
                 do_kill = TRUE;
                 note_kill = _("燃えてしまった!", (plural ? " burn up!" : " burns up!"));
-                if (have_flag(flags, TR_IGNORE_FIRE))
+                if (has_flag(flags, TR_IGNORE_FIRE))
                     ignore = TRUE;
             }
 
@@ -92,7 +92,7 @@ bool affect_item(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITION
             if (hates_cold(o_ptr)) {
                 note_kill = _("砕け散ってしまった!", (plural ? " shatter!" : " shatters!"));
                 do_kill = TRUE;
-                if (have_flag(flags, TR_IGNORE_COLD))
+                if (has_flag(flags, TR_IGNORE_COLD))
                     ignore = TRUE;
             }
 
@@ -102,7 +102,7 @@ bool affect_item(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITION
             if (hates_fire(o_ptr)) {
                 do_kill = TRUE;
                 note_kill = _("燃えてしまった!", (plural ? " burn up!" : " burns up!"));
-                if (have_flag(flags, TR_IGNORE_FIRE))
+                if (has_flag(flags, TR_IGNORE_FIRE))
                     ignore = TRUE;
             }
 
@@ -110,7 +110,7 @@ bool affect_item(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITION
                 ignore = FALSE;
                 do_kill = TRUE;
                 note_kill = _("壊れてしまった!", (plural ? " are destroyed!" : " is destroyed!"));
-                if (have_flag(flags, TR_IGNORE_ELEC))
+                if (has_flag(flags, TR_IGNORE_ELEC))
                     ignore = TRUE;
             }
 
@@ -120,7 +120,7 @@ bool affect_item(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITION
             if (hates_fire(o_ptr)) {
                 do_kill = TRUE;
                 note_kill = _("燃えてしまった!", (plural ? " burn up!" : " burns up!"));
-                if (have_flag(flags, TR_IGNORE_FIRE))
+                if (has_flag(flags, TR_IGNORE_FIRE))
                     ignore = TRUE;
             }
 
@@ -128,7 +128,7 @@ bool affect_item(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITION
                 ignore = FALSE;
                 do_kill = TRUE;
                 note_kill = _("砕け散ってしまった!", (plural ? " shatter!" : " shatters!"));
-                if (have_flag(flags, TR_IGNORE_COLD))
+                if (has_flag(flags, TR_IGNORE_COLD))
                     ignore = TRUE;
             }
 
@@ -160,7 +160,7 @@ bool affect_item(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITION
         case GF_CHAOS: {
             do_kill = TRUE;
             note_kill = _("壊れてしまった!", (plural ? " are destroyed!" : " is destroyed!"));
-            if (have_flag(flags, TR_RES_CHAOS))
+            if (has_flag(flags, TR_RES_CHAOS))
                 ignore = TRUE;
             else if ((o_ptr->tval == TV_SCROLL) && (o_ptr->sval == SV_SCROLL_CHAOS))
                 ignore = TRUE;
index e67cf55..e3be472 100644 (file)
@@ -97,7 +97,7 @@ static void describe_chest(flavor_type *flavor_ptr)
 
 static void decide_tval_show(player_type *player_ptr, flavor_type *flavor_ptr)
 {
-    if (have_flag(flavor_ptr->tr_flags, TR_SHOW_MODS))
+    if (has_flag(flavor_ptr->tr_flags, TR_SHOW_MODS))
         flavor_ptr->show_weapon = TRUE;
 
     if (object_is_smith(player_ptr, flavor_ptr->o_ptr) && (flavor_ptr->o_ptr->xtra3 == 1 + ESSENCE_SLAY_GLOVE))
@@ -126,7 +126,7 @@ static void describe_digging(player_type *player_ptr, flavor_type *flavor_ptr)
 static void describe_bow(player_type *player_ptr, flavor_type *flavor_ptr)
 {
     flavor_ptr->power = bow_tmul(flavor_ptr->o_ptr->sval);
-    if (have_flag(flavor_ptr->tr_flags, TR_XTRA_MIGHT))
+    if (has_flag(flavor_ptr->tr_flags, TR_XTRA_MIGHT))
         flavor_ptr->power++;
 
     flavor_ptr->t = object_desc_chr(flavor_ptr->t, ' ');
@@ -355,12 +355,12 @@ static void describe_charges_rod(flavor_type *flavor_ptr)
 
 static void describe_specific_pval(flavor_type *flavor_ptr)
 {
-    if (have_flag(flavor_ptr->tr_flags, TR_SPEED)) {
+    if (has_flag(flavor_ptr->tr_flags, TR_SPEED)) {
         flavor_ptr->t = object_desc_str(flavor_ptr->t, _("加速", " to speed"));
         return;
     }
 
-    if (have_flag(flavor_ptr->tr_flags, TR_BLOWS)) {
+    if (has_flag(flavor_ptr->tr_flags, TR_BLOWS)) {
         flavor_ptr->t = object_desc_str(flavor_ptr->t, _("攻撃", " attack"));
 #ifdef JP
 #else
@@ -369,17 +369,17 @@ static void describe_specific_pval(flavor_type *flavor_ptr)
 #endif
     }
 
-    if (have_flag(flavor_ptr->tr_flags, TR_STEALTH)) {
+    if (has_flag(flavor_ptr->tr_flags, TR_STEALTH)) {
         flavor_ptr->t = object_desc_str(flavor_ptr->t, _("隠密", " to stealth"));
         return;
     }
 
-    if (have_flag(flavor_ptr->tr_flags, TR_SEARCH)) {
+    if (has_flag(flavor_ptr->tr_flags, TR_SEARCH)) {
         flavor_ptr->t = object_desc_str(flavor_ptr->t, _("探索", " to searching"));
         return;
     }
 
-    if (have_flag(flavor_ptr->tr_flags, TR_INFRA))
+    if (has_flag(flavor_ptr->tr_flags, TR_INFRA))
         flavor_ptr->t = object_desc_str(flavor_ptr->t, _("赤外線視力", " to infravision"));
 }
 
@@ -391,7 +391,7 @@ static void describe_pval(flavor_type *flavor_ptr)
     flavor_ptr->t = object_desc_chr(flavor_ptr->t, ' ');
     flavor_ptr->t = object_desc_chr(flavor_ptr->t, flavor_ptr->p1);
     flavor_ptr->t = object_desc_int(flavor_ptr->t, flavor_ptr->o_ptr->pval);
-    if (have_flag(flavor_ptr->tr_flags, TR_HIDE_TYPE)) {
+    if (has_flag(flavor_ptr->tr_flags, TR_HIDE_TYPE)) {
         flavor_ptr->t = object_desc_chr(flavor_ptr->t, flavor_ptr->p2);
         return;
     }
index f6c0c40..174c7a2 100644 (file)
@@ -159,7 +159,7 @@ static char *inscribe_flags_aux(flag_insc_table *fi_ptr, BIT_FLAGS flgs[TR_FLAG_
 #endif
 
     while (fi_ptr->english) {
-        if (have_flag(flgs, fi_ptr->flag) && (fi_ptr->except_flag == -1 || !have_flag(flgs, fi_ptr->except_flag)))
+        if (has_flag(flgs, fi_ptr->flag) && (fi_ptr->except_flag == -1 || !has_flag(flgs, fi_ptr->except_flag)))
             add_inscription(&ptr, _(kanji ? fi_ptr->japanese : fi_ptr->english, fi_ptr->english));
 
         fi_ptr++;
@@ -169,7 +169,7 @@ static char *inscribe_flags_aux(flag_insc_table *fi_ptr, BIT_FLAGS flgs[TR_FLAG_
 }
 
 /*!
- * @brief オブジェクトの特性表示記号テーブル1つに従いオブジェクトの特性フラグ配列に1つでも該当の特性があるかを返す / Special variation of have_flag for
+ * @brief オブジェクトの特性表示記号テーブル1つに従いオブジェクトの特性フラグ配列に1つでも該当の特性があるかを返す / Special variation of has_flag for
  * auto-inscription
  * @param fi_ptr 参照する特性表示記号テーブル
  * @param flgs 対応するオブジェクトのフラグ文字列
@@ -178,7 +178,7 @@ static char *inscribe_flags_aux(flag_insc_table *fi_ptr, BIT_FLAGS flgs[TR_FLAG_
 static bool have_flag_of(flag_insc_table *fi_ptr, BIT_FLAGS flgs[TR_FLAG_SIZE])
 {
     while (fi_ptr->english) {
-        if (have_flag(flgs, fi_ptr->flag) && (fi_ptr->except_flag == -1 || !have_flag(flgs, fi_ptr->except_flag)))
+        if (has_flag(flgs, fi_ptr->flag) && (fi_ptr->except_flag == -1 || !has_flag(flgs, fi_ptr->except_flag)))
             return TRUE;
 
         fi_ptr++;
@@ -219,20 +219,20 @@ char *get_ability_abbreviation(player_type *player_ptr, char *short_flavor, obje
     }
 
     if (has_dark_flag(flgs)) {
-        if (have_flag(flgs, TR_LITE_1))
+        if (has_flag(flgs, TR_LITE_1))
             remove_flag(flgs, TR_LITE_1);
 
-        if (have_flag(flgs, TR_LITE_2))
+        if (has_flag(flgs, TR_LITE_2))
             remove_flag(flgs, TR_LITE_2);
 
-        if (have_flag(flgs, TR_LITE_3))
+        if (has_flag(flgs, TR_LITE_3))
             remove_flag(flgs, TR_LITE_3);
     } else if (has_lite_flag(flgs)) {
         add_flag(flgs, TR_LITE_1);
-        if (have_flag(flgs, TR_LITE_2))
+        if (has_flag(flgs, TR_LITE_2))
             remove_flag(flgs, TR_LITE_2);
 
-        if (have_flag(flgs, TR_LITE_3))
+        if (has_flag(flgs, TR_LITE_3))
             remove_flag(flgs, TR_LITE_3);
     }
 
@@ -464,6 +464,6 @@ char *object_desc_count_japanese(char *t, object_type *o_ptr)
 }
 #endif
 
-bool has_lite_flag(BIT_FLAGS *flags) { return have_flag(flags, TR_LITE_1) || have_flag(flags, TR_LITE_2) || have_flag(flags, TR_LITE_3); }
+bool has_lite_flag(BIT_FLAGS *flags) { return has_flag(flags, TR_LITE_1) || has_flag(flags, TR_LITE_2) || has_flag(flags, TR_LITE_3); }
 
-bool has_dark_flag(BIT_FLAGS *flags) { return have_flag(flags, TR_LITE_M1) || have_flag(flags, TR_LITE_M2) || have_flag(flags, TR_LITE_M3); }
+bool has_dark_flag(BIT_FLAGS *flags) { return has_flag(flags, TR_LITE_M1) || has_flag(flags, TR_LITE_M2) || has_flag(flags, TR_LITE_M3); }
index 33230d6..03ec4fe 100644 (file)
@@ -49,7 +49,7 @@ static void check_object_known_aware(player_type *player_ptr, flavor_type *flavo
 
 static void set_base_name(flavor_type *flavor_ptr)
 {
-    if (!flavor_ptr->aware || !have_flag(flavor_ptr->tr_flags, TR_FULL_NAME))
+    if (!flavor_ptr->aware || !has_flag(flavor_ptr->tr_flags, TR_FULL_NAME))
         return;
 
     flavor_ptr->basenm = (flavor_ptr->known && (flavor_ptr->o_ptr->name1 != 0)) ? a_name + a_info[flavor_ptr->o_ptr->name1].name : flavor_ptr->kindname;
@@ -110,7 +110,7 @@ static void describe_artifact_ja(flavor_type *flavor_ptr)
         return;
     }
 
-    if (flavor_ptr->o_ptr->name1 && !have_flag(flavor_ptr->tr_flags, TR_FULL_NAME)) {
+    if (flavor_ptr->o_ptr->name1 && !has_flag(flavor_ptr->tr_flags, TR_FULL_NAME)) {
         artifact_type *a_ptr = &a_info[flavor_ptr->o_ptr->name1];
         /* '『' から始まらない伝説のアイテムの名前は最初に付加する */
         if (strncmp(a_name + a_ptr->name, "『", 2) != 0)
@@ -283,7 +283,7 @@ static void describe_basename_en(flavor_type *flavor_ptr)
 
 static void describe_artifact_body_en(flavor_type *flavor_ptr)
 {
-    if (!flavor_ptr->known || have_flag(flavor_ptr->tr_flags, TR_FULL_NAME))
+    if (!flavor_ptr->known || has_flag(flavor_ptr->tr_flags, TR_FULL_NAME))
         return;
 
     if (flavor_ptr->o_ptr->art_name) {
index 42c3dc3..fd6f3df 100644 (file)
@@ -205,7 +205,7 @@ static void shuffle_flavors(tval_type tval)
         if (!k_ptr->flavor)
             continue;
 
-        if (have_flag(k_ptr->flags, TR_FIXED_FLAVOR))
+        if (has_flag(k_ptr->flags, TR_FIXED_FLAVOR))
             continue;
 
         k_idx_list[k_idx_list_num] = i;
index 06140ff..10f983c 100644 (file)
@@ -122,7 +122,7 @@ static void make_tunnels(player_type *player_ptr, dun_data_type *dd_ptr)
         dd_ptr->tunnel_x = dd_ptr->tunn[j].x;
         g_ptr = &player_ptr->current_floor_ptr->grid_array[dd_ptr->tunnel_y][dd_ptr->tunnel_x];
         f_ptr = &f_info[g_ptr->feat];
-        if (!have_flag(f_ptr->flags, FF_MOVE) || (!have_flag(f_ptr->flags, FF_WATER) && !have_flag(f_ptr->flags, FF_LAVA))) {
+        if (!has_flag(f_ptr->flags, FF_MOVE) || (!has_flag(f_ptr->flags, FF_WATER) && !has_flag(f_ptr->flags, FF_LAVA))) {
             g_ptr->mimic = 0;
             place_grid(player_ptr, g_ptr, GB_FLOOR);
         }
index a085905..62bb673 100644 (file)
@@ -62,7 +62,7 @@ bool is_cave_empty_bold2(player_type *player_ptr, POSITION y, POSITION x)
 
 bool cave_have_flag_bold(floor_type *floor_ptr, POSITION y, POSITION x, feature_flag_type f_idx)
 {
-    return have_flag(f_info[floor_ptr->grid_array[y][x].feat].flags, f_idx);
+    return has_flag(f_info[floor_ptr->grid_array[y][x].feat].flags, f_idx);
 }
 
 /*
@@ -99,11 +99,11 @@ bool cave_los_bold(floor_type *floor_ptr, POSITION y, POSITION x) { return feat_
 /*
  * Determine if a "feature" supports "los"
  */
-bool feat_supports_los(FEAT_IDX f_idx) { return have_flag(f_info[f_idx].flags, FF_LOS); }
+bool feat_supports_los(FEAT_IDX f_idx) { return has_flag(f_info[f_idx].flags, FF_LOS); }
 
 bool cave_los_grid(grid_type *grid_ptr) { return feat_supports_los(grid_ptr->feat); }
 
-bool cave_have_flag_grid(grid_type *grid_ptr, int feature_flags) { return have_flag(f_info[grid_ptr->feat].flags, feature_flags); }
+bool cave_have_flag_grid(grid_type *grid_ptr, int feature_flags) { return has_flag(f_info[grid_ptr->feat].flags, feature_flags); }
 
 /*
  * Determine if a "legal" grid is a "clean" floor grid
index 64ed762..3bdfaed 100644 (file)
@@ -72,11 +72,11 @@ void night_falls(player_type *subject_ptr)
             for (POSITION x = 0; x < floor_ptr->width; x++) {
                 grid_type *g_ptr = &floor_ptr->grid_array[y][x];
                 feature_type *f_ptr = &f_info[get_feat_mimic(g_ptr)];
-                if (is_mirror_grid(g_ptr) || have_flag(f_ptr->flags, FF_QUEST_ENTER) || have_flag(f_ptr->flags, FF_ENTRANCE))
+                if (is_mirror_grid(g_ptr) || has_flag(f_ptr->flags, FF_QUEST_ENTER) || has_flag(f_ptr->flags, FF_ENTRANCE))
                     continue;
 
                 g_ptr->info &= ~(CAVE_GLOW);
-                if (!have_flag(f_ptr->flags, FF_REMEMBER)) {
+                if (!has_flag(f_ptr->flags, FF_REMEMBER)) {
                     g_ptr->info &= ~(CAVE_MARK);
                     note_spot(subject_ptr, y, x);
                 }
@@ -269,7 +269,7 @@ void glow_deep_lava_and_bldg(player_type *subject_ptr)
         for (POSITION x = 0; x < floor_ptr->width; x++) {
             grid_type *g_ptr;
             g_ptr = &floor_ptr->grid_array[y][x];
-            if (!have_flag(f_info[get_feat_mimic(g_ptr)].flags, FF_GLOW))
+            if (!has_flag(f_info[get_feat_mimic(g_ptr)].flags, FF_GLOW))
                 continue;
 
             for (DIRECTION i = 0; i < 9; i++) {
index 59e6416..714470d 100644 (file)
@@ -152,7 +152,7 @@ static void locate_connected_stairs(player_type *creature_ptr, floor_type *floor
             feature_type *f_ptr = &f_info[g_ptr->feat];
             bool ok = FALSE;
             if (floor_mode & CFM_UP) {
-                if (have_flag(f_ptr->flags, FF_LESS) && have_flag(f_ptr->flags, FF_STAIRS) && !have_flag(f_ptr->flags, FF_SPECIAL)) {
+                if (has_flag(f_ptr->flags, FF_LESS) && has_flag(f_ptr->flags, FF_STAIRS) && !has_flag(f_ptr->flags, FF_SPECIAL)) {
                     ok = TRUE;
                     if (g_ptr->special && g_ptr->special == sf_ptr->upper_floor_id) {
                         sx = x;
@@ -160,7 +160,7 @@ static void locate_connected_stairs(player_type *creature_ptr, floor_type *floor
                     }
                 }
             } else if (floor_mode & CFM_DOWN) {
-                if (have_flag(f_ptr->flags, FF_MORE) && have_flag(f_ptr->flags, FF_STAIRS) && !have_flag(f_ptr->flags, FF_SPECIAL)) {
+                if (has_flag(f_ptr->flags, FF_MORE) && has_flag(f_ptr->flags, FF_STAIRS) && !has_flag(f_ptr->flags, FF_SPECIAL)) {
                     ok = TRUE;
                     if (g_ptr->special && g_ptr->special == sf_ptr->lower_floor_id) {
                         sx = x;
@@ -168,7 +168,7 @@ static void locate_connected_stairs(player_type *creature_ptr, floor_type *floor
                     }
                 }
             } else {
-                if (have_flag(f_ptr->flags, FF_BLDG)) {
+                if (has_flag(f_ptr->flags, FF_BLDG)) {
                     ok = TRUE;
                 }
             }
@@ -285,10 +285,10 @@ static void set_grid_by_leaving_floor(player_type *creature_ptr, grid_type **g_p
 
     *g_ptr = &creature_ptr->current_floor_ptr->grid_array[creature_ptr->y][creature_ptr->x];
     feature_type *f_ptr =  &f_info[(*g_ptr)->feat];
-    if ((*g_ptr)->special && !have_flag(f_ptr->flags, FF_SPECIAL) && get_sf_ptr((*g_ptr)->special))
+    if ((*g_ptr)->special && !has_flag(f_ptr->flags, FF_SPECIAL) && get_sf_ptr((*g_ptr)->special))
         new_floor_id = (*g_ptr)->special;
 
-    if (have_flag(f_ptr->flags, FF_STAIRS) && have_flag(f_ptr->flags, FF_SHAFT))
+    if (has_flag(f_ptr->flags, FF_STAIRS) && has_flag(f_ptr->flags, FF_SHAFT))
         prepare_change_floor_mode(creature_ptr, CFM_SHAFT);
 }
 
index f185835..bdf81ef 100644 (file)
@@ -136,7 +136,7 @@ static void recursive_river(floor_type *floor_ptr, POSITION x1, POSITION y1, POS
                         g_ptr->mimic = 0;
 
                         /* Lava terrain glows */
-                        if (have_flag(f_info[feat1].flags, FF_LAVA)) {
+                        if (has_flag(f_info[feat1].flags, FF_LAVA)) {
                             if (!(d_info[floor_ptr->dungeon_idx].flags1 & DF1_DARKNESS))
                                 g_ptr->info |= CAVE_GLOW;
                         }
@@ -208,8 +208,8 @@ void add_river(floor_type *floor_ptr, dun_data_type *dd_ptr)
         feature_type *f_ptr = &f_info[feat1];
 
         /* Only add river if matches lake type or if have no lake at all */
-        if (!(((dd_ptr->laketype == LAKE_T_LAVA) && have_flag(f_ptr->flags, FF_LAVA))
-                || ((dd_ptr->laketype == LAKE_T_WATER) && have_flag(f_ptr->flags, FF_WATER)) || !dd_ptr->laketype)) {
+        if (!(((dd_ptr->laketype == LAKE_T_LAVA) && has_flag(f_ptr->flags, FF_LAVA))
+                || ((dd_ptr->laketype == LAKE_T_WATER) && has_flag(f_ptr->flags, FF_WATER)) || !dd_ptr->laketype)) {
             return;
         }
     }
@@ -283,8 +283,8 @@ void build_streamer(player_type *player_ptr, FEAT_IDX feat, int chance)
     feature_type *f_ptr;
 
     feature_type *streamer_ptr = &f_info[feat];
-    bool streamer_is_wall = have_flag(streamer_ptr->flags, FF_WALL) && !have_flag(streamer_ptr->flags, FF_PERMANENT);
-    bool streamer_may_have_gold = have_flag(streamer_ptr->flags, FF_MAY_HAVE_GOLD);
+    bool streamer_is_wall = has_flag(streamer_ptr->flags, FF_WALL) && !has_flag(streamer_ptr->flags, FF_PERMANENT);
+    bool streamer_may_have_gold = has_flag(streamer_ptr->flags, FF_MAY_HAVE_GOLD);
 
     /* Hack -- Choose starting point */
     floor_type *floor_ptr = player_ptr->current_floor_ptr;
@@ -313,11 +313,11 @@ void build_streamer(player_type *player_ptr, FEAT_IDX feat, int chance)
             g_ptr = &floor_ptr->grid_array[ty][tx];
             f_ptr = &f_info[g_ptr->feat];
 
-            if (have_flag(f_ptr->flags, FF_MOVE) && (have_flag(f_ptr->flags, FF_WATER) || have_flag(f_ptr->flags, FF_LAVA)))
+            if (has_flag(f_ptr->flags, FF_MOVE) && (has_flag(f_ptr->flags, FF_WATER) || has_flag(f_ptr->flags, FF_LAVA)))
                 continue;
 
             /* Do not convert permanent features */
-            if (have_flag(f_ptr->flags, FF_PERMANENT))
+            if (has_flag(f_ptr->flags, FF_PERMANENT))
                 continue;
 
             /* Only convert "granite" walls */
@@ -329,13 +329,13 @@ void build_streamer(player_type *player_ptr, FEAT_IDX feat, int chance)
             }
 
             if (g_ptr->m_idx
-                && !(have_flag(streamer_ptr->flags, FF_PLACE)
+                && !(has_flag(streamer_ptr->flags, FF_PLACE)
                     && monster_can_cross_terrain(player_ptr, feat, &r_info[floor_ptr->m_list[g_ptr->m_idx].r_idx], 0))) {
                 /* Delete the monster (if any) */
                 delete_monster(player_ptr, ty, tx);
             }
 
-            if (g_ptr->o_idx && !have_flag(streamer_ptr->flags, FF_DROP)) {
+            if (g_ptr->o_idx && !has_flag(streamer_ptr->flags, FF_DROP)) {
                 OBJECT_IDX this_o_idx, next_o_idx = 0;
 
                 /* Scan all objects in the grid */
index bd5c35d..2172ce6 100644 (file)
@@ -74,13 +74,13 @@ bool alloc_stairs(player_type *owner_ptr, FEAT_IDX feat, int num, int walls)
     int shaft_num = 0;
     feature_type *f_ptr = &f_info[feat];
     floor_type *floor_ptr = owner_ptr->current_floor_ptr;
-    if (have_flag(f_ptr->flags, FF_LESS)) {
+    if (has_flag(f_ptr->flags, FF_LESS)) {
         if (ironman_downward || !floor_ptr->dun_level)
             return TRUE;
 
         if (floor_ptr->dun_level > d_info[floor_ptr->dungeon_idx].mindepth)
             shaft_num = (randint1(num + 1)) / 2;
-    } else if (have_flag(f_ptr->flags, FF_MORE)) {
+    } else if (has_flag(f_ptr->flags, FF_MORE)) {
         QUEST_IDX q_idx = quest_number(owner_ptr, floor_ptr->dun_level);
         if (floor_ptr->dun_level > 1 && q_idx) {
             monster_race *r_ptr = &r_info[quest[q_idx].r_idx];
index 769e914..7d3c151 100644 (file)
@@ -159,8 +159,8 @@ bool pattern_seq(player_type *creature_ptr, POSITION c_y, POSITION c_x, POSITION
 {
     feature_type *cur_f_ptr = &f_info[creature_ptr->current_floor_ptr->grid_array[c_y][c_x].feat];
     feature_type *new_f_ptr = &f_info[creature_ptr->current_floor_ptr->grid_array[n_y][n_x].feat];
-    bool is_pattern_tile_cur = have_flag(cur_f_ptr->flags, FF_PATTERN);
-    bool is_pattern_tile_new = have_flag(new_f_ptr->flags, FF_PATTERN);
+    bool is_pattern_tile_cur = has_flag(cur_f_ptr->flags, FF_PATTERN);
+    bool is_pattern_tile_new = has_flag(new_f_ptr->flags, FF_PATTERN);
     if (!is_pattern_tile_cur && !is_pattern_tile_new)
         return TRUE;
 
index 89e46f8..89e0a9f 100644 (file)
@@ -472,15 +472,15 @@ void wilderness_gen(player_type *creature_ptr)
 
             feature_type *f_ptr;
             f_ptr = &f_info[get_feat_mimic(g_ptr)];
-            if (!is_mirror_grid(g_ptr) && !have_flag(f_ptr->flags, FF_QUEST_ENTER) && !have_flag(f_ptr->flags, FF_ENTRANCE)) {
+            if (!is_mirror_grid(g_ptr) && !has_flag(f_ptr->flags, FF_QUEST_ENTER) && !has_flag(f_ptr->flags, FF_ENTRANCE)) {
                 g_ptr->info &= ~(CAVE_GLOW);
-                if (!have_flag(f_ptr->flags, FF_REMEMBER))
+                if (!has_flag(f_ptr->flags, FF_REMEMBER))
                     g_ptr->info &= ~(CAVE_MARK);
 
                 continue;
             }
 
-            if (!have_flag(f_ptr->flags, FF_ENTRANCE))
+            if (!has_flag(f_ptr->flags, FF_ENTRANCE))
                 continue;
 
             g_ptr->info |= CAVE_GLOW;
@@ -496,7 +496,7 @@ void wilderness_gen(player_type *creature_ptr)
                 g_ptr = &floor_ptr->grid_array[y][x];
                 feature_type *f_ptr;
                 f_ptr = &f_info[g_ptr->feat];
-                if (!have_flag(f_ptr->flags, FF_BLDG))
+                if (!has_flag(f_ptr->flags, FF_BLDG))
                     continue;
 
                 if ((f_ptr->subtype != 4) && !((creature_ptr->town_num == 1) && (f_ptr->subtype == 0)))
index 8073d3e..7407a27 100644 (file)
@@ -52,12 +52,12 @@ void add_door(player_type *player_ptr, POSITION x, POSITION y)
 }
 
 /*!
- * @brief \89B\82µ\83h\83A\82ð\94z\92u\82·\82é
- * @param player_ptr \83v\83\8c\81[\83\84\81[\82Ö\82Ì\8eQ\8fÆ\83|\83C\83\93\83^
- * @param y \94z\92u\82µ\82½\82¢\83t\83\8d\83A\82ÌY\8dÀ\95W
- * @param x \94z\92u\82µ\82½\82¢\83t\83\8d\83A\82ÌX\8dÀ\95W
- * @param type DOOR_DEFAULT / DOOR_DOOR / DOOR_GLASS_DOOR / DOOR_CURTAIN \82Ì\82¢\82¸\82
- * @return \82È\82µ
+ * @brief �B���h�A��z�u����
+ * @param player_ptr �v���[���[�ւ̎Q�ƃ|�C���^
+ * @param y �z�u�������t���A��Y���W
+ * @param x �z�u�������t���A��X���W
+ * @param type DOOR_DEFAULT / DOOR_DOOR / DOOR_GLASS_DOOR / DOOR_CURTAIN �̂����
+ * @return �Ȃ�
  */
 void place_secret_door(player_type *player_ptr, POSITION y, POSITION x, int type)
 {
@@ -78,7 +78,7 @@ void place_secret_door(player_type *player_ptr, POSITION y, POSITION x, int type
     if (type != DOOR_CURTAIN) {
         g_ptr->mimic = feat_wall_inner;
         if (feat_supports_los(g_ptr->mimic) && !feat_supports_los(g_ptr->feat)) {
-            if (have_flag(f_info[g_ptr->mimic].flags, FF_MOVE) || have_flag(f_info[g_ptr->mimic].flags, FF_CAN_FLY)) {
+            if (has_flag(f_info[g_ptr->mimic].flags, FF_MOVE) || has_flag(f_info[g_ptr->mimic].flags, FF_CAN_FLY)) {
                 g_ptr->feat = one_in_(2) ? g_ptr->mimic : feat_ground_type[randint0(100)];
             }
 
@@ -91,11 +91,11 @@ void place_secret_door(player_type *player_ptr, POSITION y, POSITION x, int type
 }
 
 /*!
- * @brief \8c®\82Ì\82©\82©\82Á\82½\83h\83A\82ð\94z\92u\82·\82é
- * @param player_ptr \83v\83\8c\81[\83\84\81[\82Ö\82Ì\8eQ\8fÆ\83|\83C\83\93\83^
- * @param y \94z\92u\82µ\82½\82¢\83t\83\8d\83A\82ÌY\8dÀ\95W
- * @param x \94z\92u\82µ\82½\82¢\83t\83\8d\83A\82ÌX\8dÀ\95W
- * @return \82È\82µ
+ * @brief ���̂��������h�A��z�u����
+ * @param player_ptr �v���[���[�ւ̎Q�ƃ|�C���^
+ * @param y �z�u�������t���A��Y���W
+ * @param x �z�u�������t���A��X���W
+ * @return �Ȃ�
  */
 void place_locked_door(player_type *player_ptr, POSITION y, POSITION x)
 {
@@ -111,12 +111,12 @@ void place_locked_door(player_type *player_ptr, POSITION y, POSITION x)
 }
 
 /*!
- * @brief \8f\8a\92è\82Ì\88Ê\92u\82É\82³\82Ü\82´\82Ü\82È\8fó\91Ô\82â\8eí\97Þ\82Ì\83h\83A\82ð\94z\92u\82·\82é / Place a random type of door at the given location
- * @param player_ptr \83v\83\8c\81[\83\84\81[\82Ö\82Ì\8eQ\8fÆ\83|\83C\83\93\83^
- * @param y \83h\83A\82Ì\94z\92u\82ð\8e\8e\82Ý\82½\82¢\83}\83X\82ÌY\8dÀ\95W
- * @param x \83h\83A\82Ì\94z\92u\82ð\8e\8e\82Ý\82½\82¢\83}\83X\82ÌX\8dÀ\95W
- * @param room \95\94\89®\82É\90Ú\82µ\82Ä\82¢\82é\8fê\8d\87\8cü\82¯\82Ì\83h\83A\90\90¬\82©\94Û\82©
- * @return \82È\82µ
+ * @brief ����̈ʒu�ɂ��܂��܂ȏ�Ԃ��ނ̃h�A��z�u���� / Place a random type of door at the given location
+ * @param player_ptr �v���[���[�ւ̎Q�ƃ|�C���^
+ * @param y �h�A�̔z�u�����݂����}�X��Y���W
+ * @param x �h�A�̔z�u�����݂����}�X��X���W
+ * @param room �����ɐڂ��Ă���ꍇ�����̃h�A�������ۂ�
+ * @return �Ȃ�
  */
 void place_random_door(player_type *player_ptr, POSITION y, POSITION x, bool room)
 {
@@ -145,7 +145,7 @@ void place_random_door(player_type *player_ptr, POSITION y, POSITION x, bool roo
         if (type != DOOR_CURTAIN) {
             g_ptr->mimic = room ? feat_wall_outer : feat_wall_type[randint0(100)];
             if (feat_supports_los(g_ptr->mimic) && !feat_supports_los(g_ptr->feat)) {
-                if (have_flag(f_info[g_ptr->mimic].flags, FF_MOVE) || have_flag(f_info[g_ptr->mimic].flags, FF_CAN_FLY)) {
+                if (has_flag(f_info[g_ptr->mimic].flags, FF_MOVE) || has_flag(f_info[g_ptr->mimic].flags, FF_CAN_FLY)) {
                     g_ptr->feat = one_in_(2) ? g_ptr->mimic : feat_ground_type[randint0(100)];
                 }
                 g_ptr->mimic = 0;
@@ -170,12 +170,12 @@ void place_random_door(player_type *player_ptr, POSITION y, POSITION x, bool roo
 }
 
 /*!
- * @brief \8f\8a\92è\82Ì\88Ê\92u\82É\8ae\8eí\82Ì\95Â\82\82½\83h\83A\82ð\94z\92u\82·\82é / Place a random type of normal door at the given location.
- * @param player_ptr \83v\83\8c\81[\83\84\81[\82Ö\82Ì\8eQ\8fÆ\83|\83C\83\93\83^
- * @param y \83h\83A\82Ì\94z\92u\82ð\8e\8e\82Ý\82½\82¢\83}\83X\82ÌY\8dÀ\95W
- * @param x \83h\83A\82Ì\94z\92u\82ð\8e\8e\82Ý\82½\82¢\83}\83X\82ÌX\8dÀ\95W
- * @param type \83h\83A\82Ì\92n\8c`ID
- * @return \82È\82µ
+ * @brief ����̈ʒu�Ɋe��̕\82����h�A��z�u���� / Place a random type of normal door at the given location.
+ * @param player_ptr �v���[���[�ւ̎Q�ƃ|�C���^
+ * @param y �h�A�̔z�u�����݂����}�X��Y���W
+ * @param x �h�A�̔z�u�����݂����}�X��X���W
+ * @param type �h�A�̒n�`ID
+ * @return �Ȃ�
  */
 void place_closed_door(player_type *player_ptr, POSITION y, POSITION x, int type)
 {
index 12908c5..da6832c 100644 (file)
@@ -118,7 +118,7 @@ bool is_trap(player_type *player_ptr, FEAT_IDX feat)
 {
        /* 関数ポインタの都合 */
        (void)player_ptr;
-       return have_flag(f_info[feat].flags, FF_TRAP);
+       return has_flag(f_info[feat].flags, FF_TRAP);
 }
 
 /*!
@@ -132,8 +132,8 @@ bool is_closed_door(player_type *player_ptr, FEAT_IDX feat)
        (void)player_ptr;
        feature_type *f_ptr = &f_info[feat];
 
-       return (have_flag(f_ptr->flags, FF_OPEN) || have_flag(f_ptr->flags, FF_BASH)) &&
-               !have_flag(f_ptr->flags, FF_MOVE);
+       return (has_flag(f_ptr->flags, FF_OPEN) || has_flag(f_ptr->flags, FF_BASH)) &&
+               !has_flag(f_ptr->flags, FF_MOVE);
 }
 
 /*!
@@ -168,7 +168,7 @@ bool is_ascii_graphics(char x) { return (x & 0x80) == 0; }
 /*
  * Determine if a "feature" is "permanent wall"
  */
-bool permanent_wall(feature_type *f_ptr) { return have_flag(f_ptr->flags, FF_WALL) && have_flag(f_ptr->flags, FF_PERMANENT); }
+bool permanent_wall(feature_type *f_ptr) { return has_flag(f_ptr->flags, FF_WALL) && has_flag(f_ptr->flags, FF_PERMANENT); }
 
 FEAT_IDX feat_locked_door_random(int door_type)
 {
@@ -197,7 +197,7 @@ void cave_set_feat(player_type *player_ptr, POSITION y, POSITION x, FEAT_IDX fea
     if (!current_world_ptr->character_dungeon) {
         g_ptr->mimic = 0;
         g_ptr->feat = feat;
-        if (have_flag(f_ptr->flags, FF_GLOW) && !(d_info[floor_ptr->dungeon_idx].flags1 & DF1_DARKNESS)) {
+        if (has_flag(f_ptr->flags, FF_GLOW) && !(d_info[floor_ptr->dungeon_idx].flags1 & DF1_DARKNESS)) {
             for (DIRECTION i = 0; i < 9; i++) {
                 POSITION yy = y + ddy_ddd[i];
                 POSITION xx = x + ddx_ddd[i];
@@ -225,17 +225,17 @@ void cave_set_feat(player_type *player_ptr, POSITION y, POSITION x, FEAT_IDX fea
         update_local_illumination(player_ptr, y, x);
     }
 
-    if (!have_flag(f_ptr->flags, FF_REMEMBER))
+    if (!has_flag(f_ptr->flags, FF_REMEMBER))
         g_ptr->info &= ~(CAVE_MARK);
     if (g_ptr->m_idx)
         update_monster(player_ptr, g_ptr->m_idx, FALSE);
 
     note_spot(player_ptr, y, x);
     lite_spot(player_ptr, y, x);
-    if (old_los ^ have_flag(f_ptr->flags, FF_LOS))
+    if (old_los ^ has_flag(f_ptr->flags, FF_LOS))
         player_ptr->update |= PU_VIEW | PU_LITE | PU_MON_LITE | PU_MONSTERS;
 
-    if (!have_flag(f_ptr->flags, FF_GLOW) || (d_info[player_ptr->dungeon_idx].flags1 & DF1_DARKNESS))
+    if (!has_flag(f_ptr->flags, FF_GLOW) || (d_info[player_ptr->dungeon_idx].flags1 & DF1_DARKNESS))
         return;
 
     for (DIRECTION i = 0; i < 9; i++) {
@@ -267,7 +267,7 @@ void cave_set_feat(player_type *player_ptr, POSITION y, POSITION x, FEAT_IDX fea
 FEAT_IDX conv_dungeon_feat(floor_type *floor_ptr, FEAT_IDX newfeat)
 {
     feature_type *f_ptr = &f_info[newfeat];
-    if (!have_flag(f_ptr->flags, FF_CONVERT))
+    if (!has_flag(f_ptr->flags, FF_CONVERT))
         return newfeat;
 
     switch (f_ptr->subtype) {
index 5ed3e3e..71b8d2a 100644 (file)
@@ -212,18 +212,18 @@ bool new_player_spot(player_type *creature_ptr)
 
             if (max_attempts > 5000) /* Rule 1 */
             {
-                if (!have_flag(f_ptr->flags, FF_FLOOR))
+                if (!has_flag(f_ptr->flags, FF_FLOOR))
                     continue;
             } else /* Rule 2 */
             {
-                if (!have_flag(f_ptr->flags, FF_MOVE))
+                if (!has_flag(f_ptr->flags, FF_MOVE))
                     continue;
-                if (have_flag(f_ptr->flags, FF_HIT_TRAP))
+                if (has_flag(f_ptr->flags, FF_HIT_TRAP))
                     continue;
             }
 
             /* Refuse to start on anti-teleport grids in dungeon */
-            if (!have_flag(f_ptr->flags, FF_TELEPORTABLE))
+            if (!has_flag(f_ptr->flags, FF_TELEPORTABLE))
                 continue;
         }
         if (!player_can_enter(creature_ptr, g_ptr->feat, 0))
@@ -262,7 +262,7 @@ void place_bound_perm_wall(player_type *player_ptr, grid_type *g_ptr)
         feature_type *f_ptr = &f_info[g_ptr->feat];
 
         /* Hack -- Decline boundary walls with known treasure  */
-        if ((have_flag(f_ptr->flags, FF_HAS_GOLD) || have_flag(f_ptr->flags, FF_HAS_ITEM)) && !have_flag(f_ptr->flags, FF_SECRET))
+        if ((has_flag(f_ptr->flags, FF_HAS_GOLD) || has_flag(f_ptr->flags, FF_HAS_ITEM)) && !has_flag(f_ptr->flags, FF_SECRET))
             g_ptr->feat = feat_state(player_ptr, g_ptr->feat, FF_ENSECRET);
 
         /* Set boundary mimic */
@@ -545,7 +545,7 @@ void note_spot(player_type *player_ptr, POSITION y, POSITION x)
         feature_type *f_ptr = &f_info[get_feat_mimic(g_ptr)];
 
         /* Memorize some "boring" grids */
-        if (!have_flag(f_ptr->flags, FF_REMEMBER)) {
+        if (!has_flag(f_ptr->flags, FF_REMEMBER)) {
             /* Option -- memorize all torch-lit floors */
             if (view_torch_grids && ((g_ptr->info & (CAVE_LITE | CAVE_MNLT)) || player_ptr->see_nocto)) {
                 g_ptr->info |= (CAVE_MARK);
@@ -558,7 +558,7 @@ void note_spot(player_type *player_ptr, POSITION y, POSITION x)
         }
 
         /* Memorize normal grids */
-        else if (have_flag(f_ptr->flags, FF_LOS)) {
+        else if (has_flag(f_ptr->flags, FF_LOS)) {
             g_ptr->info |= (CAVE_MARK);
         }
 
@@ -958,7 +958,7 @@ FEAT_IDX feat_state(player_type *player_ptr, FEAT_IDX feat, int action)
             return conv_dungeon_feat(floor_ptr, f_ptr->state[i].result);
     }
 
-    if (have_flag(f_ptr->flags, FF_PERMANENT))
+    if (has_flag(f_ptr->flags, FF_PERMANENT))
         return feat;
 
     return (feature_action_flags[action] & FAF_DESTROY) ? conv_dungeon_feat(floor_ptr, f_ptr->destroyed) : feat;
@@ -990,14 +990,14 @@ void cave_alter_feat(player_type *player_ptr, POSITION y, POSITION x, int action
         bool found = FALSE;
 
         /* Handle gold */
-        if (have_flag(old_f_ptr->flags, FF_HAS_GOLD) && !have_flag(f_ptr->flags, FF_HAS_GOLD)) {
+        if (has_flag(old_f_ptr->flags, FF_HAS_GOLD) && !has_flag(f_ptr->flags, FF_HAS_GOLD)) {
             /* Place some gold */
             place_gold(player_ptr, y, x);
             found = TRUE;
         }
 
         /* Handle item */
-        if (have_flag(old_f_ptr->flags, FF_HAS_ITEM) && !have_flag(f_ptr->flags, FF_HAS_ITEM) && (randint0(100) < (15 - floor_ptr->dun_level / 2))) {
+        if (has_flag(old_f_ptr->flags, FF_HAS_ITEM) && !has_flag(f_ptr->flags, FF_HAS_ITEM) && (randint0(100) < (15 - floor_ptr->dun_level / 2))) {
             /* Place object */
             place_object(player_ptr, y, x, 0L);
             found = TRUE;
@@ -1011,7 +1011,7 @@ void cave_alter_feat(player_type *player_ptr, POSITION y, POSITION x, int action
     if (feature_action_flags[action] & FAF_CRASH_GLASS) {
         feature_type *old_f_ptr = &f_info[oldfeat];
 
-        if (have_flag(old_f_ptr->flags, FF_GLASS) && current_world_ptr->character_dungeon) {
+        if (has_flag(old_f_ptr->flags, FF_GLASS) && current_world_ptr->character_dungeon) {
             project(player_ptr, PROJECT_WHO_GLASS_SHARDS, 1, y, x, MIN(floor_ptr->dun_level, 100) / 4, GF_SHARDS,
                 (PROJECT_GRID | PROJECT_ITEM | PROJECT_KILL | PROJECT_HIDE | PROJECT_JUMP | PROJECT_NO_HANGEKI), -1);
         }
@@ -1047,7 +1047,7 @@ void remove_mirror(player_type *caster_ptr, POSITION y, POSITION x)
  */
 bool is_mirror_grid(grid_type *g_ptr)
 {
-    if ((g_ptr->info & CAVE_OBJECT) && have_flag(f_info[g_ptr->mimic].flags, FF_MIRROR))
+    if ((g_ptr->info & CAVE_OBJECT) && has_flag(f_info[g_ptr->mimic].flags, FF_MIRROR))
         return TRUE;
     else
         return FALSE;
@@ -1058,7 +1058,7 @@ bool is_mirror_grid(grid_type *g_ptr)
  */
 bool is_glyph_grid(grid_type *g_ptr)
 {
-    if ((g_ptr->info & CAVE_OBJECT) && have_flag(f_info[g_ptr->mimic].flags, FF_GLYPH))
+    if ((g_ptr->info & CAVE_OBJECT) && has_flag(f_info[g_ptr->mimic].flags, FF_GLYPH))
         return TRUE;
     else
         return FALSE;
@@ -1069,7 +1069,7 @@ bool is_glyph_grid(grid_type *g_ptr)
  */
 bool is_explosive_rune_grid(grid_type *g_ptr)
 {
-    if ((g_ptr->info & CAVE_OBJECT) && have_flag(f_info[g_ptr->mimic].flags, FF_MINOR_GLYPH))
+    if ((g_ptr->info & CAVE_OBJECT) && has_flag(f_info[g_ptr->mimic].flags, FF_MINOR_GLYPH))
         return TRUE;
     else
         return FALSE;
@@ -1091,7 +1091,7 @@ bool cave_monster_teleportable_bold(player_type *player_ptr, MONSTER_IDX m_idx,
     feature_type *f_ptr = &f_info[g_ptr->feat];
 
     /* Require "teleportable" space */
-    if (!have_flag(f_ptr->flags, FF_TELEPORTABLE))
+    if (!has_flag(f_ptr->flags, FF_TELEPORTABLE))
         return FALSE;
 
     if (g_ptr->m_idx && (g_ptr->m_idx != m_idx))
@@ -1127,7 +1127,7 @@ bool cave_player_teleportable_bold(player_type *player_ptr, POSITION y, POSITION
     feature_type *f_ptr = &f_info[g_ptr->feat];
 
     /* Require "teleportable" space */
-    if (!have_flag(f_ptr->flags, FF_TELEPORTABLE))
+    if (!has_flag(f_ptr->flags, FF_TELEPORTABLE))
         return FALSE;
 
     /* No magical teleporting into vaults and such */
@@ -1138,21 +1138,21 @@ bool cave_player_teleportable_bold(player_type *player_ptr, POSITION y, POSITION
         return FALSE;
 
     /* don't teleport on a trap. */
-    if (have_flag(f_ptr->flags, FF_HIT_TRAP))
+    if (has_flag(f_ptr->flags, FF_HIT_TRAP))
         return FALSE;
 
     if (!(mode & TELEPORT_PASSIVE)) {
         if (!player_can_enter(player_ptr, g_ptr->feat, 0))
             return FALSE;
 
-        if (have_flag(f_ptr->flags, FF_WATER) && have_flag(f_ptr->flags, FF_DEEP)) {
+        if (has_flag(f_ptr->flags, FF_WATER) && has_flag(f_ptr->flags, FF_DEEP)) {
             if (!player_ptr->levitation && !player_ptr->can_swim)
                 return FALSE;
         }
 
-        if (have_flag(f_ptr->flags, FF_LAVA) && !player_ptr->immune_fire && !is_invuln(player_ptr)) {
+        if (has_flag(f_ptr->flags, FF_LAVA) && !player_ptr->immune_fire && !is_invuln(player_ptr)) {
             /* Always forbid deep lava */
-            if (have_flag(f_ptr->flags, FF_DEEP))
+            if (has_flag(f_ptr->flags, FF_DEEP))
                 return FALSE;
 
             /* Forbid shallow lava when the player don't have levitation */
@@ -1170,7 +1170,7 @@ bool cave_player_teleportable_bold(player_type *player_ptr, POSITION y, POSITION
  * @param feat 地形ID
  * @return 開いた地形である場合TRUEを返す /  Return TRUE if the given feature is an open door
  */
-bool is_open(player_type *player_ptr, FEAT_IDX feat) { return have_flag(f_info[feat].flags, FF_CLOSE) && (feat != feat_state(player_ptr, feat, FF_CLOSE)); }
+bool is_open(player_type *player_ptr, FEAT_IDX feat) { return has_flag(f_info[feat].flags, FF_CLOSE) && (feat != feat_state(player_ptr, feat, FF_CLOSE)); }
 
 /*!
  * @brief プレイヤーが地形踏破可能かを返す
@@ -1186,19 +1186,19 @@ bool player_can_enter(player_type *creature_ptr, FEAT_IDX feature, BIT_FLAGS16 m
         return monster_can_cross_terrain(
             creature_ptr, feature, &r_info[creature_ptr->current_floor_ptr->m_list[creature_ptr->riding].r_idx], mode | CEM_RIDING);
 
-    if (have_flag(f_ptr->flags, FF_PATTERN)) {
+    if (has_flag(f_ptr->flags, FF_PATTERN)) {
         if (!(mode & CEM_P_CAN_ENTER_PATTERN))
             return FALSE;
     }
 
-    if (have_flag(f_ptr->flags, FF_CAN_FLY) && creature_ptr->levitation)
+    if (has_flag(f_ptr->flags, FF_CAN_FLY) && creature_ptr->levitation)
         return TRUE;
-    if (have_flag(f_ptr->flags, FF_CAN_SWIM) && creature_ptr->can_swim)
+    if (has_flag(f_ptr->flags, FF_CAN_SWIM) && creature_ptr->can_swim)
         return TRUE;
-    if (have_flag(f_ptr->flags, FF_CAN_PASS) && creature_ptr->pass_wall)
+    if (has_flag(f_ptr->flags, FF_CAN_PASS) && creature_ptr->pass_wall)
         return TRUE;
 
-    if (!have_flag(f_ptr->flags, FF_MOVE))
+    if (!has_flag(f_ptr->flags, FF_MOVE))
         return FALSE;
 
     return TRUE;
@@ -1421,4 +1421,4 @@ int count_dt(player_type *creature_ptr, POSITION *y, POSITION *x, bool (*test)(p
     return count;
 }
 
-bool feat_uses_special(FEAT_IDX f_idx) { return have_flag(f_info[(f_idx)].flags, FF_SPECIAL); }
+bool feat_uses_special(FEAT_IDX f_idx) { return has_flag(f_info[(f_idx)].flags, FF_SPECIAL); }
index 0b649f8..e9fd505 100644 (file)
@@ -170,7 +170,7 @@ FEAT_IDX choose_random_trap(player_type *trapped_ptr)
         feat = normal_traps[randint0(MAX_NORMAL_TRAPS)];
 
         /* Accept non-trapdoors */
-        if (!have_flag(f_info[feat].flags, FF_MORE))
+        if (!has_flag(f_info[feat].flags, FF_MORE))
             break;
 
         /* Hack -- no trap doors on special levels */
@@ -408,7 +408,7 @@ void hit_trap(player_type *trapped_ptr, bool break_trap)
     POSITION x = trapped_ptr->x, y = trapped_ptr->y;
     grid_type *g_ptr = &trapped_ptr->current_floor_ptr->grid_array[y][x];
     feature_type *f_ptr = &f_info[g_ptr->feat];
-    int trap_feat_type = have_flag(f_ptr->flags, FF_TRAP) ? f_ptr->subtype : NOT_TRAP;
+    int trap_feat_type = has_flag(f_ptr->flags, FF_TRAP) ? f_ptr->subtype : NOT_TRAP;
     concptr name = _("トラップ", "a trap");
 
     disturb(trapped_ptr, FALSE, TRUE);
index 3ff4d30..a6abaa9 100644 (file)
@@ -95,7 +95,7 @@ static void choise_cursed_item(player_type *creature_ptr, BIT_FLAGS flag, object
         break;
     }
 
-    if (!have_flag(flgs, (long)cf))
+    if (!has_flag(flgs, (long)cf))
         return;
 
     choices[*number] = item_num;
@@ -150,7 +150,7 @@ static void curse_teleport(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (!have_flag(flgs, TR_TELEPORT))
+        if (!has_flag(flgs, TR_TELEPORT))
             continue;
 
         if (o_ptr->inscription && angband_strchr(quark_str(o_ptr->inscription), '.'))
index 2f8214e..daae740 100644 (file)
@@ -41,7 +41,7 @@ static concptr inven_res_label = _("                               酸電火冷
  */
 static void print_im_or_res_flag(int immunity, int resistance, BIT_FLAGS *flags, FILE *fff)
 {
-    fputs(have_flag(flags, immunity) ? IM_FLAG_STR : (have_flag(flags, resistance) ? HAS_FLAG_STR : NO_FLAG_STR), fff);
+    fputs(has_flag(flags, immunity) ? IM_FLAG_STR : (has_flag(flags, resistance) ? HAS_FLAG_STR : NO_FLAG_STR), fff);
 }
 
 /*!
@@ -51,7 +51,7 @@ static void print_im_or_res_flag(int immunity, int resistance, BIT_FLAGS *flags,
  * @param fff 一時ファイルへのポインタ
  * @return なし
  */
-static void print_flag(int tr, BIT_FLAGS *flags, FILE *fff) { fputs(have_flag(flags, tr) ? HAS_FLAG_STR : NO_FLAG_STR, fff); }
+static void print_flag(int tr, BIT_FLAGS *flags, FILE *fff) { fputs(has_flag(flags, tr) ? HAS_FLAG_STR : NO_FLAG_STR, fff); }
 
 /*!
  * @brief 特殊なアイテムかどうかを調べる
index 4d54504..0af69b0 100644 (file)
@@ -308,7 +308,7 @@ void rd_item_old(player_type *player_ptr, object_type *o_ptr)
         o_ptr->k_idx = lookup_kind(TV_SOFT_ARMOR, SV_YOIYAMI_ROBE);
 
     if (z_older_than(10, 4, 9)) {
-        if (have_flag(o_ptr->art_flags, TR_MAGIC_MASTERY)) {
+        if (has_flag(o_ptr->art_flags, TR_MAGIC_MASTERY)) {
             remove_flag(o_ptr->art_flags, TR_MAGIC_MASTERY);
             add_flag(o_ptr->art_flags, TR_DEC_MANA);
         }
index f916fd2..39ad475 100644 (file)
@@ -60,7 +60,7 @@ static void give_one_ability_of_object(player_type *player_ptr, object_type *to_
         case TR_FIXED_FLAVOR:
             break;
         default:
-            if (have_flag(from_flgs, i) && !have_flag(to_flgs, i)) {
+            if (has_flag(from_flgs, i) && !has_flag(to_flgs, i)) {
                 if (!(is_pval_flag(i) && (from_ptr->pval < 1)))
                     cand[n++] = i;
             }
@@ -208,7 +208,7 @@ static PRICE repair_broken_weapon_aux(player_type *player_ptr, PRICE bcost)
         o_ptr->art_flags[i] |= k_ptr->flags[i];
     if (k_ptr->pval)
         o_ptr->pval = MAX(o_ptr->pval, randint1(k_ptr->pval));
-    if (have_flag(k_ptr->flags, TR_ACTIVATE))
+    if (has_flag(k_ptr->flags, TR_ACTIVATE))
         o_ptr->xtra2 = (byte)k_ptr->act_idx;
 
     if (dd_bonus > 0) {
@@ -227,7 +227,7 @@ static PRICE repair_broken_weapon_aux(player_type *player_ptr, PRICE bcost)
         }
     }
 
-    if (have_flag(k_ptr->flags, TR_BLOWS)) {
+    if (has_flag(k_ptr->flags, TR_BLOWS)) {
         int bmax = MIN(3, MAX(1, 40 / (o_ptr->dd * o_ptr->ds)));
         o_ptr->pval = MIN(o_ptr->pval, bmax);
     }
index 4af017c..5994d4a 100644 (file)
@@ -141,7 +141,7 @@ static void compare_weapon_aux(player_type *owner_ptr, object_type *o_ptr, int c
     mindam = calc_expect_crit(owner_ptr, o_ptr->weight, o_ptr->to_h, mindice, owner_ptr->to_h[0], dokubari);
     maxdam = calc_expect_crit(owner_ptr, o_ptr->weight, o_ptr->to_h, maxdice, owner_ptr->to_h[0], dokubari);
     show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("会心:", "Critical:"), TERM_L_RED);
-    if ((have_flag(flgs, TR_VORPAL) || hex_spelling(owner_ptr, HEX_RUNESWORD))) {
+    if ((has_flag(flgs, TR_VORPAL) || hex_spelling(owner_ptr, HEX_RUNESWORD))) {
         if ((o_ptr->name1 == ART_VORPAL_BLADE) || (o_ptr->name1 == ART_CHAINSWORD)) {
             vorpal_mult = 5;
             vorpal_div = 3;
@@ -155,7 +155,7 @@ static void compare_weapon_aux(player_type *owner_ptr, object_type *o_ptr, int c
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("切れ味:", "Vorpal:"), TERM_L_RED);
     }
 
-    if ((owner_ptr->pclass != CLASS_SAMURAI) && have_flag(flgs, TR_FORCE_WEAPON) && (owner_ptr->csp > (o_ptr->dd * o_ptr->ds / 5))) {
+    if ((owner_ptr->pclass != CLASS_SAMURAI) && has_flag(flgs, TR_FORCE_WEAPON) && (owner_ptr->csp > (o_ptr->dd * o_ptr->ds / 5))) {
         force = TRUE;
 
         mindam = calc_expect_dice(owner_ptr, mindice, 1, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
@@ -163,121 +163,121 @@ static void compare_weapon_aux(player_type *owner_ptr, object_type *o_ptr, int c
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("理力:", "Force  :"), TERM_L_BLUE);
     }
 
-    if (have_flag(flgs, TR_KILL_ANIMAL)) {
+    if (has_flag(flgs, TR_KILL_ANIMAL)) {
         mindam = calc_expect_dice(owner_ptr, mindice, 4, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         maxdam = calc_expect_dice(owner_ptr, maxdice, 4, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("動物:", "Animals:"), TERM_YELLOW);
-    } else if (have_flag(flgs, TR_SLAY_ANIMAL)) {
+    } else if (has_flag(flgs, TR_SLAY_ANIMAL)) {
         mindam = calc_expect_dice(owner_ptr, mindice, 5, 2, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         maxdam = calc_expect_dice(owner_ptr, maxdice, 5, 2, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("動物:", "Animals:"), TERM_YELLOW);
     }
 
-    if (have_flag(flgs, TR_KILL_EVIL)) {
+    if (has_flag(flgs, TR_KILL_EVIL)) {
         mindam = calc_expect_dice(owner_ptr, mindice, 7, 2, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         maxdam = calc_expect_dice(owner_ptr, maxdice, 7, 2, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("邪悪:", "Evil:"), TERM_YELLOW);
-    } else if (have_flag(flgs, TR_SLAY_EVIL)) {
+    } else if (has_flag(flgs, TR_SLAY_EVIL)) {
         mindam = calc_expect_dice(owner_ptr, mindice, 2, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         maxdam = calc_expect_dice(owner_ptr, maxdice, 2, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("邪悪:", "Evil:"), TERM_YELLOW);
     }
 
-    if (have_flag(flgs, TR_KILL_HUMAN)) {
+    if (has_flag(flgs, TR_KILL_HUMAN)) {
         mindam = calc_expect_dice(owner_ptr, mindice, 4, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         maxdam = calc_expect_dice(owner_ptr, maxdice, 4, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("人間:", "Human:"), TERM_YELLOW);
-    } else if (have_flag(flgs, TR_SLAY_HUMAN)) {
+    } else if (has_flag(flgs, TR_SLAY_HUMAN)) {
         mindam = calc_expect_dice(owner_ptr, mindice, 5, 2, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         maxdam = calc_expect_dice(owner_ptr, maxdice, 5, 2, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("人間:", "Human:"), TERM_YELLOW);
     }
 
-    if (have_flag(flgs, TR_KILL_UNDEAD)) {
+    if (has_flag(flgs, TR_KILL_UNDEAD)) {
         mindam = calc_expect_dice(owner_ptr, mindice, 5, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         maxdam = calc_expect_dice(owner_ptr, maxdice, 5, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("不死:", "Undead:"), TERM_YELLOW);
-    } else if (have_flag(flgs, TR_SLAY_UNDEAD)) {
+    } else if (has_flag(flgs, TR_SLAY_UNDEAD)) {
         mindam = calc_expect_dice(owner_ptr, mindice, 3, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         maxdam = calc_expect_dice(owner_ptr, maxdice, 3, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("不死:", "Undead:"), TERM_YELLOW);
     }
 
-    if (have_flag(flgs, TR_KILL_DEMON)) {
+    if (has_flag(flgs, TR_KILL_DEMON)) {
         mindam = calc_expect_dice(owner_ptr, mindice, 5, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         maxdam = calc_expect_dice(owner_ptr, maxdice, 5, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("悪魔:", "Demons:"), TERM_YELLOW);
-    } else if (have_flag(flgs, TR_SLAY_DEMON)) {
+    } else if (has_flag(flgs, TR_SLAY_DEMON)) {
         mindam = calc_expect_dice(owner_ptr, mindice, 3, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         maxdam = calc_expect_dice(owner_ptr, maxdice, 3, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("悪魔:", "Demons:"), TERM_YELLOW);
     }
 
-    if (have_flag(flgs, TR_KILL_ORC)) {
+    if (has_flag(flgs, TR_KILL_ORC)) {
         mindam = calc_expect_dice(owner_ptr, mindice, 5, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         maxdam = calc_expect_dice(owner_ptr, maxdice, 5, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("オーク:", "Orcs:"), TERM_YELLOW);
-    } else if (have_flag(flgs, TR_SLAY_ORC)) {
+    } else if (has_flag(flgs, TR_SLAY_ORC)) {
         mindam = calc_expect_dice(owner_ptr, mindice, 3, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         maxdam = calc_expect_dice(owner_ptr, maxdice, 3, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("オーク:", "Orcs:"), TERM_YELLOW);
     }
 
-    if (have_flag(flgs, TR_KILL_TROLL)) {
+    if (has_flag(flgs, TR_KILL_TROLL)) {
         mindam = calc_expect_dice(owner_ptr, mindice, 5, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         maxdam = calc_expect_dice(owner_ptr, maxdice, 5, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("トロル:", "Trolls:"), TERM_YELLOW);
-    } else if (have_flag(flgs, TR_SLAY_TROLL)) {
+    } else if (has_flag(flgs, TR_SLAY_TROLL)) {
         mindam = calc_expect_dice(owner_ptr, mindice, 3, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         maxdam = calc_expect_dice(owner_ptr, maxdice, 3, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("トロル:", "Trolls:"), TERM_YELLOW);
     }
 
-    if (have_flag(flgs, TR_KILL_GIANT)) {
+    if (has_flag(flgs, TR_KILL_GIANT)) {
         mindam = calc_expect_dice(owner_ptr, mindice, 5, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         maxdam = calc_expect_dice(owner_ptr, maxdice, 5, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("巨人:", "Giants:"), TERM_YELLOW);
-    } else if (have_flag(flgs, TR_SLAY_GIANT)) {
+    } else if (has_flag(flgs, TR_SLAY_GIANT)) {
         mindam = calc_expect_dice(owner_ptr, mindice, 3, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         maxdam = calc_expect_dice(owner_ptr, maxdice, 3, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("巨人:", "Giants:"), TERM_YELLOW);
     }
 
-    if (have_flag(flgs, TR_KILL_DRAGON)) {
+    if (has_flag(flgs, TR_KILL_DRAGON)) {
         mindam = calc_expect_dice(owner_ptr, mindice, 5, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         maxdam = calc_expect_dice(owner_ptr, maxdice, 5, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("竜:", "Dragons:"), TERM_YELLOW);
-    } else if (have_flag(flgs, TR_SLAY_DRAGON)) {
+    } else if (has_flag(flgs, TR_SLAY_DRAGON)) {
         mindam = calc_expect_dice(owner_ptr, mindice, 3, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         maxdam = calc_expect_dice(owner_ptr, maxdice, 3, 1, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("竜:", "Dragons:"), TERM_YELLOW);
     }
 
-    if (have_flag(flgs, TR_BRAND_ACID)) {
+    if (has_flag(flgs, TR_BRAND_ACID)) {
         mindam = calc_expect_dice(owner_ptr, mindice, 5, 2, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         maxdam = calc_expect_dice(owner_ptr, maxdice, 5, 2, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("酸属性:", "Acid:"), TERM_RED);
     }
 
-    if (have_flag(flgs, TR_BRAND_ELEC)) {
+    if (has_flag(flgs, TR_BRAND_ELEC)) {
         mindam = calc_expect_dice(owner_ptr, mindice, 5, 2, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         maxdam = calc_expect_dice(owner_ptr, maxdice, 5, 2, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("電属性:", "Elec:"), TERM_RED);
     }
 
-    if (have_flag(flgs, TR_BRAND_FIRE)) {
+    if (has_flag(flgs, TR_BRAND_FIRE)) {
         mindam = calc_expect_dice(owner_ptr, mindice, 5, 2, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         maxdam = calc_expect_dice(owner_ptr, maxdice, 5, 2, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("炎属性:", "Fire:"), TERM_RED);
     }
 
-    if (have_flag(flgs, TR_BRAND_COLD)) {
+    if (has_flag(flgs, TR_BRAND_COLD)) {
         mindam = calc_expect_dice(owner_ptr, mindice, 5, 2, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         maxdam = calc_expect_dice(owner_ptr, maxdice, 5, 2, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("冷属性:", "Cold:"), TERM_RED);
     }
 
-    if (have_flag(flgs, TR_BRAND_POIS)) {
+    if (has_flag(flgs, TR_BRAND_POIS)) {
         mindam = calc_expect_dice(owner_ptr, mindice, 5, 2, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         maxdam = calc_expect_dice(owner_ptr, maxdice, 5, 2, force, o_ptr->weight, o_ptr->to_h, owner_ptr->to_h[0], dokubari, vorpal_mult, vorpal_div);
         show_weapon_dmg(r++, col, mindam, maxdam, blow, dmg_bonus, _("毒属性:", "Poison:"), TERM_RED);
index e98aeee..3edd448 100644 (file)
@@ -32,19 +32,19 @@ typedef enum ammo_creation_type {
 } ammo_creation_type;
 
 /*!
- * @brief\81u\92e/\96î\82Ì\90»\91¢\81v\8f\88\97\9d / do_cmd_cast calls this function if the player's class is 'archer'.
+ * @brief�u�e/��̐����v���� / do_cmd_cast calls this function if the player's class is 'archer'.
  * Hook to determine if an object is contertible in an arrow/bolt
- * @return \90»\91¢\82ð\8eÀ\8dÛ\82É\8ds\82Á\82½\82çTRUE\81A\83L\83\83\83\93\83Z\83\8b\82µ\82½\82çFALSE\82ð\95Ô\82·
+ * @return ���������ۂɍs������TRUE�A�L�����Z��������FALSE��Ԃ�
  */
 bool create_ammo(player_type *creature_ptr)
 {
     char com[80];
     if (creature_ptr->lev >= 20)
-        sprintf(com, _("[S]\92e, [A]\96î, [B]\83N\83\8d\83X\83{\83E\82Ì\96î :", "Create [S]hots, Create [A]rrow or Create [B]olt ?"));
+        sprintf(com, _("[S]�e, [A]��, [B]�N���X�{�E�̖� :", "Create [S]hots, Create [A]rrow or Create [B]olt ?"));
     else if (creature_ptr->lev >= 10)
-        sprintf(com, _("[S]\92e, [A]\96î:", "Create [S]hots or Create [A]rrow ?"));
+        sprintf(com, _("[S]�e, [A]��:", "Create [S]hots or Create [A]rrow ?"));
     else
-        sprintf(com, _("[S]\92e:", "Create [S]hots ?"));
+        sprintf(com, _("[S]e:", "Create [S]hots ?"));
 
     if (cmd_limit_confused(creature_ptr) || cmd_limit_blind(creature_ptr))
         return FALSE;
@@ -81,13 +81,13 @@ bool create_ammo(player_type *creature_ptr)
         POSITION y = creature_ptr->y + ddy[dir];
         POSITION x = creature_ptr->x + ddx[dir];
         grid_type *g_ptr = &creature_ptr->current_floor_ptr->grid_array[y][x];
-        if (!have_flag(f_info[get_feat_mimic(g_ptr)].flags, FF_CAN_DIG)) {
-            msg_print(_("\82»\82±\82É\82Í\8aâ\90Î\82ª\82È\82¢\81B", "You need a pile of rubble."));
+        if (!has_flag(f_info[get_feat_mimic(g_ptr)].flags, FF_CAN_DIG)) {
+            msg_print(_("�����ɂ͊�΂��Ȃ��B", "You need a pile of rubble."));
             return FALSE;
         }
 
         if (!cave_have_flag_grid(g_ptr, FF_CAN_DIG) || !cave_have_flag_grid(g_ptr, FF_HURT_ROCK)) {
-            msg_print(_("\8dd\82·\82¬\82Ä\95ö\82¹\82È\82©\82Á\82½\81B", "You failed to make ammo."));
+            msg_print(_("�d�����ĕ����Ȃ������B", "You failed to make ammo."));
             return TRUE;
         }
 
@@ -102,7 +102,7 @@ bool create_ammo(player_type *creature_ptr)
         s16b slot = store_item_to_inventory(creature_ptr, q_ptr);
         GAME_TEXT o_name[MAX_NLEN];
         describe_flavor(creature_ptr, o_name, q_ptr, 0);
-        msg_format(_("%s\82ð\8dì\82Á\82½\81B", "You make some ammo."), o_name);
+        msg_format(_("%s��������B", "You make some ammo."), o_name);
         if (slot >= 0)
             autopick_alter_item(creature_ptr, slot, FALSE);
 
@@ -112,8 +112,8 @@ bool create_ammo(player_type *creature_ptr)
     }
     case AMMO_ARROW: {
         item_tester_hook = item_tester_hook_convertible;
-        concptr q = _("\82Ç\82Ì\83A\83C\83e\83\80\82©\82ç\8dì\82è\82Ü\82·\82©\81H ", "Convert which item? ");
-        concptr s = _("\8dÞ\97¿\82ð\8e\9d\82Á\82Ä\82¢\82È\82¢\81B", "You have no item to convert.");
+        concptr q = _("�ǂ̃A�C�e��������܂����H ", "Convert which item? ");
+        concptr s = _("�ޗ��������Ă��Ȃ��B", "You have no item to convert.");
         OBJECT_IDX item;
         object_type *q_ptr = choose_object(creature_ptr, &item, q, s, USE_INVEN | USE_FLOOR, 0);
         if (!q_ptr)
@@ -129,7 +129,7 @@ bool create_ammo(player_type *creature_ptr)
         q_ptr->discount = 99;
         GAME_TEXT o_name[MAX_NLEN];
         describe_flavor(creature_ptr, o_name, q_ptr, 0);
-        msg_format(_("%s\82ð\8dì\82Á\82½\81B", "You make some ammo."), o_name);
+        msg_format(_("%s��������B", "You make some ammo."), o_name);
         vary_item(creature_ptr, item, -1);
         s16b slot = store_item_to_inventory(creature_ptr, q_ptr);
         if (slot >= 0)
@@ -139,8 +139,8 @@ bool create_ammo(player_type *creature_ptr)
     }
     case AMMO_BOLT: {
         item_tester_hook = item_tester_hook_convertible;
-        concptr q = _("\82Ç\82Ì\83A\83C\83e\83\80\82©\82ç\8dì\82è\82Ü\82·\82©\81H ", "Convert which item? ");
-        concptr s = _("\8dÞ\97¿\82ð\8e\9d\82Á\82Ä\82¢\82È\82¢\81B", "You have no item to convert.");
+        concptr q = _("�ǂ̃A�C�e��������܂����H ", "Convert which item? ");
+        concptr s = _("�ޗ��������Ă��Ȃ��B", "You have no item to convert.");
         OBJECT_IDX item;
         object_type *q_ptr = choose_object(creature_ptr, &item, q, s, (USE_INVEN | USE_FLOOR), 0);
         if (!q_ptr)
@@ -156,7 +156,7 @@ bool create_ammo(player_type *creature_ptr)
         q_ptr->discount = 99;
         GAME_TEXT o_name[MAX_NLEN];
         describe_flavor(creature_ptr, o_name, q_ptr, 0);
-        msg_format(_("%s\82ð\8dì\82Á\82½\81B", "You make some ammo."), o_name);
+        msg_format(_("%s��������B", "You make some ammo."), o_name);
         vary_item(creature_ptr, item, -1);
         s16b slot = store_item_to_inventory(creature_ptr, q_ptr);
         if (slot >= 0)
index e4bd232..78e965b 100644 (file)
@@ -268,7 +268,7 @@ bool hayagake(player_type *creature_ptr)
     grid_type *g_ptr = &creature_ptr->current_floor_ptr->grid_array[creature_ptr->y][creature_ptr->x];
     feature_type *f_ptr = &f_info[g_ptr->feat];
 
-    if (!have_flag(f_ptr->flags, FF_PROJECT) || (!creature_ptr->levitation && have_flag(f_ptr->flags, FF_DEEP))) {
+    if (!has_flag(f_ptr->flags, FF_PROJECT) || (!creature_ptr->levitation && has_flag(f_ptr->flags, FF_DEEP))) {
         msg_print(_("ここでは素早く動けない。", "You cannot run in here."));
     } else {
         set_action(creature_ptr, ACTION_HAYAGAKE);
index 8e5830e..23ed6d8 100644 (file)
 #include "view/display-messages.h"
 
 /*!
- * @brief \95\90\8aí\82Ì\8fj\95\9f\8f\88\97\9d /
+ * @brief ����̏j������ /
  * Bless a weapon
- * @return \83^\81[\83\93\8fÁ\94ï\82ð\97v\82·\82é\8f\88\97\9d\82ð\8ds\82Á\82½\82È\82ç\82ÎTRUE\82ð\95Ô\82·
+ * @return �^�[�������v���鏈�����s�����Ȃ��TRUE��Ԃ�
  */
 bool bless_weapon(player_type *caster_ptr)
 {
     item_tester_hook = object_is_weapon;
 
-    concptr q = _("\82Ç\82Ì\83A\83C\83e\83\80\82ð\8fj\95\9f\82µ\82Ü\82·\82©\81H", "Bless which weapon? ");
-    concptr s = _("\8fj\95\9f\82Å\82«\82é\95\90\8aí\82ª\82 \82è\82Ü\82¹\82ñ\81B", "You have weapon to bless.");
+    concptr q = _("�ǂ̃A�C�e�����j�����܂����H", "Bless which weapon? ");
+    concptr s = _("�j���ł��镐�킪����܂���B", "You have weapon to bless.");
 
     OBJECT_IDX item;
     object_type *o_ptr = choose_object(caster_ptr, &item, q, s, USE_EQUIP | USE_INVEN | USE_FLOOR | IGNORE_BOTHHAND_SLOT, 0);
@@ -42,10 +42,10 @@ bool bless_weapon(player_type *caster_ptr)
     object_flags(caster_ptr, o_ptr, flgs);
 
     if (object_is_cursed(o_ptr)) {
-        if (((o_ptr->curse_flags & TRC_HEAVY_CURSE) && (randint1(100) < 33)) || have_flag(flgs, TR_ADD_L_CURSE) || have_flag(flgs, TR_ADD_H_CURSE)
+        if (((o_ptr->curse_flags & TRC_HEAVY_CURSE) && (randint1(100) < 33)) || has_flag(flgs, TR_ADD_L_CURSE) || has_flag(flgs, TR_ADD_H_CURSE)
             || (o_ptr->curse_flags & TRC_PERMA_CURSE)) {
 #ifdef JP
-            msg_format("%s\82ð\95¢\82¤\8d\95\82¢\83I\81[\83\89\82Í\8fj\95\9f\82ð\92µ\82Ë\95Ô\82µ\82½\81I", o_name);
+            msg_format("%s�𕢂������I�[���͏j���𒵂˕Ԃ����I", o_name);
 #else
             msg_format("The black aura on %s %s disrupts the blessing!", ((item >= 0) ? "your" : "the"), o_name);
 #endif
@@ -54,7 +54,7 @@ bool bless_weapon(player_type *caster_ptr)
         }
 
 #ifdef JP
-        msg_format("%s \82©\82ç\8e×\88«\82È\83I\81[\83\89\82ª\8fÁ\82¦\82½\81B", o_name);
+        msg_format("%s ����׈��ȃI�[�����������B", o_name);
 #else
         msg_format("A malignant aura leaves %s %s.", ((item >= 0) ? "your" : "the"), o_name);
 #endif
@@ -73,9 +73,9 @@ bool bless_weapon(player_type *caster_ptr)
      * artifact weapon they find. Ego weapons and normal weapons
      * can be blessed automatically.
      */
-    if (have_flag(flgs, TR_BLESSED)) {
+    if (has_flag(flgs, TR_BLESSED)) {
 #ifdef JP
-        msg_format("%s \82Í\8aù\82É\8fj\95\9f\82³\82ê\82Ä\82¢\82é\81B", o_name);
+        msg_format("%s �͊��ɏj������Ă���B", o_name);
 #else
         msg_format("%s %s %s blessed already.", ((item >= 0) ? "Your" : "The"), o_name, ((o_ptr->number > 1) ? "were" : "was"));
 #endif
@@ -84,7 +84,7 @@ bool bless_weapon(player_type *caster_ptr)
 
     if (!(object_is_artifact(o_ptr) || object_is_ego(o_ptr)) || one_in_(3)) {
 #ifdef JP
-        msg_format("%s\82Í\8bP\82¢\82½\81I", o_name);
+        msg_format("%s�͋P�����I", o_name);
 #else
         msg_format("%s %s shine%s!", ((item >= 0) ? "Your" : "The"), o_name, ((o_ptr->number > 1) ? "" : "s"));
 #endif
@@ -92,7 +92,7 @@ bool bless_weapon(player_type *caster_ptr)
         o_ptr->discount = 99;
     } else {
         bool dis_happened = FALSE;
-        msg_print(_("\82»\82Ì\95\90\8aí\82Í\8fj\95\9f\82ð\8c\99\82Á\82Ä\82¢\82é\81I", "The weapon resists your blessing!"));
+        msg_print(_("���̕���͏j���������Ă���I", "The weapon resists your blessing!"));
 
         /* Disenchant tohit */
         if (o_ptr->to_h > 0) {
@@ -122,10 +122,10 @@ bool bless_weapon(player_type *caster_ptr)
             o_ptr->to_a--;
 
         if (dis_happened) {
-            msg_print(_("\8eü\88Í\82ª\96}\97f\82È\95µ\88Í\8bC\82Å\96\9e\82¿\82½...", "There is a static feeling in the air..."));
+            msg_print(_("���Í\82��}�f�È\95��Í\8bC�Å\96�����...", "There is a static feeling in the air..."));
 
 #ifdef JP
-            msg_format("%s \82Í\97ò\89»\82µ\82½\81I", o_name);
+            msg_format("%s �͗򉻂����I", o_name);
 #else
             msg_format("%s %s %s disenchanted!", ((item >= 0) ? "Your" : "The"), o_name, ((o_ptr->number > 1) ? "were" : "was"));
 #endif
index 9e85779..39d6e5c 100644 (file)
@@ -69,7 +69,7 @@ static void hissatsu_burning_strike(player_type *attacker_ptr, samurai_slaying_t
     }
 
     /* Otherwise, take the damage */
-    if (have_flag(samurai_slaying_ptr->flags, TR_BRAND_FIRE)) {
+    if (has_flag(samurai_slaying_ptr->flags, TR_BRAND_FIRE)) {
         if (samurai_slaying_ptr->r_ptr->flags3 & RF3_HURT_FIRE) {
             if (samurai_slaying_ptr->mult < 70)
                 samurai_slaying_ptr->mult = 70;
@@ -113,7 +113,7 @@ static void hissatsu_serpent_tongue(player_type *attacker_ptr, samurai_slaying_t
     }
 
     /* Otherwise, take the damage */
-    if (have_flag(samurai_slaying_ptr->flags, TR_BRAND_POIS)) {
+    if (has_flag(samurai_slaying_ptr->flags, TR_BRAND_POIS)) {
         if (samurai_slaying_ptr->mult < 35)
             samurai_slaying_ptr->mult = 35;
     } else if (samurai_slaying_ptr->mult < 25)
@@ -180,7 +180,7 @@ static void hissatsu_midare_setsugetsuka(player_type *attacker_ptr, samurai_slay
     }
 
     /* Otherwise, take the damage */
-    if (have_flag(samurai_slaying_ptr->flags, TR_BRAND_COLD)) {
+    if (has_flag(samurai_slaying_ptr->flags, TR_BRAND_COLD)) {
         if (samurai_slaying_ptr->r_ptr->flags3 & RF3_HURT_COLD) {
             if (samurai_slaying_ptr->mult < 70)
                 samurai_slaying_ptr->mult = 70;
@@ -223,7 +223,7 @@ static void hissatsu_lightning_eagle(player_type *attacker_ptr, samurai_slaying_
     }
 
     /* Otherwise, take the damage */
-    if (have_flag(samurai_slaying_ptr->flags, TR_BRAND_ELEC)) {
+    if (has_flag(samurai_slaying_ptr->flags, TR_BRAND_ELEC)) {
         if (samurai_slaying_ptr->mult < 70)
             samurai_slaying_ptr->mult = 70;
     } else if (samurai_slaying_ptr->mult < 50)
index d03994a..34cc931 100644 (file)
@@ -37,7 +37,7 @@
 
 static bool check_hp_for_feat_destruction(feature_type *f_ptr, monster_type *m_ptr)
 {
-    return !have_flag(f_ptr->flags, FF_GLASS) || (r_info[m_ptr->r_idx].flags2 & RF2_STUPID) || (m_ptr->hp >= MAX(m_ptr->maxhp / 3, 200));
+    return !has_flag(f_ptr->flags, FF_GLASS) || (r_info[m_ptr->r_idx].flags2 & RF2_STUPID) || (m_ptr->hp >= MAX(m_ptr->maxhp / 3, 200));
 }
 
 /*!
@@ -66,8 +66,8 @@ static bool process_wall(player_type *target_ptr, turn_flags *turn_flags_ptr, mo
         return TRUE;
     }
 
-    if (((r_ptr->flags2 & RF2_KILL_WALL) != 0) && (can_cross ? !have_flag(f_ptr->flags, FF_LOS) : !turn_flags_ptr->is_riding_mon)
-        && have_flag(f_ptr->flags, FF_HURT_DISI) && !have_flag(f_ptr->flags, FF_PERMANENT) && check_hp_for_feat_destruction(f_ptr, m_ptr)) {
+    if (((r_ptr->flags2 & RF2_KILL_WALL) != 0) && (can_cross ? !has_flag(f_ptr->flags, FF_LOS) : !turn_flags_ptr->is_riding_mon)
+        && has_flag(f_ptr->flags, FF_HURT_DISI) && !has_flag(f_ptr->flags, FF_PERMANENT) && check_hp_for_feat_destruction(f_ptr, m_ptr)) {
         turn_flags_ptr->do_move = TRUE;
         if (!can_cross)
             turn_flags_ptr->must_alter_to_move = TRUE;
@@ -80,7 +80,7 @@ static bool process_wall(player_type *target_ptr, turn_flags *turn_flags_ptr, mo
         return FALSE;
 
     turn_flags_ptr->do_move = TRUE;
-    if (((r_ptr->flags2 & RF2_PASS_WALL) != 0) && (!turn_flags_ptr->is_riding_mon || target_ptr->pass_wall) && have_flag(f_ptr->flags, FF_CAN_PASS)) {
+    if (((r_ptr->flags2 & RF2_PASS_WALL) != 0) && (!turn_flags_ptr->is_riding_mon || target_ptr->pass_wall) && has_flag(f_ptr->flags, FF_CAN_PASS)) {
         turn_flags_ptr->did_pass_wall = TRUE;
     }
 
@@ -104,7 +104,7 @@ static bool bash_normal_door(player_type *target_ptr, turn_flags *turn_flags_ptr
     feature_type *f_ptr;
     f_ptr = &f_info[g_ptr->feat];
     turn_flags_ptr->do_move = FALSE;
-    if (((r_ptr->flags2 & RF2_OPEN_DOOR) == 0) || !have_flag(f_ptr->flags, FF_OPEN) || (is_pet(m_ptr) && ((target_ptr->pet_extra_flags & PF_OPEN_DOORS) == 0)))
+    if (((r_ptr->flags2 & RF2_OPEN_DOOR) == 0) || !has_flag(f_ptr->flags, FF_OPEN) || (is_pet(m_ptr) && ((target_ptr->pet_extra_flags & PF_OPEN_DOORS) == 0)))
         return TRUE;
 
     if (f_ptr->power == 0) {
@@ -134,14 +134,14 @@ static bool bash_normal_door(player_type *target_ptr, turn_flags *turn_flags_ptr
 static void bash_glass_door(player_type *target_ptr, turn_flags *turn_flags_ptr, monster_type *m_ptr, feature_type *f_ptr, bool may_bash)
 {
     monster_race *r_ptr = &r_info[m_ptr->r_idx];
-    if (!may_bash || ((r_ptr->flags2 & RF2_BASH_DOOR) == 0) || !have_flag(f_ptr->flags, FF_BASH)
+    if (!may_bash || ((r_ptr->flags2 & RF2_BASH_DOOR) == 0) || !has_flag(f_ptr->flags, FF_BASH)
         || (is_pet(m_ptr) && ((target_ptr->pet_extra_flags & PF_OPEN_DOORS) == 0)))
         return;
 
     if (!check_hp_for_feat_destruction(f_ptr, m_ptr) || (randint0(m_ptr->hp / 10) <= f_ptr->power))
         return;
 
-    if (have_flag(f_ptr->flags, FF_GLASS))
+    if (has_flag(f_ptr->flags, FF_GLASS))
         msg_print(_("ガラスが砕ける音がした!", "You hear glass breaking!"));
     else
         msg_print(_("ドアを叩き開ける音がした!", "You hear a door burst open!"));
@@ -180,7 +180,7 @@ static bool process_door(player_type *target_ptr, turn_flags *turn_flags_ptr, mo
         return TRUE;
 
     if (turn_flags_ptr->did_bash_door
-        && ((randint0(100) < 50) || (feat_state(target_ptr, g_ptr->feat, FF_OPEN) == g_ptr->feat) || have_flag(f_ptr->flags, FF_GLASS))) {
+        && ((randint0(100) < 50) || (feat_state(target_ptr, g_ptr->feat, FF_OPEN) == g_ptr->feat) || has_flag(f_ptr->flags, FF_GLASS))) {
         cave_alter_feat(target_ptr, ny, nx, FF_BASH);
         if (!monster_is_valid(m_ptr)) {
             target_ptr->update |= (PU_FLOW);
@@ -297,7 +297,7 @@ static bool process_post_dig_wall(player_type *target_ptr, turn_flags *turn_flag
         return TRUE;
 
     if (one_in_(GRINDNOISE)) {
-        if (have_flag(f_ptr->flags, FF_GLASS))
+        if (has_flag(f_ptr->flags, FF_GLASS))
             msg_print(_("何かの砕ける音が聞こえる。", "There is a crashing sound."));
         else
             msg_print(_("ギシギシいう音が聞こえる。", "There is a grinding sound."));
@@ -397,7 +397,7 @@ bool process_monster_movement(player_type *target_ptr, turn_flags *turn_flags_pt
         turn_flags_ptr->do_turn = TRUE;
         feature_type *f_ptr;
         f_ptr = &f_info[g_ptr->feat];
-        if (have_flag(f_ptr->flags, FF_TREE)) {
+        if (has_flag(f_ptr->flags, FF_TREE)) {
             if (!(r_ptr->flags7 & RF7_CAN_FLY) && !(r_ptr->flags8 & RF8_WILD_WOOD)) {
                 m_ptr->energy_need += ENERGY_NEED();
             }
index 3fc0de4..b19cd36 100644 (file)
  */
 static void update_object_flags(BIT_FLAGS *flgs, BIT_FLAGS *flg2, BIT_FLAGS *flg3, BIT_FLAGS *flgr)
 {
-    if (have_flag(flgs, TR_SLAY_DRAGON))
+    if (has_flag(flgs, TR_SLAY_DRAGON))
         *flg3 |= (RF3_DRAGON);
-    if (have_flag(flgs, TR_KILL_DRAGON))
+    if (has_flag(flgs, TR_KILL_DRAGON))
         *flg3 |= (RF3_DRAGON);
-    if (have_flag(flgs, TR_SLAY_TROLL))
+    if (has_flag(flgs, TR_SLAY_TROLL))
         *flg3 |= (RF3_TROLL);
-    if (have_flag(flgs, TR_KILL_TROLL))
+    if (has_flag(flgs, TR_KILL_TROLL))
         *flg3 |= (RF3_TROLL);
-    if (have_flag(flgs, TR_SLAY_GIANT))
+    if (has_flag(flgs, TR_SLAY_GIANT))
         *flg3 |= (RF3_GIANT);
-    if (have_flag(flgs, TR_KILL_GIANT))
+    if (has_flag(flgs, TR_KILL_GIANT))
         *flg3 |= (RF3_GIANT);
-    if (have_flag(flgs, TR_SLAY_ORC))
+    if (has_flag(flgs, TR_SLAY_ORC))
         *flg3 |= (RF3_ORC);
-    if (have_flag(flgs, TR_KILL_ORC))
+    if (has_flag(flgs, TR_KILL_ORC))
         *flg3 |= (RF3_ORC);
-    if (have_flag(flgs, TR_SLAY_DEMON))
+    if (has_flag(flgs, TR_SLAY_DEMON))
         *flg3 |= (RF3_DEMON);
-    if (have_flag(flgs, TR_KILL_DEMON))
+    if (has_flag(flgs, TR_KILL_DEMON))
         *flg3 |= (RF3_DEMON);
-    if (have_flag(flgs, TR_SLAY_UNDEAD))
+    if (has_flag(flgs, TR_SLAY_UNDEAD))
         *flg3 |= (RF3_UNDEAD);
-    if (have_flag(flgs, TR_KILL_UNDEAD))
+    if (has_flag(flgs, TR_KILL_UNDEAD))
         *flg3 |= (RF3_UNDEAD);
-    if (have_flag(flgs, TR_SLAY_ANIMAL))
+    if (has_flag(flgs, TR_SLAY_ANIMAL))
         *flg3 |= (RF3_ANIMAL);
-    if (have_flag(flgs, TR_KILL_ANIMAL))
+    if (has_flag(flgs, TR_KILL_ANIMAL))
         *flg3 |= (RF3_ANIMAL);
-    if (have_flag(flgs, TR_SLAY_EVIL))
+    if (has_flag(flgs, TR_SLAY_EVIL))
         *flg3 |= (RF3_EVIL);
-    if (have_flag(flgs, TR_KILL_EVIL))
+    if (has_flag(flgs, TR_KILL_EVIL))
         *flg3 |= (RF3_EVIL);
-    if (have_flag(flgs, TR_SLAY_HUMAN))
+    if (has_flag(flgs, TR_SLAY_HUMAN))
         *flg2 |= (RF2_HUMAN);
-    if (have_flag(flgs, TR_KILL_HUMAN))
+    if (has_flag(flgs, TR_KILL_HUMAN))
         *flg2 |= (RF2_HUMAN);
-    if (have_flag(flgs, TR_BRAND_ACID))
+    if (has_flag(flgs, TR_BRAND_ACID))
         *flgr |= (RFR_IM_ACID);
-    if (have_flag(flgs, TR_BRAND_ELEC))
+    if (has_flag(flgs, TR_BRAND_ELEC))
         *flgr |= (RFR_IM_ELEC);
-    if (have_flag(flgs, TR_BRAND_FIRE))
+    if (has_flag(flgs, TR_BRAND_FIRE))
         *flgr |= (RFR_IM_FIRE);
-    if (have_flag(flgs, TR_BRAND_COLD))
+    if (has_flag(flgs, TR_BRAND_COLD))
         *flgr |= (RFR_IM_COLD);
-    if (have_flag(flgs, TR_BRAND_POIS))
+    if (has_flag(flgs, TR_BRAND_POIS))
         *flgr |= (RFR_IM_POIS);
 }
 
index 14bd4f7..5d0d142 100644 (file)
@@ -48,7 +48,7 @@ bool monster_can_cross_terrain(player_type *player_ptr, FEAT_IDX feat, monster_r
 {
     feature_type *f_ptr = &f_info[feat];
 
-    if (have_flag(f_ptr->flags, FF_PATTERN)) {
+    if (has_flag(f_ptr->flags, FF_PATTERN)) {
         if (!(mode & CEM_RIDING)) {
             if (!(r_ptr->flags7 & RF7_CAN_FLY))
                 return FALSE;
@@ -58,24 +58,24 @@ bool monster_can_cross_terrain(player_type *player_ptr, FEAT_IDX feat, monster_r
         }
     }
 
-    if (have_flag(f_ptr->flags, FF_CAN_FLY) && (r_ptr->flags7 & RF7_CAN_FLY))
+    if (has_flag(f_ptr->flags, FF_CAN_FLY) && (r_ptr->flags7 & RF7_CAN_FLY))
         return TRUE;
-    if (have_flag(f_ptr->flags, FF_CAN_SWIM) && (r_ptr->flags7 & RF7_CAN_SWIM))
+    if (has_flag(f_ptr->flags, FF_CAN_SWIM) && (r_ptr->flags7 & RF7_CAN_SWIM))
         return TRUE;
-    if (have_flag(f_ptr->flags, FF_CAN_PASS)) {
+    if (has_flag(f_ptr->flags, FF_CAN_PASS)) {
         if ((r_ptr->flags2 & RF2_PASS_WALL) && (!(mode & CEM_RIDING) || player_ptr->pass_wall))
             return TRUE;
     }
 
-    if (!have_flag(f_ptr->flags, FF_MOVE))
+    if (!has_flag(f_ptr->flags, FF_MOVE))
         return FALSE;
 
-    if (have_flag(f_ptr->flags, FF_MOUNTAIN) && (r_ptr->flags8 & RF8_WILD_MOUNTAIN))
+    if (has_flag(f_ptr->flags, FF_MOUNTAIN) && (r_ptr->flags8 & RF8_WILD_MOUNTAIN))
         return TRUE;
 
-    if (have_flag(f_ptr->flags, FF_WATER)) {
+    if (has_flag(f_ptr->flags, FF_WATER)) {
         if (!(r_ptr->flags7 & RF7_AQUATIC)) {
-            if (have_flag(f_ptr->flags, FF_DEEP))
+            if (has_flag(f_ptr->flags, FF_DEEP))
                 return FALSE;
             else if (r_ptr->flags2 & RF2_AURA_FIRE)
                 return FALSE;
@@ -83,27 +83,27 @@ bool monster_can_cross_terrain(player_type *player_ptr, FEAT_IDX feat, monster_r
     } else if (r_ptr->flags7 & RF7_AQUATIC)
         return FALSE;
 
-    if (have_flag(f_ptr->flags, FF_LAVA)) {
+    if (has_flag(f_ptr->flags, FF_LAVA)) {
         if (!(r_ptr->flagsr & RFR_EFF_IM_FIRE_MASK))
             return FALSE;
     }
 
-    if (have_flag(f_ptr->flags, FF_COLD_PUDDLE)) {
+    if (has_flag(f_ptr->flags, FF_COLD_PUDDLE)) {
         if (!(r_ptr->flagsr & RFR_EFF_IM_COLD_MASK))
             return FALSE;
     }
 
-    if (have_flag(f_ptr->flags, FF_ELEC_PUDDLE)) {
+    if (has_flag(f_ptr->flags, FF_ELEC_PUDDLE)) {
         if (!(r_ptr->flagsr & RFR_EFF_IM_ELEC_MASK))
             return FALSE;
     }
 
-    if (have_flag(f_ptr->flags, FF_ACID_PUDDLE)) {
+    if (has_flag(f_ptr->flags, FF_ACID_PUDDLE)) {
         if (!(r_ptr->flagsr & RFR_EFF_IM_ACID_MASK))
             return FALSE;
     }
 
-    if (have_flag(f_ptr->flags, FF_POISON_PUDDLE)) {
+    if (has_flag(f_ptr->flags, FF_POISON_PUDDLE)) {
         if (!(r_ptr->flagsr & RFR_EFF_IM_POIS_MASK))
             return FALSE;
     }
index afe9beb..3a44977 100644 (file)
@@ -306,15 +306,15 @@ monsterrace_hook_type get_monster_hook(player_type *player_ptr)
 monsterrace_hook_type get_monster_hook2(player_type *player_ptr, POSITION y, POSITION x)
 {
     feature_type *f_ptr = &f_info[player_ptr->current_floor_ptr->grid_array[y][x].feat];
-    if (have_flag(f_ptr->flags, FF_WATER)) {
-        if (have_flag(f_ptr->flags, FF_DEEP)) {
+    if (has_flag(f_ptr->flags, FF_WATER)) {
+        if (has_flag(f_ptr->flags, FF_DEEP)) {
             return (monsterrace_hook_type)mon_hook_deep_water;
         } else {
             return (monsterrace_hook_type)mon_hook_shallow_water;
         }
     }
 
-    if (have_flag(f_ptr->flags, FF_LAVA)) {
+    if (has_flag(f_ptr->flags, FF_LAVA)) {
         return (monsterrace_hook_type)mon_hook_lava;
     }
 
index 99ad4ea..ba963be 100644 (file)
@@ -79,7 +79,7 @@ void decide_lite_range(player_type *target_ptr, msa_type *msa_ptr)
     msa_ptr->x_br_lite = msa_ptr->x;
     if (los(target_ptr, msa_ptr->m_ptr->fy, msa_ptr->m_ptr->fx, msa_ptr->y_br_lite, msa_ptr->x_br_lite)) {
         feature_type *f_ptr = &f_info[target_ptr->current_floor_ptr->grid_array[msa_ptr->y_br_lite][msa_ptr->x_br_lite].feat];
-        if (!have_flag(f_ptr->flags, FF_LOS) && have_flag(f_ptr->flags, FF_PROJECT) && one_in_(2))
+        if (!has_flag(f_ptr->flags, FF_LOS) && has_flag(f_ptr->flags, FF_PROJECT) && one_in_(2))
             msa_ptr->f4 &= ~(RF4_BR_LITE);
     } else if (!adjacent_grid_check(target_ptr, msa_ptr->m_ptr, &msa_ptr->y_br_lite, &msa_ptr->x_br_lite, FF_LOS, los))
         msa_ptr->f4 &= ~(RF4_BR_LITE);
@@ -94,15 +94,15 @@ void decide_lite_range(player_type *target_ptr, msa_type *msa_ptr)
 static void feature_projection(floor_type *floor_ptr, msa_type *msa_ptr)
 {
     feature_type *f_ptr = &f_info[floor_ptr->grid_array[msa_ptr->y][msa_ptr->x].feat];
-    if (have_flag(f_ptr->flags, FF_PROJECT))
+    if (has_flag(f_ptr->flags, FF_PROJECT))
         return;
 
-    if ((msa_ptr->f4 & RF4_BR_DISI) && have_flag(f_ptr->flags, FF_HURT_DISI) && one_in_(2)) {
+    if ((msa_ptr->f4 & RF4_BR_DISI) && has_flag(f_ptr->flags, FF_HURT_DISI) && one_in_(2)) {
         msa_ptr->do_spell = DO_SPELL_BR_DISI;
         return;
     }
 
-    if ((msa_ptr->f4 & RF4_BR_LITE) && have_flag(f_ptr->flags, FF_LOS) && one_in_(2))
+    if ((msa_ptr->f4 & RF4_BR_LITE) && has_flag(f_ptr->flags, FF_LOS) && one_in_(2))
         msa_ptr->do_spell = DO_SPELL_BR_LITE;
 }
 
index f39c08d..d6ec951 100644 (file)
@@ -36,9 +36,9 @@ bool eat_rock(player_type *caster_ptr)
     mimic_f_ptr = &f_info[get_feat_mimic(g_ptr)];
 
     stop_mouth(caster_ptr);
-    if (!have_flag(mimic_f_ptr->flags, FF_HURT_ROCK)) {
+    if (!has_flag(mimic_f_ptr->flags, FF_HURT_ROCK)) {
         msg_print(_("この地形は食べられない。", "You cannot eat this feature."));
-    } else if (have_flag(f_ptr->flags, FF_PERMANENT)) {
+    } else if (has_flag(f_ptr->flags, FF_PERMANENT)) {
         msg_format(_("いてっ!この%sはあなたの歯より硬い!", "Ouch!  This %s is harder than your teeth!"), f_name + mimic_f_ptr->name);
     } else if (g_ptr->m_idx) {
         monster_type *m_ptr = &caster_ptr->current_floor_ptr->m_list[g_ptr->m_idx];
@@ -46,13 +46,13 @@ bool eat_rock(player_type *caster_ptr)
 
         if (!m_ptr->ml || !is_pet(m_ptr))
             do_cmd_attack(caster_ptr, y, x, 0);
-    } else if (have_flag(f_ptr->flags, FF_TREE)) {
+    } else if (has_flag(f_ptr->flags, FF_TREE)) {
         msg_print(_("木の味は好きじゃない!", "You don't like the woody taste!"));
-    } else if (have_flag(f_ptr->flags, FF_GLASS)) {
+    } else if (has_flag(f_ptr->flags, FF_GLASS)) {
         msg_print(_("ガラスの味は好きじゃない!", "You don't like the glassy taste!"));
-    } else if (have_flag(f_ptr->flags, FF_DOOR) || have_flag(f_ptr->flags, FF_CAN_DIG)) {
+    } else if (has_flag(f_ptr->flags, FF_DOOR) || has_flag(f_ptr->flags, FF_CAN_DIG)) {
         (void)set_food(caster_ptr, caster_ptr->food + 3000);
-    } else if (have_flag(f_ptr->flags, FF_MAY_HAVE_GOLD) || have_flag(f_ptr->flags, FF_HAS_GOLD)) {
+    } else if (has_flag(f_ptr->flags, FF_MAY_HAVE_GOLD) || has_flag(f_ptr->flags, FF_HAS_GOLD)) {
         (void)set_food(caster_ptr, caster_ptr->food + 5000);
     } else {
         msg_format(_("この%sはとてもおいしい!", "This %s is very filling!"), f_name + mimic_f_ptr->name);
index c42541c..278d02f 100644 (file)
 #include "view/display-messages.h"
 
 /*!
- * @brief \94­\93®\82É\82æ\82é\83u\83\8c\83X\82Ì\91®\90«\82ð\83A\83C\83e\83\80\82Ì\91Ï\90«\82©\82ç\91I\91ð\82µ\81A\8eÀ\8ds\82ð\8f\88\97\9d\82·\82é\81B/ Dragon breath activation
- * @details \91Î\8fÛ\82Æ\82È\82é\91Ï\90«\82Í dragonbreath_info \83e\81[\83u\83\8b\82ð\8eQ\8fÆ\82Ì\82±\82ƁB
- * @param user_ptr \83v\83\8c\81[\83\84\81[\82Ö\82Ì\8eQ\8fÆ\83|\83C\83\93\83^
- * @param o_ptr \91Î\8fÛ\82Ì\83I\83u\83W\83F\83N\83g\8d\\91¢\91Ì\83|\83C\83\93\83^
- * @return \94­\93®\8eÀ\8ds\82Ì\90¥\94ñ\82ð\95Ô\82·\81B
+ * @brief �����ɂ��u���X�̑������A�C�e���̑ϐ�����I�����A���s����������B/ Dragon breath activation
+ * @details �ΏۂƂȂ�ϐ��� dragonbreath_info �e�[�u�����Q�Ƃ̂��ƁB
+ * @param user_ptr �v���[���[�ւ̎Q�ƃ|�C���^
+ * @param o_ptr �Ώۂ̃I�u�W�F�N�g�\���̃|�C���^
+ * @return �������s�̐����Ԃ��B
  */
 bool activate_dragon_breath(player_type *user_ptr, object_type *o_ptr)
 {
@@ -31,7 +31,7 @@ bool activate_dragon_breath(player_type *user_ptr, object_type *o_ptr)
     int n = 0;
     concptr name[20];
     for (int i = 0; dragonbreath_info[i].flag != 0; i++) {
-        if (have_flag(resistance_flags, dragonbreath_info[i].flag)) {
+        if (has_flag(resistance_flags, dragonbreath_info[i].flag)) {
             type[n] = dragonbreath_info[i].type;
             name[n] = dragonbreath_info[i].name;
             n++;
@@ -48,7 +48,7 @@ bool activate_dragon_breath(player_type *user_ptr, object_type *o_ptr)
         stop_hex_spell_all(user_ptr);
 
     int t = randint0(n);
-    msg_format(_("\82 \82È\82½\82Í%s\82Ì\83u\83\8c\83X\82ð\93f\82¢\82½\81B", "You breathe %s."), name[t]);
+    msg_format(_("���Ȃ���%s�̃u���X��f�����B", "You breathe %s."), name[t]);
     fire_breath(user_ptr, type[t], dir, 250, 4);
     return TRUE;
 }
index 3604276..7cffff9 100644 (file)
@@ -209,19 +209,19 @@ void apply_magic_accessary(player_type *owner_ptr, object_type *o_ptr, DEPTH lev
                     break;
                 case 3:
                 case 4:
-                    if (have_flag(k_ptr->flags, TR_REGEN))
+                    if (has_flag(k_ptr->flags, TR_REGEN))
                         break;
                     o_ptr->name2 = EGO_RING_REGEN;
                     break;
                 case 5:
                 case 6:
-                    if (have_flag(k_ptr->flags, TR_LITE_1))
+                    if (has_flag(k_ptr->flags, TR_LITE_1))
                         break;
                     o_ptr->name2 = EGO_RING_LITE;
                     break;
                 case 7:
                 case 8:
-                    if (have_flag(k_ptr->flags, TR_TELEPORT))
+                    if (has_flag(k_ptr->flags, TR_TELEPORT))
                         break;
                     o_ptr->name2 = EGO_RING_TELEPORT;
                     break;
@@ -243,17 +243,17 @@ void apply_magic_accessary(player_type *owner_ptr, object_type *o_ptr, DEPTH lev
                     o_ptr->name2 = EGO_RING_SLAY;
                     break;
                 case 14:
-                    if ((have_flag(k_ptr->flags, TR_STR)) || o_ptr->to_h || o_ptr->to_d)
+                    if ((has_flag(k_ptr->flags, TR_STR)) || o_ptr->to_h || o_ptr->to_d)
                         break;
                     o_ptr->name2 = EGO_RING_WIZARD;
                     break;
                 case 15:
-                    if (have_flag(k_ptr->flags, TR_ACTIVATE))
+                    if (has_flag(k_ptr->flags, TR_ACTIVATE))
                         break;
                     o_ptr->name2 = EGO_RING_HERO;
                     break;
                 case 16:
-                    if (have_flag(k_ptr->flags, TR_ACTIVATE))
+                    if (has_flag(k_ptr->flags, TR_ACTIVATE))
                         break;
                     if (tmp > 8)
                         o_ptr->name2 = EGO_RING_MANA_BALL;
@@ -263,10 +263,10 @@ void apply_magic_accessary(player_type *owner_ptr, object_type *o_ptr, DEPTH lev
                         o_ptr->name2 = EGO_RING_MAGIC_MIS;
                     break;
                 case 17:
-                    if (have_flag(k_ptr->flags, TR_ACTIVATE))
+                    if (has_flag(k_ptr->flags, TR_ACTIVATE))
                         break;
-                    if (!(have_flag(k_ptr->flags, TR_RES_FIRE))
-                        && (have_flag(k_ptr->flags, TR_RES_COLD) || have_flag(k_ptr->flags, TR_RES_ELEC) || have_flag(k_ptr->flags, TR_RES_ACID)))
+                    if (!(has_flag(k_ptr->flags, TR_RES_FIRE))
+                        && (has_flag(k_ptr->flags, TR_RES_COLD) || has_flag(k_ptr->flags, TR_RES_ELEC) || has_flag(k_ptr->flags, TR_RES_ACID)))
                         break;
                     if (tmp > 7)
                         o_ptr->name2 = EGO_RING_DRAGON_F;
@@ -276,10 +276,10 @@ void apply_magic_accessary(player_type *owner_ptr, object_type *o_ptr, DEPTH lev
                         o_ptr->name2 = EGO_RING_FIRE_BOLT;
                     break;
                 case 18:
-                    if (have_flag(k_ptr->flags, TR_ACTIVATE))
+                    if (has_flag(k_ptr->flags, TR_ACTIVATE))
                         break;
-                    if (!(have_flag(k_ptr->flags, TR_RES_COLD))
-                        && (have_flag(k_ptr->flags, TR_RES_FIRE) || have_flag(k_ptr->flags, TR_RES_ELEC) || have_flag(k_ptr->flags, TR_RES_ACID)))
+                    if (!(has_flag(k_ptr->flags, TR_RES_COLD))
+                        && (has_flag(k_ptr->flags, TR_RES_FIRE) || has_flag(k_ptr->flags, TR_RES_ELEC) || has_flag(k_ptr->flags, TR_RES_ACID)))
                         break;
                     if (tmp > 7)
                         o_ptr->name2 = EGO_RING_DRAGON_C;
@@ -289,10 +289,10 @@ void apply_magic_accessary(player_type *owner_ptr, object_type *o_ptr, DEPTH lev
                         o_ptr->name2 = EGO_RING_COLD_BOLT;
                     break;
                 case 19:
-                    if (have_flag(k_ptr->flags, TR_ACTIVATE))
+                    if (has_flag(k_ptr->flags, TR_ACTIVATE))
                         break;
-                    if (!(have_flag(k_ptr->flags, TR_RES_ELEC))
-                        && (have_flag(k_ptr->flags, TR_RES_COLD) || have_flag(k_ptr->flags, TR_RES_FIRE) || have_flag(k_ptr->flags, TR_RES_ACID)))
+                    if (!(has_flag(k_ptr->flags, TR_RES_ELEC))
+                        && (has_flag(k_ptr->flags, TR_RES_COLD) || has_flag(k_ptr->flags, TR_RES_FIRE) || has_flag(k_ptr->flags, TR_RES_ACID)))
                         break;
                     if (tmp > 4)
                         o_ptr->name2 = EGO_RING_ELEC_BALL;
@@ -300,10 +300,10 @@ void apply_magic_accessary(player_type *owner_ptr, object_type *o_ptr, DEPTH lev
                         o_ptr->name2 = EGO_RING_ELEC_BOLT;
                     break;
                 case 20:
-                    if (have_flag(k_ptr->flags, TR_ACTIVATE))
+                    if (has_flag(k_ptr->flags, TR_ACTIVATE))
                         break;
-                    if (!(have_flag(k_ptr->flags, TR_RES_ACID))
-                        && (have_flag(k_ptr->flags, TR_RES_COLD) || have_flag(k_ptr->flags, TR_RES_ELEC) || have_flag(k_ptr->flags, TR_RES_FIRE)))
+                    if (!(has_flag(k_ptr->flags, TR_RES_ACID))
+                        && (has_flag(k_ptr->flags, TR_RES_COLD) || has_flag(k_ptr->flags, TR_RES_ELEC) || has_flag(k_ptr->flags, TR_RES_FIRE)))
                         break;
                     if (tmp > 4)
                         o_ptr->name2 = EGO_RING_ACID_BALL;
@@ -411,7 +411,7 @@ void apply_magic_accessary(player_type *owner_ptr, object_type *o_ptr, DEPTH lev
                 object_kind *k_ptr = &k_info[o_ptr->k_idx];
                 switch (randint1(5)) {
                 case 1:
-                    if (have_flag(k_ptr->flags, TR_DRAIN_EXP))
+                    if (has_flag(k_ptr->flags, TR_DRAIN_EXP))
                         break;
                     o_ptr->name2 = EGO_RING_DRAIN_EXP;
                     break;
@@ -419,12 +419,12 @@ void apply_magic_accessary(player_type *owner_ptr, object_type *o_ptr, DEPTH lev
                     o_ptr->name2 = EGO_RING_NO_MELEE;
                     break;
                 case 3:
-                    if (have_flag(k_ptr->flags, TR_AGGRAVATE))
+                    if (has_flag(k_ptr->flags, TR_AGGRAVATE))
                         break;
                     o_ptr->name2 = EGO_RING_AGGRAVATE;
                     break;
                 case 4:
-                    if (have_flag(k_ptr->flags, TR_TY_CURSE))
+                    if (has_flag(k_ptr->flags, TR_TY_CURSE))
                         break;
                     o_ptr->name2 = EGO_RING_TY_CURSE;
                     break;
@@ -530,7 +530,7 @@ void apply_magic_accessary(player_type *owner_ptr, object_type *o_ptr, DEPTH lev
                 switch (randint1(21)) {
                 case 1:
                 case 2:
-                    if (have_flag(k_ptr->flags, TR_SLOW_DIGEST))
+                    if (has_flag(k_ptr->flags, TR_SLOW_DIGEST))
                         break;
                     o_ptr->name2 = EGO_AMU_SLOW_D;
                     break;
@@ -542,18 +542,18 @@ void apply_magic_accessary(player_type *owner_ptr, object_type *o_ptr, DEPTH lev
                     break;
                 case 5:
                 case 6:
-                    if (have_flag(k_ptr->flags, TR_SEE_INVIS))
+                    if (has_flag(k_ptr->flags, TR_SEE_INVIS))
                         break;
                     o_ptr->name2 = EGO_AMU_SEE_INVIS;
                     break;
                 case 7:
                 case 8:
-                    if (have_flag(k_ptr->flags, TR_HOLD_EXP))
+                    if (has_flag(k_ptr->flags, TR_HOLD_EXP))
                         break;
                     o_ptr->name2 = EGO_AMU_HOLD_EXP;
                     break;
                 case 9:
-                    if (have_flag(k_ptr->flags, TR_LEVITATION))
+                    if (has_flag(k_ptr->flags, TR_LEVITATION))
                         break;
                     o_ptr->name2 = EGO_AMU_LEVITATION;
                     break;
@@ -563,7 +563,7 @@ void apply_magic_accessary(player_type *owner_ptr, object_type *o_ptr, DEPTH lev
                     o_ptr->name2 = EGO_AMU_AC;
                     break;
                 case 12:
-                    if (have_flag(k_ptr->flags, TR_RES_FIRE))
+                    if (has_flag(k_ptr->flags, TR_RES_FIRE))
                         break;
                     if (m_bonus(10, level) > 8)
                         o_ptr->name2 = EGO_AMU_RES_FIRE_;
@@ -571,7 +571,7 @@ void apply_magic_accessary(player_type *owner_ptr, object_type *o_ptr, DEPTH lev
                         o_ptr->name2 = EGO_AMU_RES_FIRE;
                     break;
                 case 13:
-                    if (have_flag(k_ptr->flags, TR_RES_COLD))
+                    if (has_flag(k_ptr->flags, TR_RES_COLD))
                         break;
                     if (m_bonus(10, level) > 8)
                         o_ptr->name2 = EGO_AMU_RES_COLD_;
@@ -579,7 +579,7 @@ void apply_magic_accessary(player_type *owner_ptr, object_type *o_ptr, DEPTH lev
                         o_ptr->name2 = EGO_AMU_RES_COLD;
                     break;
                 case 14:
-                    if (have_flag(k_ptr->flags, TR_RES_ELEC))
+                    if (has_flag(k_ptr->flags, TR_RES_ELEC))
                         break;
                     if (m_bonus(10, level) > 8)
                         o_ptr->name2 = EGO_AMU_RES_ELEC_;
@@ -587,7 +587,7 @@ void apply_magic_accessary(player_type *owner_ptr, object_type *o_ptr, DEPTH lev
                         o_ptr->name2 = EGO_AMU_RES_ELEC;
                     break;
                 case 15:
-                    if (have_flag(k_ptr->flags, TR_RES_ACID))
+                    if (has_flag(k_ptr->flags, TR_RES_ACID))
                         break;
                     if (m_bonus(10, level) > 8)
                         o_ptr->name2 = EGO_AMU_RES_ACID_;
@@ -659,7 +659,7 @@ void apply_magic_accessary(player_type *owner_ptr, object_type *o_ptr, DEPTH lev
                 object_kind *k_ptr = &k_info[o_ptr->k_idx];
                 switch (randint1(5)) {
                 case 1:
-                    if (have_flag(k_ptr->flags, TR_DRAIN_EXP))
+                    if (has_flag(k_ptr->flags, TR_DRAIN_EXP))
                         break;
                     o_ptr->name2 = EGO_AMU_DRAIN_EXP;
                     break;
@@ -667,12 +667,12 @@ void apply_magic_accessary(player_type *owner_ptr, object_type *o_ptr, DEPTH lev
                     o_ptr->name2 = EGO_AMU_FOOL;
                     break;
                 case 3:
-                    if (have_flag(k_ptr->flags, TR_AGGRAVATE))
+                    if (has_flag(k_ptr->flags, TR_AGGRAVATE))
                         break;
                     o_ptr->name2 = EGO_AMU_AGGRAVATE;
                     break;
                 case 4:
-                    if (have_flag(k_ptr->flags, TR_TY_CURSE))
+                    if (has_flag(k_ptr->flags, TR_TY_CURSE))
                         break;
                     o_ptr->name2 = EGO_AMU_TY_CURSE;
                     break;
index 71b1c78..ab34f11 100644 (file)
@@ -307,12 +307,12 @@ void apply_magic(player_type *owner_ptr, object_type *o_ptr, DEPTH lev, BIT_FLAG
             }
 
             if (e_ptr->max_pval) {
-                if ((o_ptr->name2 == EGO_HA) && (have_flag(o_ptr->art_flags, TR_BLOWS))) {
+                if ((o_ptr->name2 == EGO_HA) && (has_flag(o_ptr->art_flags, TR_BLOWS))) {
                     o_ptr->pval++;
                     if ((lev > 60) && one_in_(3) && ((o_ptr->dd * (o_ptr->ds + 1)) < 15))
                         o_ptr->pval++;
                 } else if (o_ptr->name2 == EGO_DEMON) {
-                    if (have_flag(o_ptr->art_flags, TR_BLOWS)) {
+                    if (has_flag(o_ptr->art_flags, TR_BLOWS)) {
                         o_ptr->pval += randint1(2);
                     } else {
                         o_ptr->pval += randint1(e_ptr->max_pval);
index 3317312..729e8cb 100644 (file)
@@ -72,7 +72,7 @@ void curse_equipment(player_type *owner_ptr, PERCENTAGE chance, PERCENTAGE heavy
     describe_flavor(owner_ptr, o_name, o_ptr, (OD_OMIT_PREFIX | OD_NAME_ONLY));
 
     /* Extra, biased saving throw for blessed items */
-    if (have_flag(oflgs, TR_BLESSED)) {
+    if (has_flag(oflgs, TR_BLESSED)) {
 #ifdef JP
         msg_format("祝福された%sは呪いを跳ね返した!", o_name);
 #else
index d93edd4..e4c16f7 100644 (file)
@@ -25,7 +25,7 @@ bool item_tester_hook_activate(player_type *player_ptr, object_type *o_ptr)
         return FALSE;
 
     object_flags(player_ptr, o_ptr, flags);
-    if (have_flag(flags, TR_ACTIVATE))
+    if (has_flag(flags, TR_ACTIVATE))
         return TRUE;
 
     return FALSE;
@@ -65,7 +65,7 @@ bool item_tester_hook_use(player_type *player_ptr, object_type *o_ptr)
         for (i = INVEN_RARM; i < INVEN_TOTAL; i++) {
             if (&player_ptr->inventory_list[i] == o_ptr) {
                 object_flags(player_ptr, o_ptr, flags);
-                if (have_flag(flags, TR_ACTIVATE))
+                if (has_flag(flags, TR_ACTIVATE))
                     return TRUE;
             }
         }
index a0f77b9..70c999e 100644 (file)
@@ -122,7 +122,7 @@ bool object_is_favorite(player_type *player_ptr, object_type *o_ptr)
         BIT_FLAGS flgs[TR_FLAG_SIZE];
         object_flags_known(player_ptr, o_ptr, flgs);
 
-        if (!have_flag(flgs, TR_BLESSED) && !(o_ptr->tval == TV_HAFTED))
+        if (!has_flag(flgs, TR_BLESSED) && !(o_ptr->tval == TV_HAFTED))
             return FALSE;
         break;
     }
@@ -140,7 +140,7 @@ bool object_is_favorite(player_type *player_ptr, object_type *o_ptr)
         object_flags_known(player_ptr, o_ptr, flgs);
 
         /* Is it known to be suitable to using while riding? */
-        if (!(have_flag(flgs, TR_RIDING)))
+        if (!(has_flag(flgs, TR_RIDING)))
             return FALSE;
 
         break;
index 7878813..e830705 100644 (file)
@@ -193,7 +193,7 @@ int set_acid_destroy(player_type *owner_ptr, object_type *o_ptr)
        BIT_FLAGS flgs[TR_FLAG_SIZE];
        if (!hates_acid(o_ptr)) return FALSE;
        object_flags(owner_ptr, o_ptr, flgs);
-       if (have_flag(flgs, TR_IGNORE_ACID)) return FALSE;
+       if (has_flag(flgs, TR_IGNORE_ACID)) return FALSE;
        return TRUE;
 }
 
@@ -210,7 +210,7 @@ int set_elec_destroy(player_type *owner_ptr, object_type *o_ptr)
        BIT_FLAGS flgs[TR_FLAG_SIZE];
        if (!hates_elec(o_ptr)) return FALSE;
        object_flags(owner_ptr, o_ptr, flgs);
-       if (have_flag(flgs, TR_IGNORE_ELEC)) return FALSE;
+       if (has_flag(flgs, TR_IGNORE_ELEC)) return FALSE;
        return TRUE;
 }
 
@@ -227,7 +227,7 @@ int set_fire_destroy(player_type *owner_ptr, object_type *o_ptr)
        BIT_FLAGS flgs[TR_FLAG_SIZE];
        if (!hates_fire(o_ptr)) return FALSE;
        object_flags(owner_ptr, o_ptr, flgs);
-       if (have_flag(flgs, TR_IGNORE_FIRE)) return FALSE;
+       if (has_flag(flgs, TR_IGNORE_FIRE)) return FALSE;
        return TRUE;
 }
 
@@ -244,7 +244,7 @@ int set_cold_destroy(player_type *owner_ptr, object_type *o_ptr)
        BIT_FLAGS flgs[TR_FLAG_SIZE];
        if (!hates_cold(o_ptr)) return FALSE;
        object_flags(owner_ptr, o_ptr, flgs);
-       if (have_flag(flgs, TR_IGNORE_COLD)) return FALSE;
+       if (has_flag(flgs, TR_IGNORE_COLD)) return FALSE;
        return TRUE;
 }
 
index cd6822d..74bbff4 100644 (file)
@@ -45,7 +45,7 @@ static concptr item_activation_dragon_breath(player_type *owner_ptr, object_type
     strcpy(desc, _("", "breath "));
 
     for (int i = 0; dragonbreath_info[i].flag != 0; i++) {
-        if (have_flag(flgs, dragonbreath_info[i].flag)) {
+        if (has_flag(flgs, dragonbreath_info[i].flag)) {
             if (n > 0)
                 strcat(desc, _("、", ", "));
 
@@ -158,7 +158,7 @@ concptr activation_explanation(player_type *owner_ptr, object_type *o_ptr)
 {
     BIT_FLAGS flgs[TR_FLAG_SIZE];
     object_flags(owner_ptr, o_ptr, flgs);
-    if (!(have_flag(flgs, TR_ACTIVATE)))
+    if (!(has_flag(flgs, TR_ACTIVATE)))
         return (_("なし", "nothing"));
 
     if (activation_index(owner_ptr, o_ptr)) {
index 12ff51c..d67e7aa 100644 (file)
@@ -46,368 +46,368 @@ PRICE flag_cost(player_type *player_ptr, object_type *o_ptr, int plusses)
     /*
      * Calucurate values of remaining flags
      */
-    if (have_flag(flgs, TR_STR))
+    if (has_flag(flgs, TR_STR))
         total += (1500 * plusses);
-    if (have_flag(flgs, TR_INT))
+    if (has_flag(flgs, TR_INT))
         total += (1500 * plusses);
-    if (have_flag(flgs, TR_WIS))
+    if (has_flag(flgs, TR_WIS))
         total += (1500 * plusses);
-    if (have_flag(flgs, TR_DEX))
+    if (has_flag(flgs, TR_DEX))
         total += (1500 * plusses);
-    if (have_flag(flgs, TR_CON))
+    if (has_flag(flgs, TR_CON))
         total += (1500 * plusses);
-    if (have_flag(flgs, TR_CHR))
+    if (has_flag(flgs, TR_CHR))
         total += (750 * plusses);
-    if (have_flag(flgs, TR_MAGIC_MASTERY))
+    if (has_flag(flgs, TR_MAGIC_MASTERY))
         total += (600 * plusses);
-    if (have_flag(flgs, TR_STEALTH))
+    if (has_flag(flgs, TR_STEALTH))
         total += (250 * plusses);
-    if (have_flag(flgs, TR_SEARCH))
+    if (has_flag(flgs, TR_SEARCH))
         total += (100 * plusses);
-    if (have_flag(flgs, TR_INFRA))
+    if (has_flag(flgs, TR_INFRA))
         total += (150 * plusses);
-    if (have_flag(flgs, TR_TUNNEL))
+    if (has_flag(flgs, TR_TUNNEL))
         total += (175 * plusses);
-    if ((have_flag(flgs, TR_SPEED)) && (plusses > 0))
+    if ((has_flag(flgs, TR_SPEED)) && (plusses > 0))
         total += (10000 + (2500 * plusses));
-    if ((have_flag(flgs, TR_BLOWS)) && (plusses > 0))
+    if ((has_flag(flgs, TR_BLOWS)) && (plusses > 0))
         total += (10000 + (2500 * plusses));
 
     PRICE tmp_cost = 0;
     int count = 0;
-    if (have_flag(flgs, TR_CHAOTIC)) {
+    if (has_flag(flgs, TR_CHAOTIC)) {
         total += 5000;
         count++;
     }
-    if (have_flag(flgs, TR_VAMPIRIC)) {
+    if (has_flag(flgs, TR_VAMPIRIC)) {
         total += 6500;
         count++;
     }
-    if (have_flag(flgs, TR_FORCE_WEAPON)) {
+    if (has_flag(flgs, TR_FORCE_WEAPON)) {
         tmp_cost += 2500;
         count++;
     }
-    if (have_flag(flgs, TR_KILL_ANIMAL)) {
+    if (has_flag(flgs, TR_KILL_ANIMAL)) {
         tmp_cost += 2800;
         count++;
-    } else if (have_flag(flgs, TR_SLAY_ANIMAL)) {
+    } else if (has_flag(flgs, TR_SLAY_ANIMAL)) {
         tmp_cost += 1800;
         count++;
     }
-    if (have_flag(flgs, TR_KILL_EVIL)) {
+    if (has_flag(flgs, TR_KILL_EVIL)) {
         tmp_cost += 3300;
         count++;
-    } else if (have_flag(flgs, TR_SLAY_EVIL)) {
+    } else if (has_flag(flgs, TR_SLAY_EVIL)) {
         tmp_cost += 2300;
         count++;
     }
-    if (have_flag(flgs, TR_KILL_HUMAN)) {
+    if (has_flag(flgs, TR_KILL_HUMAN)) {
         tmp_cost += 2800;
         count++;
-    } else if (have_flag(flgs, TR_SLAY_HUMAN)) {
+    } else if (has_flag(flgs, TR_SLAY_HUMAN)) {
         tmp_cost += 1800;
         count++;
     }
-    if (have_flag(flgs, TR_KILL_UNDEAD)) {
+    if (has_flag(flgs, TR_KILL_UNDEAD)) {
         tmp_cost += 2800;
         count++;
-    } else if (have_flag(flgs, TR_SLAY_UNDEAD)) {
+    } else if (has_flag(flgs, TR_SLAY_UNDEAD)) {
         tmp_cost += 1800;
         count++;
     }
-    if (have_flag(flgs, TR_KILL_DEMON)) {
+    if (has_flag(flgs, TR_KILL_DEMON)) {
         tmp_cost += 2800;
         count++;
-    } else if (have_flag(flgs, TR_SLAY_DEMON)) {
+    } else if (has_flag(flgs, TR_SLAY_DEMON)) {
         tmp_cost += 1800;
         count++;
     }
-    if (have_flag(flgs, TR_KILL_ORC)) {
+    if (has_flag(flgs, TR_KILL_ORC)) {
         tmp_cost += 2500;
         count++;
-    } else if (have_flag(flgs, TR_SLAY_ORC)) {
+    } else if (has_flag(flgs, TR_SLAY_ORC)) {
         tmp_cost += 1500;
         count++;
     }
-    if (have_flag(flgs, TR_KILL_TROLL)) {
+    if (has_flag(flgs, TR_KILL_TROLL)) {
         tmp_cost += 2800;
         count++;
-    } else if (have_flag(flgs, TR_SLAY_TROLL)) {
+    } else if (has_flag(flgs, TR_SLAY_TROLL)) {
         tmp_cost += 1800;
         count++;
     }
-    if (have_flag(flgs, TR_KILL_GIANT)) {
+    if (has_flag(flgs, TR_KILL_GIANT)) {
         tmp_cost += 2800;
         count++;
-    } else if (have_flag(flgs, TR_SLAY_GIANT)) {
+    } else if (has_flag(flgs, TR_SLAY_GIANT)) {
         tmp_cost += 1800;
         count++;
     }
-    if (have_flag(flgs, TR_KILL_DRAGON)) {
+    if (has_flag(flgs, TR_KILL_DRAGON)) {
         tmp_cost += 2800;
         count++;
-    } else if (have_flag(flgs, TR_SLAY_DRAGON)) {
+    } else if (has_flag(flgs, TR_SLAY_DRAGON)) {
         tmp_cost += 1800;
         count++;
     }
 
-    if (have_flag(flgs, TR_VORPAL)) {
+    if (has_flag(flgs, TR_VORPAL)) {
         tmp_cost += 2500;
         count++;
     }
-    if (have_flag(flgs, TR_IMPACT)) {
+    if (has_flag(flgs, TR_IMPACT)) {
         tmp_cost += 2500;
         count++;
     }
-    if (have_flag(flgs, TR_BRAND_POIS)) {
+    if (has_flag(flgs, TR_BRAND_POIS)) {
         tmp_cost += 3800;
         count++;
     }
-    if (have_flag(flgs, TR_BRAND_ACID)) {
+    if (has_flag(flgs, TR_BRAND_ACID)) {
         tmp_cost += 3800;
         count++;
     }
-    if (have_flag(flgs, TR_BRAND_ELEC)) {
+    if (has_flag(flgs, TR_BRAND_ELEC)) {
         tmp_cost += 3800;
         count++;
     }
-    if (have_flag(flgs, TR_BRAND_FIRE)) {
+    if (has_flag(flgs, TR_BRAND_FIRE)) {
         tmp_cost += 2500;
         count++;
     }
-    if (have_flag(flgs, TR_BRAND_COLD)) {
+    if (has_flag(flgs, TR_BRAND_COLD)) {
         tmp_cost += 2500;
         count++;
     }
     total += (tmp_cost * count);
 
-    if (have_flag(flgs, TR_SUST_STR))
+    if (has_flag(flgs, TR_SUST_STR))
         total += 850;
-    if (have_flag(flgs, TR_SUST_INT))
+    if (has_flag(flgs, TR_SUST_INT))
         total += 850;
-    if (have_flag(flgs, TR_SUST_WIS))
+    if (has_flag(flgs, TR_SUST_WIS))
         total += 850;
-    if (have_flag(flgs, TR_SUST_DEX))
+    if (has_flag(flgs, TR_SUST_DEX))
         total += 850;
-    if (have_flag(flgs, TR_SUST_CON))
+    if (has_flag(flgs, TR_SUST_CON))
         total += 850;
-    if (have_flag(flgs, TR_SUST_CHR))
+    if (has_flag(flgs, TR_SUST_CHR))
         total += 250;
-    if (have_flag(flgs, TR_RIDING))
+    if (has_flag(flgs, TR_RIDING))
         total += 0;
-    if (have_flag(flgs, TR_EASY_SPELL))
+    if (has_flag(flgs, TR_EASY_SPELL))
         total += 1500;
-    if (have_flag(flgs, TR_THROW))
+    if (has_flag(flgs, TR_THROW))
         total += 5000;
-    if (have_flag(flgs, TR_FREE_ACT))
+    if (has_flag(flgs, TR_FREE_ACT))
         total += 4500;
-    if (have_flag(flgs, TR_HOLD_EXP))
+    if (has_flag(flgs, TR_HOLD_EXP))
         total += 8500;
 
     tmp_cost = 0;
     count = 0;
-    if (have_flag(flgs, TR_IM_ACID)) {
+    if (has_flag(flgs, TR_IM_ACID)) {
         tmp_cost += 15000;
         count += 2;
     }
-    if (have_flag(flgs, TR_IM_ELEC)) {
+    if (has_flag(flgs, TR_IM_ELEC)) {
         tmp_cost += 15000;
         count += 2;
     }
-    if (have_flag(flgs, TR_IM_FIRE)) {
+    if (has_flag(flgs, TR_IM_FIRE)) {
         tmp_cost += 15000;
         count += 2;
     }
-    if (have_flag(flgs, TR_IM_COLD)) {
+    if (has_flag(flgs, TR_IM_COLD)) {
         tmp_cost += 15000;
         count += 2;
     }
-    if (have_flag(flgs, TR_REFLECT)) {
+    if (has_flag(flgs, TR_REFLECT)) {
         tmp_cost += 5000;
         count += 2;
     }
-    if (have_flag(flgs, TR_RES_ACID)) {
+    if (has_flag(flgs, TR_RES_ACID)) {
         tmp_cost += 500;
         count++;
     }
-    if (have_flag(flgs, TR_RES_ELEC)) {
+    if (has_flag(flgs, TR_RES_ELEC)) {
         tmp_cost += 500;
         count++;
     }
-    if (have_flag(flgs, TR_RES_FIRE)) {
+    if (has_flag(flgs, TR_RES_FIRE)) {
         tmp_cost += 500;
         count++;
     }
-    if (have_flag(flgs, TR_RES_COLD)) {
+    if (has_flag(flgs, TR_RES_COLD)) {
         tmp_cost += 500;
         count++;
     }
-    if (have_flag(flgs, TR_RES_POIS)) {
+    if (has_flag(flgs, TR_RES_POIS)) {
         tmp_cost += 1000;
         count += 2;
     }
-    if (have_flag(flgs, TR_RES_FEAR)) {
+    if (has_flag(flgs, TR_RES_FEAR)) {
         tmp_cost += 1000;
         count += 2;
     }
-    if (have_flag(flgs, TR_RES_LITE)) {
+    if (has_flag(flgs, TR_RES_LITE)) {
         tmp_cost += 800;
         count += 2;
     }
-    if (have_flag(flgs, TR_RES_DARK)) {
+    if (has_flag(flgs, TR_RES_DARK)) {
         tmp_cost += 800;
         count += 2;
     }
-    if (have_flag(flgs, TR_RES_BLIND)) {
+    if (has_flag(flgs, TR_RES_BLIND)) {
         tmp_cost += 900;
         count += 2;
     }
-    if (have_flag(flgs, TR_RES_CONF)) {
+    if (has_flag(flgs, TR_RES_CONF)) {
         tmp_cost += 900;
         count += 2;
     }
-    if (have_flag(flgs, TR_RES_SOUND)) {
+    if (has_flag(flgs, TR_RES_SOUND)) {
         tmp_cost += 900;
         count += 2;
     }
-    if (have_flag(flgs, TR_RES_SHARDS)) {
+    if (has_flag(flgs, TR_RES_SHARDS)) {
         tmp_cost += 900;
         count += 2;
     }
-    if (have_flag(flgs, TR_RES_NETHER)) {
+    if (has_flag(flgs, TR_RES_NETHER)) {
         tmp_cost += 900;
         count += 2;
     }
-    if (have_flag(flgs, TR_RES_NEXUS)) {
+    if (has_flag(flgs, TR_RES_NEXUS)) {
         tmp_cost += 900;
         count += 2;
     }
-    if (have_flag(flgs, TR_RES_CHAOS)) {
+    if (has_flag(flgs, TR_RES_CHAOS)) {
         tmp_cost += 1000;
         count += 2;
     }
-    if (have_flag(flgs, TR_RES_DISEN)) {
+    if (has_flag(flgs, TR_RES_DISEN)) {
         tmp_cost += 2000;
         count += 2;
     }
     total += (tmp_cost * count);
 
-    if (have_flag(flgs, TR_SH_FIRE))
+    if (has_flag(flgs, TR_SH_FIRE))
         total += 5000;
-    if (have_flag(flgs, TR_SH_ELEC))
+    if (has_flag(flgs, TR_SH_ELEC))
         total += 5000;
-    if (have_flag(flgs, TR_SH_COLD))
+    if (has_flag(flgs, TR_SH_COLD))
         total += 5000;
-    if (have_flag(flgs, TR_NO_TELE))
+    if (has_flag(flgs, TR_NO_TELE))
         total -= 10000;
-    if (have_flag(flgs, TR_NO_MAGIC))
+    if (has_flag(flgs, TR_NO_MAGIC))
         total += 2500;
-    if (have_flag(flgs, TR_TY_CURSE))
+    if (has_flag(flgs, TR_TY_CURSE))
         total -= 15000;
-    if (have_flag(flgs, TR_HIDE_TYPE))
+    if (has_flag(flgs, TR_HIDE_TYPE))
         total += 0;
-    if (have_flag(flgs, TR_SHOW_MODS))
+    if (has_flag(flgs, TR_SHOW_MODS))
         total += 0;
-    if (have_flag(flgs, TR_LEVITATION))
+    if (has_flag(flgs, TR_LEVITATION))
         total += 1250;
-    if (have_flag(flgs, TR_LITE_1))
+    if (has_flag(flgs, TR_LITE_1))
         total += 1500;
-    if (have_flag(flgs, TR_LITE_2))
+    if (has_flag(flgs, TR_LITE_2))
         total += 2500;
-    if (have_flag(flgs, TR_LITE_3))
+    if (has_flag(flgs, TR_LITE_3))
         total += 4000;
-    if (have_flag(flgs, TR_LITE_M1))
+    if (has_flag(flgs, TR_LITE_M1))
         total -= 1500;
-    if (have_flag(flgs, TR_LITE_M2))
+    if (has_flag(flgs, TR_LITE_M2))
         total -= 2500;
-    if (have_flag(flgs, TR_LITE_M3))
+    if (has_flag(flgs, TR_LITE_M3))
         total -= 4000;
-    if (have_flag(flgs, TR_SEE_INVIS))
+    if (has_flag(flgs, TR_SEE_INVIS))
         total += 2000;
-    if (have_flag(flgs, TR_TELEPATHY))
+    if (has_flag(flgs, TR_TELEPATHY))
         total += 20000;
-    if (have_flag(flgs, TR_ESP_ANIMAL))
+    if (has_flag(flgs, TR_ESP_ANIMAL))
         total += 1000;
-    if (have_flag(flgs, TR_ESP_UNDEAD))
+    if (has_flag(flgs, TR_ESP_UNDEAD))
         total += 1000;
-    if (have_flag(flgs, TR_ESP_DEMON))
+    if (has_flag(flgs, TR_ESP_DEMON))
         total += 1000;
-    if (have_flag(flgs, TR_ESP_ORC))
+    if (has_flag(flgs, TR_ESP_ORC))
         total += 1000;
-    if (have_flag(flgs, TR_ESP_TROLL))
+    if (has_flag(flgs, TR_ESP_TROLL))
         total += 1000;
-    if (have_flag(flgs, TR_ESP_GIANT))
+    if (has_flag(flgs, TR_ESP_GIANT))
         total += 1000;
-    if (have_flag(flgs, TR_ESP_DRAGON))
+    if (has_flag(flgs, TR_ESP_DRAGON))
         total += 1000;
-    if (have_flag(flgs, TR_ESP_HUMAN))
+    if (has_flag(flgs, TR_ESP_HUMAN))
         total += 1000;
-    if (have_flag(flgs, TR_ESP_EVIL))
+    if (has_flag(flgs, TR_ESP_EVIL))
         total += 15000;
-    if (have_flag(flgs, TR_ESP_GOOD))
+    if (has_flag(flgs, TR_ESP_GOOD))
         total += 2000;
-    if (have_flag(flgs, TR_ESP_NONLIVING))
+    if (has_flag(flgs, TR_ESP_NONLIVING))
         total += 2000;
-    if (have_flag(flgs, TR_ESP_UNIQUE))
+    if (has_flag(flgs, TR_ESP_UNIQUE))
         total += 10000;
-    if (have_flag(flgs, TR_SLOW_DIGEST))
+    if (has_flag(flgs, TR_SLOW_DIGEST))
         total += 750;
-    if (have_flag(flgs, TR_REGEN))
+    if (has_flag(flgs, TR_REGEN))
         total += 2500;
-    if (have_flag(flgs, TR_WARNING))
+    if (has_flag(flgs, TR_WARNING))
         total += 2000;
-    if (have_flag(flgs, TR_DEC_MANA))
+    if (has_flag(flgs, TR_DEC_MANA))
         total += 10000;
-    if (have_flag(flgs, TR_XTRA_MIGHT))
+    if (has_flag(flgs, TR_XTRA_MIGHT))
         total += 2250;
-    if (have_flag(flgs, TR_XTRA_SHOTS))
+    if (has_flag(flgs, TR_XTRA_SHOTS))
         total += 10000;
-    if (have_flag(flgs, TR_IGNORE_ACID))
+    if (has_flag(flgs, TR_IGNORE_ACID))
         total += 100;
-    if (have_flag(flgs, TR_IGNORE_ELEC))
+    if (has_flag(flgs, TR_IGNORE_ELEC))
         total += 100;
-    if (have_flag(flgs, TR_IGNORE_FIRE))
+    if (has_flag(flgs, TR_IGNORE_FIRE))
         total += 100;
-    if (have_flag(flgs, TR_IGNORE_COLD))
+    if (has_flag(flgs, TR_IGNORE_COLD))
         total += 100;
-    if (have_flag(flgs, TR_ACTIVATE))
+    if (has_flag(flgs, TR_ACTIVATE))
         total += 100;
-    if (have_flag(flgs, TR_DRAIN_EXP))
+    if (has_flag(flgs, TR_DRAIN_EXP))
         total -= 12500;
-    if (have_flag(flgs, TR_DRAIN_HP))
+    if (has_flag(flgs, TR_DRAIN_HP))
         total -= 12500;
-    if (have_flag(flgs, TR_DRAIN_MANA))
+    if (has_flag(flgs, TR_DRAIN_MANA))
         total -= 12500;
-    if (have_flag(flgs, TR_CALL_ANIMAL))
+    if (has_flag(flgs, TR_CALL_ANIMAL))
         total -= 12500;
-    if (have_flag(flgs, TR_CALL_DEMON))
+    if (has_flag(flgs, TR_CALL_DEMON))
         total -= 10000;
-    if (have_flag(flgs, TR_CALL_DRAGON))
+    if (has_flag(flgs, TR_CALL_DRAGON))
         total -= 10000;
-    if (have_flag(flgs, TR_CALL_UNDEAD))
+    if (has_flag(flgs, TR_CALL_UNDEAD))
         total -= 10000;
-    if (have_flag(flgs, TR_COWARDICE))
+    if (has_flag(flgs, TR_COWARDICE))
         total -= 5000;
-    if (have_flag(flgs, TR_LOW_MELEE))
+    if (has_flag(flgs, TR_LOW_MELEE))
         total -= 5000;
-    if (have_flag(flgs, TR_LOW_AC))
+    if (has_flag(flgs, TR_LOW_AC))
         total -= 5000;
-    if (have_flag(flgs, TR_LOW_MAGIC))
+    if (has_flag(flgs, TR_LOW_MAGIC))
         total -= 15000;
-    if (have_flag(flgs, TR_FAST_DIGEST))
+    if (has_flag(flgs, TR_FAST_DIGEST))
         total -= 10000;
-    if (have_flag(flgs, TR_SLOW_REGEN))
+    if (has_flag(flgs, TR_SLOW_REGEN))
         total -= 10000;
-    if (have_flag(flgs, TR_TELEPORT)) {
+    if (has_flag(flgs, TR_TELEPORT)) {
         if (object_is_cursed(o_ptr))
             total -= 7500;
         else
             total += 250;
     }
 
-    if (have_flag(flgs, TR_AGGRAVATE))
+    if (has_flag(flgs, TR_AGGRAVATE))
         total -= 10000;
-    if (have_flag(flgs, TR_BLESSED))
+    if (has_flag(flgs, TR_BLESSED))
         total += 750;
     if (o_ptr->curse_flags & TR_ADD_L_CURSE)
         total -= 5000;
@@ -421,7 +421,7 @@ PRICE flag_cost(player_type *player_ptr, object_type *o_ptr, int plusses)
         total -= 15000;
 
     /* Also, give some extra for activatable powers... */
-    if (o_ptr->art_name && (have_flag(o_ptr->art_flags, TR_ACTIVATE))) {
+    if (o_ptr->art_name && (has_flag(o_ptr->art_flags, TR_ACTIVATE))) {
         const activation_type *const act_ptr = find_activation_info(player_ptr, o_ptr);
         if (act_ptr) {
             total += act_ptr->value;
index df62c88..a674356 100644 (file)
@@ -193,31 +193,31 @@ PRICE object_value_real(player_type *player_ptr, object_type *o_ptr)
         if (o_ptr->pval < 0)
             return (0L);
 
-        if (have_flag(flgs, TR_STR))
+        if (has_flag(flgs, TR_STR))
             value += (o_ptr->pval * 200L);
-        if (have_flag(flgs, TR_INT))
+        if (has_flag(flgs, TR_INT))
             value += (o_ptr->pval * 200L);
-        if (have_flag(flgs, TR_WIS))
+        if (has_flag(flgs, TR_WIS))
             value += (o_ptr->pval * 200L);
-        if (have_flag(flgs, TR_DEX))
+        if (has_flag(flgs, TR_DEX))
             value += (o_ptr->pval * 200L);
-        if (have_flag(flgs, TR_CON))
+        if (has_flag(flgs, TR_CON))
             value += (o_ptr->pval * 200L);
-        if (have_flag(flgs, TR_CHR))
+        if (has_flag(flgs, TR_CHR))
             value += (o_ptr->pval * 200L);
-        if (have_flag(flgs, TR_MAGIC_MASTERY))
+        if (has_flag(flgs, TR_MAGIC_MASTERY))
             value += (o_ptr->pval * 100);
-        if (have_flag(flgs, TR_STEALTH))
+        if (has_flag(flgs, TR_STEALTH))
             value += (o_ptr->pval * 100L);
-        if (have_flag(flgs, TR_SEARCH))
+        if (has_flag(flgs, TR_SEARCH))
             value += (o_ptr->pval * 100L);
-        if (have_flag(flgs, TR_INFRA))
+        if (has_flag(flgs, TR_INFRA))
             value += (o_ptr->pval * 50L);
-        if (have_flag(flgs, TR_TUNNEL))
+        if (has_flag(flgs, TR_TUNNEL))
             value += (o_ptr->pval * 50L);
-        if (have_flag(flgs, TR_BLOWS))
+        if (has_flag(flgs, TR_BLOWS))
             value += (o_ptr->pval * 5000L);
-        if (have_flag(flgs, TR_SPEED))
+        if (has_flag(flgs, TR_SPEED))
             value += (o_ptr->pval * 10000L);
         break;
     }
index 3c9cc94..461f0b8 100644 (file)
@@ -58,7 +58,7 @@ object_type *choose_warning_item(player_type *creature_ptr)
         object_type *o_ptr = &creature_ptr->inventory_list[i];
 
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_WARNING)) {
+        if (has_flag(flgs, TR_WARNING)) {
             choices[number] = i;
             number++;
         }
index 889df87..a6c8433 100644 (file)
@@ -55,7 +55,7 @@ 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(player_ptr, o_ptr);
         info[i++] = _("...ただし装備していなければならない。", "...if it is being worn.");
@@ -82,7 +82,7 @@ bool screen_object(player_type *player_ptr, object_type *o_ptr, BIT_FLAGS mode)
         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_EASY_SPELL)) {
         info[i++] = _("それは魔法の難易度を下げる。", "It affects your ability to cast spells.");
     }
 
@@ -112,23 +112,23 @@ bool screen_object(player_type *player_ptr, object_type *o_ptr, BIT_FLAGS mode)
         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) && o_ptr->name2 != EGO_LITE_DARKNESS)
         rad += 1;
-    if (have_flag(flgs, TR_LITE_2) && o_ptr->name2 != EGO_LITE_DARKNESS)
+    if (has_flag(flgs, TR_LITE_2) && o_ptr->name2 != EGO_LITE_DARKNESS)
         rad += 2;
-    if (have_flag(flgs, TR_LITE_3) && o_ptr->name2 != EGO_LITE_DARKNESS)
+    if (has_flag(flgs, TR_LITE_3) && o_ptr->name2 != EGO_LITE_DARKNESS)
         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) && o_ptr->name2 != EGO_LITE_DARKNESS) {
         if (rad > 0)
             sprintf(desc, _("それは燃料補給によって明かり(半径 %d)を授ける。", "It provides light (radius %d) when fueled."), (int)rad);
     } else {
@@ -145,7 +145,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 {
@@ -154,391 +154,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.");
     }
 
@@ -558,15 +558,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.");
     }
 
@@ -574,59 +574,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.");
     }
 
@@ -659,22 +659,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.");
         }
     }
index cc1d1f3..ec898e9 100644 (file)
@@ -24,7 +24,7 @@
  */
 void decide_blood_sucking(player_type *attacker_ptr, player_attack_type *pa_ptr)
 {
-    bool is_blood_sucker = have_flag(pa_ptr->flags, TR_VAMPIRIC);
+    bool is_blood_sucker = has_flag(pa_ptr->flags, TR_VAMPIRIC);
     is_blood_sucker |= pa_ptr->chaos_effect == CE_VAMPIRIC;
     is_blood_sucker |= pa_ptr->mode == HISSATSU_DRAIN;
     is_blood_sucker |= hex_spelling(attacker_ptr, HEX_VAMP_BLADE);
index 4ea268b..c479cf4 100644 (file)
@@ -201,7 +201,7 @@ static void calc_num_blow(player_type *attacker_ptr, player_attack_type *pa_ptr)
  */
 static chaotic_effect select_chaotic_effect(player_type *attacker_ptr, player_attack_type *pa_ptr)
 {
-    if (!(have_flag(pa_ptr->flags, TR_CHAOTIC)) || one_in_(2))
+    if (!(has_flag(pa_ptr->flags, TR_CHAOTIC)) || one_in_(2))
         return CE_NONE;
 
     if (one_in_(10))
@@ -377,7 +377,7 @@ static void apply_actual_attack(
     decide_blood_sucking(attacker_ptr, pa_ptr);
 
     // process_monk_attackの中でplayer_type->magic_num1[0] を書き換えているので、ここでhex_spelling() の判定をしないとダメ.
-    bool vorpal_cut = (have_flag(pa_ptr->flags, TR_VORPAL) || hex_spelling(attacker_ptr, HEX_RUNESWORD)) && (randint1(vorpal_chance * 3 / 2) == 1)
+    bool vorpal_cut = (has_flag(pa_ptr->flags, TR_VORPAL) || hex_spelling(attacker_ptr, HEX_RUNESWORD)) && (randint1(vorpal_chance * 3 / 2) == 1)
         && !is_zantetsu_nullified;
 
     calc_attack_damage(attacker_ptr, pa_ptr, do_quake, vorpal_cut, vorpal_chance);
index 1f2a8ec..277f3a1 100644 (file)
@@ -18,61 +18,61 @@ void set_equipment_influence(player_type *creature_ptr, self_info_type *si_ptr)
             si_ptr->flags[j] |= tflgs[j];
     }
 
-    if (have_flag(si_ptr->flags, TR_STR))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\98r\97Í\82Í\91\95\94õ\82É\82æ\82Á\82Ä\89e\8b¿\82ð\8eó\82¯\82Ä\82¢\82é\81B", "Your strength is affected by your equipment.");
+    if (has_flag(si_ptr->flags, TR_STR))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̘r�͂͑����ɂ���ĉe�����󂯂Ă���B", "Your strength is affected by your equipment.");
 
-    if (have_flag(si_ptr->flags, TR_INT))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\92m\94\\82Í\91\95\94õ\82É\82æ\82Á\82Ä\89e\8b¿\82ð\8eó\82¯\82Ä\82¢\82é\81B", "Your intelligence is affected by your equipment.");
+    if (has_flag(si_ptr->flags, TR_INT))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̒m�\�͑����ɂ���ĉe�����󂯂Ă���B", "Your intelligence is affected by your equipment.");
 
-    if (have_flag(si_ptr->flags, TR_WIS))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\8c«\82³\82Í\91\95\94õ\82É\82æ\82Á\82Ä\89e\8b¿\82ð\8eó\82¯\82Ä\82¢\82é\81B", "Your wisdom is affected by your equipment.");
+    if (has_flag(si_ptr->flags, TR_WIS))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̌����͑����ɂ���ĉe�����󂯂Ă���B", "Your wisdom is affected by your equipment.");
 
-    if (have_flag(si_ptr->flags, TR_DEX))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\8aí\97p\82³\82Í\91\95\94õ\82É\82æ\82Á\82Ä\89e\8b¿\82ð\8eó\82¯\82Ä\82¢\82é\81B", "Your dexterity is affected by your equipment.");
+    if (has_flag(si_ptr->flags, TR_DEX))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̊�p���͑����ɂ���ĉe�����󂯂Ă���B", "Your dexterity is affected by your equipment.");
 
-    if (have_flag(si_ptr->flags, TR_CON))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\91Ï\8bv\97Í\82Í\91\95\94õ\82É\82æ\82Á\82Ä\89e\8b¿\82ð\8eó\82¯\82Ä\82¢\82é\81B", "Your constitution is affected by your equipment.");
+    if (has_flag(si_ptr->flags, TR_CON))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̑ϋv�͂͑����ɂ���ĉe�����󂯂Ă���B", "Your constitution is affected by your equipment.");
 
-    if (have_flag(si_ptr->flags, TR_CHR))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\96£\97Í\82Í\91\95\94õ\82É\82æ\82Á\82Ä\89e\8b¿\82ð\8eó\82¯\82Ä\82¢\82é\81B", "Your charisma is affected by your equipment.");
+    if (has_flag(si_ptr->flags, TR_CHR))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̖��͂͑����ɂ���ĉe�����󂯂Ă���B", "Your charisma is affected by your equipment.");
 
-    if (have_flag(si_ptr->flags, TR_STEALTH))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\89B\96§\8ds\93®\94\\97Í\82Í\91\95\94õ\82É\82æ\82Á\82Ä\89e\8b¿\82ð\8eó\82¯\82Ä\82¢\82é\81B", "Your stealth is affected by your equipment.");
+    if (has_flag(si_ptr->flags, TR_STEALTH))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̉B���s���\�͂͑����ɂ���ĉe�����󂯂Ă���B", "Your stealth is affected by your equipment.");
 
-    if (have_flag(si_ptr->flags, TR_SEARCH))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\92T\8dõ\94\\97Í\82Í\91\95\94õ\82É\82æ\82Á\82Ä\89e\8b¿\82ð\8eó\82¯\82Ä\82¢\82é\81B", "Your searching ability is affected by your equipment.");
+    if (has_flag(si_ptr->flags, TR_SEARCH))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̒T���\�͂͑����ɂ���ĉe�����󂯂Ă���B", "Your searching ability is affected by your equipment.");
 
-    if (have_flag(si_ptr->flags, TR_INFRA))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\90Ô\8aO\90ü\8e\8b\97Í\82Í\91\95\94õ\82É\82æ\82Á\82Ä\89e\8b¿\82ð\8eó\82¯\82Ä\82¢\82é\81B", "Your infravision is affected by your equipment.");
+    if (has_flag(si_ptr->flags, TR_INFRA))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̐ԊO�����͂͑����ɂ���ĉe�����󂯂Ă���B", "Your infravision is affected by your equipment.");
 
-    if (have_flag(si_ptr->flags, TR_TUNNEL))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\8dÌ\8c@\94\\97Í\82Í\91\95\94õ\82É\82æ\82Á\82Ä\89e\8b¿\82ð\8eó\82¯\82Ä\82¢\82é\81B", "Your digging ability is affected by your equipment.");
+    if (has_flag(si_ptr->flags, TR_TUNNEL))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̍̌@�\�͂͑����ɂ���ĉe�����󂯂Ă���B", "Your digging ability is affected by your equipment.");
 
-    if (have_flag(si_ptr->flags, TR_SPEED))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\83X\83s\81[\83h\82Í\91\95\94õ\82É\82æ\82Á\82Ä\89e\8b¿\82ð\8eó\82¯\82Ä\82¢\82é\81B", "Your speed is affected by your equipment.");
+    if (has_flag(si_ptr->flags, TR_SPEED))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̃X�s�[�h�͑����ɂ���ĉe�����󂯂Ă���B", "Your speed is affected by your equipment.");
 
-    if (have_flag(si_ptr->flags, TR_BLOWS))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\8dU\8c\82\91¬\93x\82Í\91\95\94õ\82É\82æ\82Á\82Ä\89e\8b¿\82ð\8eó\82¯\82Ä\82¢\82é\81B", "Your attack speed is affected by your equipment.");
+    if (has_flag(si_ptr->flags, TR_BLOWS))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̍U�����x�͑����ɂ���ĉe�����󂯂Ă���B", "Your attack speed is affected by your equipment.");
 }
 
 void set_status_sustain_info(player_type *creature_ptr, self_info_type *si_ptr)
 {
     if (creature_ptr->sustain_str) {
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\98r\97Í\82Í\88Û\8e\9d\82³\82ê\82Ä\82¢\82é\81B", "Your strength is sustained.");
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̘r�͈͂ێ�����Ă���B", "Your strength is sustained.");
     }
     if (creature_ptr->sustain_int) {
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\92m\94\\82Í\88Û\8e\9d\82³\82ê\82Ä\82¢\82é\81B", "Your intelligence is sustained.");
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̒m�\�͈ێ�����Ă���B", "Your intelligence is sustained.");
     }
     if (creature_ptr->sustain_wis) {
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\8c«\82³\82Í\88Û\8e\9d\82³\82ê\82Ä\82¢\82é\81B", "Your wisdom is sustained.");
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̌����͈ێ�����Ă���B", "Your wisdom is sustained.");
     }
     if (creature_ptr->sustain_con) {
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\91Ï\8bv\97Í\82Í\88Û\8e\9d\82³\82ê\82Ä\82¢\82é\81B", "Your constitution is sustained.");
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̑ϋv�͈͂ێ�����Ă���B", "Your constitution is sustained.");
     }
     if (creature_ptr->sustain_dex) {
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\8aí\97p\82³\82Í\88Û\8e\9d\82³\82ê\82Ä\82¢\82é\81B", "Your dexterity is sustained.");
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̊�p���͈ێ�����Ă���B", "Your dexterity is sustained.");
     }
     if (creature_ptr->sustain_chr) {
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\96£\97Í\82Í\88Û\8e\9d\82³\82ê\82Ä\82¢\82é\81B", "Your charisma is sustained.");
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̖��͈͂ێ�����Ă���B", "Your charisma is sustained.");
     }
 }
index 1e31234..3c65594 100644 (file)
@@ -6,86 +6,86 @@
 
 static void set_weapon_bless_info(self_info_type *si_ptr)
 {
-    if (have_flag(si_ptr->flags, TR_BLESSED))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\90_\82Ì\8fj\95\9f\82ð\8eó\82¯\82Ä\82¢\82é\81B", "Your weapon has been blessed by the gods.");
+    if (has_flag(si_ptr->flags, TR_BLESSED))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���͐_�̏j�����󂯂Ă���B", "Your weapon has been blessed by the gods.");
 
-    if (have_flag(si_ptr->flags, TR_CHAOTIC))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\83\8d\83O\83\8b\83X\82Ì\92¥\82Ì\91®\90«\82ð\82à\82\81B", "Your weapon is branded with the Sign of Logrus.");
+    if (has_flag(si_ptr->flags, TR_CHAOTIC))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���̓��O���X�̒��̑��������\81B", "Your weapon is branded with the Sign of Logrus.");
 
-    if (have_flag(si_ptr->flags, TR_IMPACT))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\91Å\8c\82\82Å\92n\90k\82ð\94­\90\82·\82é\82±\82Æ\82ª\82Å\82«\82é\81B", "The impact of your weapon can cause earthquakes.");
+    if (has_flag(si_ptr->flags, TR_IMPACT))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���͑Ō��Œn�k�𔭐����邱�Ƃ��ł���B", "The impact of your weapon can cause earthquakes.");
 
-    if (have_flag(si_ptr->flags, TR_VORPAL))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\94ñ\8fí\82É\89s\82¢\81B", "Your weapon is very sharp.");
+    if (has_flag(si_ptr->flags, TR_VORPAL))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���͔��ɉs���B", "Your weapon is very sharp.");
 
-    if (have_flag(si_ptr->flags, TR_VAMPIRIC))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\93G\82©\82ç\90\96½\97Í\82ð\8bz\8eû\82·\82é\81B", "Your weapon drains life from your foes.");
+    if (has_flag(si_ptr->flags, TR_VAMPIRIC))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���͓G���琶���͂��z������B", "Your weapon drains life from your foes.");
 }
 
 static void set_brand_attack_info(self_info_type *si_ptr)
 {
-    if (have_flag(si_ptr->flags, TR_BRAND_ACID))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\93G\82ð\97n\82©\82·\81B", "Your weapon melts your foes.");
+    if (has_flag(si_ptr->flags, TR_BRAND_ACID))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���͓G��n�����B", "Your weapon melts your foes.");
 
-    if (have_flag(si_ptr->flags, TR_BRAND_ELEC))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\93G\82ð\8a´\93d\82³\82¹\82é\81B", "Your weapon shocks your foes.");
+    if (has_flag(si_ptr->flags, TR_BRAND_ELEC))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���͓G�����d������B", "Your weapon shocks your foes.");
 
-    if (have_flag(si_ptr->flags, TR_BRAND_FIRE))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\93G\82ð\94R\82â\82·\81B", "Your weapon burns your foes.");
+    if (has_flag(si_ptr->flags, TR_BRAND_FIRE))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���͓G��R�₷�B", "Your weapon burns your foes.");
 
-    if (have_flag(si_ptr->flags, TR_BRAND_COLD))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\93G\82ð\93\80\82ç\82¹\82é\81B", "Your weapon freezes your foes.");
+    if (has_flag(si_ptr->flags, TR_BRAND_COLD))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���͓G�𓀂点��B", "Your weapon freezes your foes.");
 
-    if (have_flag(si_ptr->flags, TR_BRAND_POIS))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\93G\82ð\93Å\82Å\90N\82·\81B", "Your weapon poisons your foes.");
+    if (has_flag(si_ptr->flags, TR_BRAND_POIS))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���͓G��łŐN���B", "Your weapon poisons your foes.");
 }
 
 static void set_slay_info(self_info_type *si_ptr)
 {
-    if (have_flag(si_ptr->flags, TR_KILL_ANIMAL))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\93®\95¨\82Ì\93V\93G\82Å\82 \82é\81B", "Your weapon is a great bane of animals.");
-    else if (have_flag(si_ptr->flags, TR_SLAY_ANIMAL))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\93®\95¨\82É\91Î\82µ\82Ä\8b­\82¢\97Í\82ð\94­\8aö\82·\82é\81B", "Your weapon strikes at animals with extra force.");
-
-    if (have_flag(si_ptr->flags, TR_KILL_EVIL))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\8e×\88«\82È\82é\91\8dÝ\82Ì\93V\93G\82Å\82 \82é\81B", "Your weapon is a great bane of evil.");
-    else if (have_flag(si_ptr->flags, TR_SLAY_EVIL))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\8e×\88«\82È\82é\91\8dÝ\82É\91Î\82µ\82Ä\8b­\82¢\97Í\82ð\94­\8aö\82·\82é\81B", "Your weapon strikes at evil with extra force.");
-
-    if (have_flag(si_ptr->flags, TR_KILL_HUMAN))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\90l\8aÔ\82Ì\93V\93G\82Å\82 \82é\81B", "Your weapon is a great bane of humans.");
-    else if (have_flag(si_ptr->flags, TR_SLAY_HUMAN))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\90l\8aÔ\82É\91Î\82µ\82Ä\93Á\82É\8b­\82¢\97Í\82ð\94­\8aö\82·\82é\81B", "Your weapon is especially deadly against humans.");
-
-    if (have_flag(si_ptr->flags, TR_KILL_UNDEAD))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\83A\83\93\83f\83b\83h\82Ì\93V\93G\82Å\82 \82é\81B", "Your weapon is a great bane of undead.");
-    else if (have_flag(si_ptr->flags, TR_SLAY_UNDEAD))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\83A\83\93\83f\83b\83h\82É\91Î\82µ\82Ä\90_\90¹\82È\82é\97Í\82ð\94­\8aö\82·\82é\81B", "Your weapon strikes at undead with holy wrath.");
-
-    if (have_flag(si_ptr->flags, TR_KILL_DEMON))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\83f\81[\83\82\83\93\82Ì\93V\93G\82Å\82 \82é\81B", "Your weapon is a great bane of demons.");
-    else if (have_flag(si_ptr->flags, TR_SLAY_DEMON))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\83f\81[\83\82\83\93\82É\91Î\82µ\82Ä\90_\90¹\82È\82é\97Í\82ð\94­\8aö\82·\82é\81B", "Your weapon strikes at demons with holy wrath.");
-
-    if (have_flag(si_ptr->flags, TR_KILL_ORC))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\83I\81[\83N\82Ì\93V\93G\82Å\82 \82é\81B", "Your weapon is a great bane of orcs.");
-    else if (have_flag(si_ptr->flags, TR_SLAY_ORC))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\83I\81[\83N\82É\91Î\82µ\82Ä\93Á\82É\8b­\82¢\97Í\82ð\94­\8aö\82·\82é\81B", "Your weapon is especially deadly against orcs.");
-
-    if (have_flag(si_ptr->flags, TR_KILL_TROLL))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\83g\83\8d\83\8b\82Ì\93V\93G\82Å\82 \82é\81B", "Your weapon is a great bane of trolls.");
-    else if (have_flag(si_ptr->flags, TR_SLAY_TROLL))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\83g\83\8d\83\8b\82É\91Î\82µ\82Ä\93Á\82É\8b­\82¢\97Í\82ð\94­\8aö\82·\82é\81B", "Your weapon is especially deadly against trolls.");
-
-    if (have_flag(si_ptr->flags, TR_KILL_GIANT))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\8b\90\90l\82Ì\93V\93G\82Å\82 \82é\81B", "Your weapon is a great bane of giants.");
-    else if (have_flag(si_ptr->flags, TR_SLAY_GIANT))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\8b\90\90l\82É\91Î\82µ\82Ä\93Á\82É\8b­\82¢\97Í\82ð\94­\8aö\82·\82é\81B", "Your weapon is especially deadly against giants.");
-
-    if (have_flag(si_ptr->flags, TR_KILL_DRAGON))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\83h\83\89\83S\83\93\82Ì\93V\93G\82Å\82 \82é\81B", "Your weapon is a great bane of dragons.");
-    else if (have_flag(si_ptr->flags, TR_SLAY_DRAGON))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\83h\83\89\83S\83\93\82É\91Î\82µ\82Ä\93Á\82É\8b­\82¢\97Í\82ð\94­\8aö\82·\82é\81B", "Your weapon is especially deadly against dragons.");
+    if (has_flag(si_ptr->flags, TR_KILL_ANIMAL))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���͓����̓V�G�ł���B", "Your weapon is a great bane of animals.");
+    else if (has_flag(si_ptr->flags, TR_SLAY_ANIMAL))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���͓����ɑ΂��ċ����͂𔭊�����B", "Your weapon strikes at animals with extra force.");
+
+    if (has_flag(si_ptr->flags, TR_KILL_EVIL))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���͎׈��Ȃ鑶�݂̓V�G�ł���B", "Your weapon is a great bane of evil.");
+    else if (has_flag(si_ptr->flags, TR_SLAY_EVIL))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���͎׈��Ȃ鑶�݂ɑ΂��ċ����͂𔭊�����B", "Your weapon strikes at evil with extra force.");
+
+    if (has_flag(si_ptr->flags, TR_KILL_HUMAN))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���͐l�Ԃ̓V�G�ł���B", "Your weapon is a great bane of humans.");
+    else if (has_flag(si_ptr->flags, TR_SLAY_HUMAN))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���͐l�Ԃɑ΂��ē��ɋ����͂𔭊�����B", "Your weapon is especially deadly against humans.");
+
+    if (has_flag(si_ptr->flags, TR_KILL_UNDEAD))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���̓A���f�b�h�̓V�G�ł���B", "Your weapon is a great bane of undead.");
+    else if (has_flag(si_ptr->flags, TR_SLAY_UNDEAD))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���̓A���f�b�h�ɑ΂��Đ_���Ȃ�͂𔭊�����B", "Your weapon strikes at undead with holy wrath.");
+
+    if (has_flag(si_ptr->flags, TR_KILL_DEMON))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���̓f�[�����̓V�G�ł���B", "Your weapon is a great bane of demons.");
+    else if (has_flag(si_ptr->flags, TR_SLAY_DEMON))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���̓f�[�����ɑ΂��Đ_���Ȃ�͂𔭊�����B", "Your weapon strikes at demons with holy wrath.");
+
+    if (has_flag(si_ptr->flags, TR_KILL_ORC))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���̓I�[�N�̓V�G�ł���B", "Your weapon is a great bane of orcs.");
+    else if (has_flag(si_ptr->flags, TR_SLAY_ORC))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���̓I�[�N�ɑ΂��ē��ɋ����͂𔭊�����B", "Your weapon is especially deadly against orcs.");
+
+    if (has_flag(si_ptr->flags, TR_KILL_TROLL))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���̓g�����̓V�G�ł���B", "Your weapon is a great bane of trolls.");
+    else if (has_flag(si_ptr->flags, TR_SLAY_TROLL))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���̓g�����ɑ΂��ē��ɋ����͂𔭊�����B", "Your weapon is especially deadly against trolls.");
+
+    if (has_flag(si_ptr->flags, TR_KILL_GIANT))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���͋��l�̓V�G�ł���B", "Your weapon is a great bane of giants.");
+    else if (has_flag(si_ptr->flags, TR_SLAY_GIANT))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���͋��l�ɑ΂��ē��ɋ����͂𔭊�����B", "Your weapon is especially deadly against giants.");
+
+    if (has_flag(si_ptr->flags, TR_KILL_DRAGON))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���̓h���S���̓V�G�ł���B", "Your weapon is a great bane of dragons.");
+    else if (has_flag(si_ptr->flags, TR_SLAY_DRAGON))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���̓h���S���ɑ΂��ē��ɋ����͂𔭊�����B", "Your weapon is especially deadly against dragons.");
 }
 
 void set_weapon_effect_info(player_type *creature_ptr, self_info_type *si_ptr)
@@ -97,9 +97,9 @@ void set_weapon_effect_info(player_type *creature_ptr, self_info_type *si_ptr)
     set_weapon_bless_info(si_ptr);
     set_brand_attack_info(si_ptr);
     set_slay_info(si_ptr);
-    if (have_flag(si_ptr->flags, TR_FORCE_WEAPON))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82ÍMP\82ð\8eg\82Á\82Ä\8dU\8c\82\82·\82é\81B", "Your weapon causes greate damages using your MP.");
+    if (has_flag(si_ptr->flags, TR_FORCE_WEAPON))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕����MP���g���čU������B", "Your weapon causes greate damages using your MP.");
 
-    if (have_flag(si_ptr->flags, TR_THROW))
-        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\95\90\8aí\82Í\93\8a\82°\82â\82·\82¢\81B", "Your weapon can be thrown well.");
+    if (has_flag(si_ptr->flags, TR_THROW))
+        si_ptr->info[si_ptr->line++] = _("���Ȃ��̕���͓����₷���B", "Your weapon can be thrown well.");
 }
index d565ddd..d073f10 100644 (file)
@@ -113,7 +113,7 @@ static bool acid_minus_ac(player_type *creature_ptr)
     }
 
     /* Object resists */
-    if (have_flag(flgs, TR_IGNORE_ACID)) {
+    if (has_flag(flgs, TR_IGNORE_ACID)) {
         msg_format(_("しかし%sには効果がなかった!", "Your %s is unaffected!"), o_name);
         return TRUE;
     }
index d8672b8..4118584 100644 (file)
@@ -174,13 +174,13 @@ bool move_player_effect(player_type *creature_ptr, POSITION ny, POSITION nx, BIT
         }
 
         if ((creature_ptr->action == ACTION_HAYAGAKE)
-            && (!have_flag(f_ptr->flags, FF_PROJECT) || (!creature_ptr->levitation && have_flag(f_ptr->flags, FF_DEEP)))) {
+            && (!has_flag(f_ptr->flags, FF_PROJECT) || (!creature_ptr->levitation && has_flag(f_ptr->flags, FF_DEEP)))) {
             msg_print(_("ここでは素早く動けない。", "You cannot run in here."));
             set_action(creature_ptr, ACTION_NONE);
         }
 
         if (creature_ptr->prace == RACE_MERFOLK) {
-            if (have_flag(f_ptr->flags, FF_WATER) ^ have_flag(of_ptr->flags, FF_WATER)) {
+            if (has_flag(f_ptr->flags, FF_WATER) ^ has_flag(of_ptr->flags, FF_WATER)) {
                 creature_ptr->update |= PU_BONUS;
                 update_creature(creature_ptr);
             }
@@ -204,19 +204,19 @@ bool move_player_effect(player_type *creature_ptr, POSITION ny, POSITION nx, BIT
     if (!(mpe_mode & MPE_DONT_PICKUP))
         carry(creature_ptr, (mpe_mode & MPE_DO_PICKUP) ? TRUE : FALSE);
 
-    if (have_flag(f_ptr->flags, FF_STORE)) {
+    if (has_flag(f_ptr->flags, FF_STORE)) {
         disturb(creature_ptr, FALSE, TRUE);
         free_turn(creature_ptr);
         command_new = SPECIAL_KEY_STORE;
-    } else if (have_flag(f_ptr->flags, FF_BLDG)) {
+    } else if (has_flag(f_ptr->flags, FF_BLDG)) {
         disturb(creature_ptr, FALSE, TRUE);
         free_turn(creature_ptr);
         command_new = SPECIAL_KEY_BUILDING;
-    } else if (have_flag(f_ptr->flags, FF_QUEST_ENTER)) {
+    } else if (has_flag(f_ptr->flags, FF_QUEST_ENTER)) {
         disturb(creature_ptr, FALSE, TRUE);
         free_turn(creature_ptr);
         command_new = SPECIAL_KEY_QUEST;
-    } else if (have_flag(f_ptr->flags, FF_QUEST_EXIT)) {
+    } else if (has_flag(f_ptr->flags, FF_QUEST_EXIT)) {
         if (quest[floor_ptr->inside_quest].type == QUEST_TYPE_FIND_EXIT)
             complete_quest(creature_ptr, floor_ptr->inside_quest);
 
@@ -226,9 +226,9 @@ bool move_player_effect(player_type *creature_ptr, POSITION ny, POSITION nx, BIT
         creature_ptr->oldpx = 0;
         creature_ptr->oldpy = 0;
         creature_ptr->leaving = TRUE;
-    } else if (have_flag(f_ptr->flags, FF_HIT_TRAP) && !(mpe_mode & MPE_STAYING)) {
+    } else if (has_flag(f_ptr->flags, FF_HIT_TRAP) && !(mpe_mode & MPE_STAYING)) {
         disturb(creature_ptr, FALSE, TRUE);
-        if (g_ptr->mimic || have_flag(f_ptr->flags, FF_SECRET)) {
+        if (g_ptr->mimic || has_flag(f_ptr->flags, FF_SECRET)) {
             msg_print(_("トラップだ!", "You found a trap!"));
             disclose_grid(creature_ptr, creature_ptr->y, creature_ptr->x);
         }
@@ -261,7 +261,7 @@ bool move_player_effect(player_type *creature_ptr, POSITION ny, POSITION nx, BIT
 bool trap_can_be_ignored(player_type *creature_ptr, FEAT_IDX feat)
 {
     feature_type *f_ptr = &f_info[feat];
-    if (!have_flag(f_ptr->flags, FF_TRAP))
+    if (!has_flag(f_ptr->flags, FF_TRAP))
         return TRUE;
 
     switch (f_ptr->subtype) {
index 646a478..1c4201d 100644 (file)
@@ -77,7 +77,7 @@ BIT_FLAGS have_xtra_might(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_XTRA_MIGHT))
+        if (has_flag(flgs, TR_XTRA_MIGHT))
             result |= 0x01 << (i - INVEN_RARM);
     }
 
@@ -102,7 +102,7 @@ BIT_FLAGS have_esp_evil(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_ESP_EVIL))
+        if (has_flag(flgs, TR_ESP_EVIL))
             result |= 0x01 << (i - INVEN_RARM);
     }
 
@@ -122,7 +122,7 @@ BIT_FLAGS have_esp_animal(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_ESP_ANIMAL))
+        if (has_flag(flgs, TR_ESP_ANIMAL))
             result |= 0x01 << (i - INVEN_RARM);
     }
 
@@ -142,7 +142,7 @@ BIT_FLAGS have_esp_undead(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_ESP_UNDEAD))
+        if (has_flag(flgs, TR_ESP_UNDEAD))
             result |= 0x01 << (i - INVEN_RARM);
     }
 
@@ -162,7 +162,7 @@ BIT_FLAGS have_esp_demon(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_ESP_DEMON))
+        if (has_flag(flgs, TR_ESP_DEMON))
             result |= 0x01 << (i - INVEN_RARM);
     }
 
@@ -182,7 +182,7 @@ BIT_FLAGS have_esp_orc(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_ESP_ORC))
+        if (has_flag(flgs, TR_ESP_ORC))
             result |= 0x01 << (i - INVEN_RARM);
     }
 
@@ -202,7 +202,7 @@ BIT_FLAGS have_esp_troll(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_ESP_TROLL))
+        if (has_flag(flgs, TR_ESP_TROLL))
             result |= 0x01 << (i - INVEN_RARM);
     }
 
@@ -222,7 +222,7 @@ BIT_FLAGS have_esp_giant(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_ESP_GIANT))
+        if (has_flag(flgs, TR_ESP_GIANT))
             result |= 0x01 << (i - INVEN_RARM);
     }
 
@@ -242,7 +242,7 @@ BIT_FLAGS have_esp_dragon(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_ESP_DRAGON))
+        if (has_flag(flgs, TR_ESP_DRAGON))
             result |= 0x01 << (i - INVEN_RARM);
     }
 
@@ -263,7 +263,7 @@ void have_esp_human(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_ESP_HUMAN))
+        if (has_flag(flgs, TR_ESP_HUMAN))
             creature_ptr->esp_human = TRUE;
     }
 }
@@ -282,7 +282,7 @@ void have_esp_good(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_ESP_GOOD))
+        if (has_flag(flgs, TR_ESP_GOOD))
             creature_ptr->esp_good = TRUE;
     }
 }
@@ -301,7 +301,7 @@ void have_esp_nonliving(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_ESP_NONLIVING))
+        if (has_flag(flgs, TR_ESP_NONLIVING))
             creature_ptr->esp_nonliving = TRUE;
     }
 }
@@ -320,7 +320,7 @@ void have_esp_unique(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_ESP_UNIQUE))
+        if (has_flag(flgs, TR_ESP_UNIQUE))
             creature_ptr->esp_unique = TRUE;
     }
 }
@@ -364,7 +364,7 @@ void have_esp_telepathy(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_TELEPATHY))
+        if (has_flag(flgs, TR_TELEPATHY))
             creature_ptr->telepathy = TRUE;
     }
 }
@@ -383,7 +383,7 @@ void have_bless_blade(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_BLESSED))
+        if (has_flag(flgs, TR_BLESSED))
             creature_ptr->bless_blade = TRUE;
     }
 }
@@ -516,7 +516,7 @@ void have_dec_mana(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_DEC_MANA))
+        if (has_flag(flgs, TR_DEC_MANA))
             creature_ptr->dec_mana = TRUE;
     }
 }
@@ -561,7 +561,7 @@ void have_reflect(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_REFLECT))
+        if (has_flag(flgs, TR_REFLECT))
             creature_ptr->reflect = TRUE;
     }
 }
@@ -588,7 +588,7 @@ void have_warning(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_WARNING)) {
+        if (has_flag(flgs, TR_WARNING)) {
             if (!o_ptr->inscription || !(angband_strchr(quark_str(o_ptr->inscription), '$')))
                 creature_ptr->warning = TRUE;
         }
@@ -609,7 +609,7 @@ void have_anti_magic(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_NO_MAGIC))
+        if (has_flag(flgs, TR_NO_MAGIC))
             creature_ptr->anti_magic = TRUE;
     }
 }
@@ -628,7 +628,7 @@ void have_anti_tele(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_NO_TELE))
+        if (has_flag(flgs, TR_NO_TELE))
             creature_ptr->anti_tele = TRUE;
     }
 }
@@ -671,7 +671,7 @@ void have_sh_fire(player_type *creature_ptr)
             continue;
 
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_SH_FIRE))
+        if (has_flag(flgs, TR_SH_FIRE))
             creature_ptr->sh_fire = TRUE;
     }
 }
@@ -705,7 +705,7 @@ void have_sh_elec(player_type *creature_ptr)
             continue;
 
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_SH_ELEC))
+        if (has_flag(flgs, TR_SH_ELEC))
             creature_ptr->sh_elec = TRUE;
     }
 }
@@ -736,7 +736,7 @@ void have_sh_cold(player_type *creature_ptr)
             continue;
 
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_SH_COLD))
+        if (has_flag(flgs, TR_SH_COLD))
             creature_ptr->sh_cold = TRUE;
     }
 }
@@ -752,7 +752,7 @@ void have_easy_spell(player_type *creature_ptr)
             continue;
 
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_EASY_SPELL))
+        if (has_flag(flgs, TR_EASY_SPELL))
             creature_ptr->easy_spell = TRUE;
     }
 }
@@ -810,7 +810,7 @@ void have_hold_exp(player_type *creature_ptr)
             continue;
 
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_HOLD_EXP))
+        if (has_flag(flgs, TR_HOLD_EXP))
             creature_ptr->hold_exp = TRUE;
     }
 }
@@ -863,7 +863,7 @@ void have_see_inv(player_type *creature_ptr)
             continue;
 
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_SEE_INVIS))
+        if (has_flag(flgs, TR_SEE_INVIS))
             creature_ptr->see_inv = TRUE;
     }
 }
@@ -924,7 +924,7 @@ void have_free_act(player_type *creature_ptr)
             continue;
 
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_FREE_ACT))
+        if (has_flag(flgs, TR_FREE_ACT))
             creature_ptr->free_act = TRUE;
     }
 }
@@ -951,7 +951,7 @@ void have_sustain_str(player_type *creature_ptr)
             continue;
 
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_SUST_STR))
+        if (has_flag(flgs, TR_SUST_STR))
             creature_ptr->sustain_str = TRUE;
     }
 }
@@ -975,7 +975,7 @@ void have_sustain_int(player_type *creature_ptr)
             continue;
 
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_SUST_INT))
+        if (has_flag(flgs, TR_SUST_INT))
             creature_ptr->sustain_int = TRUE;
     }
 }
@@ -1002,7 +1002,7 @@ void have_sustain_wis(player_type *creature_ptr)
             continue;
 
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_SUST_WIS))
+        if (has_flag(flgs, TR_SUST_WIS))
             creature_ptr->sustain_wis = TRUE;
     }
 }
@@ -1029,7 +1029,7 @@ void have_sustain_dex(player_type *creature_ptr)
             continue;
 
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_SUST_DEX))
+        if (has_flag(flgs, TR_SUST_DEX))
             creature_ptr->sustain_dex = TRUE;
     }
 }
@@ -1057,7 +1057,7 @@ void have_sustain_con(player_type *creature_ptr)
             continue;
 
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_SUST_CON))
+        if (has_flag(flgs, TR_SUST_CON))
             creature_ptr->sustain_con = TRUE;
     }
 }
@@ -1078,7 +1078,7 @@ void have_sustain_chr(player_type *creature_ptr)
             continue;
 
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_SUST_CHR))
+        if (has_flag(flgs, TR_SUST_CHR))
             creature_ptr->sustain_chr = TRUE;
     }
 }
@@ -1128,7 +1128,7 @@ void have_levitation(player_type *creature_ptr)
         if (!o_ptr->k_idx)
             continue;
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_LEVITATION))
+        if (has_flag(flgs, TR_LEVITATION))
             creature_ptr->levitation = TRUE;
     }
 }
@@ -1180,7 +1180,7 @@ void have_slow_digest(player_type *creature_ptr)
         if (!o_ptr->k_idx)
             continue;
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_SLOW_DIGEST))
+        if (has_flag(flgs, TR_SLOW_DIGEST))
             creature_ptr->slow_digest = TRUE;
     }
 }
@@ -1239,7 +1239,7 @@ void have_regenerate(player_type *creature_ptr)
         if (!o_ptr->k_idx)
             continue;
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_REGEN))
+        if (has_flag(flgs, TR_REGEN))
             creature_ptr->regenerate = TRUE;
     }
 }
@@ -1258,46 +1258,46 @@ void have_curses(player_type *creature_ptr)
         if (!o_ptr->k_idx)
             continue;
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_AGGRAVATE))
+        if (has_flag(flgs, TR_AGGRAVATE))
             creature_ptr->cursed |= TRC_AGGRAVATE;
-        if (have_flag(flgs, TR_DRAIN_EXP))
+        if (has_flag(flgs, TR_DRAIN_EXP))
             creature_ptr->cursed |= TRC_DRAIN_EXP;
-        if (have_flag(flgs, TR_TY_CURSE))
+        if (has_flag(flgs, TR_TY_CURSE))
             creature_ptr->cursed |= TRC_TY_CURSE;
-        if (have_flag(flgs, TR_ADD_L_CURSE))
+        if (has_flag(flgs, TR_ADD_L_CURSE))
             creature_ptr->cursed |= TRC_ADD_L_CURSE;
-        if (have_flag(flgs, TR_ADD_H_CURSE))
+        if (has_flag(flgs, TR_ADD_H_CURSE))
             creature_ptr->cursed |= TRC_ADD_H_CURSE;
-        if (have_flag(flgs, TR_DRAIN_HP))
+        if (has_flag(flgs, TR_DRAIN_HP))
             creature_ptr->cursed |= TRC_DRAIN_HP;
-        if (have_flag(flgs, TR_DRAIN_MANA))
+        if (has_flag(flgs, TR_DRAIN_MANA))
             creature_ptr->cursed |= TRC_DRAIN_MANA;
-        if (have_flag(flgs, TR_CALL_ANIMAL))
+        if (has_flag(flgs, TR_CALL_ANIMAL))
             creature_ptr->cursed |= TRC_CALL_ANIMAL;
-        if (have_flag(flgs, TR_CALL_DEMON))
+        if (has_flag(flgs, TR_CALL_DEMON))
             creature_ptr->cursed |= TRC_CALL_DEMON;
-        if (have_flag(flgs, TR_CALL_DRAGON))
+        if (has_flag(flgs, TR_CALL_DRAGON))
             creature_ptr->cursed |= TRC_CALL_DRAGON;
-        if (have_flag(flgs, TR_CALL_UNDEAD))
+        if (has_flag(flgs, TR_CALL_UNDEAD))
             creature_ptr->cursed |= TRC_CALL_UNDEAD;
-        if (have_flag(flgs, TR_COWARDICE))
+        if (has_flag(flgs, TR_COWARDICE))
             creature_ptr->cursed |= TRC_COWARDICE;
-        if (have_flag(flgs, TR_LOW_MELEE))
+        if (has_flag(flgs, TR_LOW_MELEE))
             creature_ptr->cursed |= TRC_LOW_MELEE;
-        if (have_flag(flgs, TR_LOW_AC))
+        if (has_flag(flgs, TR_LOW_AC))
             creature_ptr->cursed |= TRC_LOW_AC;
-        if (have_flag(flgs, TR_LOW_MAGIC))
+        if (has_flag(flgs, TR_LOW_MAGIC))
             creature_ptr->cursed |= TRC_LOW_MAGIC;
-        if (have_flag(flgs, TR_FAST_DIGEST))
+        if (has_flag(flgs, TR_FAST_DIGEST))
             creature_ptr->cursed |= TRC_FAST_DIGEST;
-        if (have_flag(flgs, TR_SLOW_REGEN))
+        if (has_flag(flgs, TR_SLOW_REGEN))
             creature_ptr->cursed |= TRC_SLOW_REGEN;
 
         creature_ptr->cursed |= (o_ptr->curse_flags & (0xFFFFFFF0L));
         if (o_ptr->name1 == ART_CHAINSWORD)
             creature_ptr->cursed |= TRC_CHAINSWORD;
 
-        if (have_flag(flgs, TR_TELEPORT)) {
+        if (has_flag(flgs, TR_TELEPORT)) {
             if (object_is_cursed(o_ptr))
                 creature_ptr->cursed |= TRC_TELEPORT;
             else {
@@ -1332,7 +1332,7 @@ void have_impact(player_type *creature_ptr)
         if (!o_ptr->k_idx)
             continue;
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_IMPACT))
+        if (has_flag(flgs, TR_IMPACT))
             creature_ptr->impact[(i == INVEN_RARM) ? 0 : 1] = TRUE;
     }
 }
@@ -1350,9 +1350,9 @@ void have_extra_blow(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_INFRA))
+        if (has_flag(flgs, TR_INFRA))
             creature_ptr->see_infra += o_ptr->pval;
-        if (have_flag(flgs, TR_BLOWS)) {
+        if (has_flag(flgs, TR_BLOWS)) {
             if ((i == INVEN_RARM || i == INVEN_RIGHT) && !have_two_handed_weapons(creature_ptr))
                 creature_ptr->extra_blows[0] += o_ptr->pval;
             else if ((i == INVEN_LARM || i == INVEN_LEFT) && !have_two_handed_weapons(creature_ptr))
@@ -1397,7 +1397,7 @@ void have_resist_acid(player_type *creature_ptr)
             continue;
 
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_RES_ACID))
+        if (has_flag(flgs, TR_RES_ACID))
             creature_ptr->resist_acid = TRUE;
     }
 
@@ -1433,7 +1433,7 @@ void have_resist_elec(player_type *creature_ptr)
             continue;
 
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_RES_ELEC))
+        if (has_flag(flgs, TR_RES_ELEC))
             creature_ptr->resist_elec = TRUE;
     }
 
@@ -1474,7 +1474,7 @@ void have_resist_fire(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_RES_FIRE))
+        if (has_flag(flgs, TR_RES_FIRE))
             creature_ptr->resist_fire = TRUE;
     }
 
@@ -1519,7 +1519,7 @@ void have_resist_cold(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_RES_COLD))
+        if (has_flag(flgs, TR_RES_COLD))
             creature_ptr->resist_cold = TRUE;
     }
 
@@ -1565,7 +1565,7 @@ void have_resist_pois(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_RES_POIS))
+        if (has_flag(flgs, TR_RES_POIS))
             creature_ptr->resist_pois = TRUE;
     }
 }
@@ -1606,7 +1606,7 @@ void have_resist_conf(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_RES_CONF))
+        if (has_flag(flgs, TR_RES_CONF))
             creature_ptr->resist_conf = TRUE;
     }
 }
@@ -1636,7 +1636,7 @@ void have_resist_sound(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_RES_SOUND))
+        if (has_flag(flgs, TR_RES_SOUND))
             creature_ptr->resist_sound = TRUE;
     }
 }
@@ -1662,7 +1662,7 @@ void have_resist_lite(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_RES_LITE))
+        if (has_flag(flgs, TR_RES_LITE))
             creature_ptr->resist_lite = TRUE;
     }
 }
@@ -1694,7 +1694,7 @@ void have_resist_dark(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_RES_DARK))
+        if (has_flag(flgs, TR_RES_DARK))
             creature_ptr->resist_dark = TRUE;
     }
 }
@@ -1726,7 +1726,7 @@ void have_resist_chaos(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_RES_CHAOS))
+        if (has_flag(flgs, TR_RES_CHAOS))
             creature_ptr->resist_chaos = TRUE;
     }
 }
@@ -1755,7 +1755,7 @@ void have_resist_disen(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_RES_DISEN))
+        if (has_flag(flgs, TR_RES_DISEN))
             creature_ptr->resist_disen = TRUE;
     }
 }
@@ -1780,7 +1780,7 @@ void have_resist_shard(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_RES_DISEN))
+        if (has_flag(flgs, TR_RES_DISEN))
             creature_ptr->resist_shard = TRUE;
     }
 }
@@ -1806,7 +1806,7 @@ void have_resist_nexus(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_RES_NEXUS))
+        if (has_flag(flgs, TR_RES_NEXUS))
             creature_ptr->resist_nexus = TRUE;
     }
 }
@@ -1839,7 +1839,7 @@ void have_resist_blind(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_RES_BLIND))
+        if (has_flag(flgs, TR_RES_BLIND))
             creature_ptr->resist_blind = TRUE;
     }
 }
@@ -1873,7 +1873,7 @@ void have_resist_neth(player_type *creature_ptr)
 
         object_flags(creature_ptr, o_ptr, flgs);
 
-        if (have_flag(flgs, TR_RES_NETHER))
+        if (has_flag(flgs, TR_RES_NETHER))
             creature_ptr->resist_neth = TRUE;
     }
 }
@@ -1963,7 +1963,7 @@ void have_resist_fear(player_type *creature_ptr)
             continue;
 
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_RES_FEAR))
+        if (has_flag(flgs, TR_RES_FEAR))
             creature_ptr->resist_fear = TRUE;
     }
 }
@@ -1988,7 +1988,7 @@ void have_immune_acid(player_type *creature_ptr)
             continue;
 
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_IM_ACID))
+        if (has_flag(flgs, TR_IM_ACID))
             creature_ptr->immune_acid = TRUE;
     }
 }
@@ -2009,7 +2009,7 @@ void have_immune_elec(player_type *creature_ptr)
             continue;
 
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_IM_ELEC))
+        if (has_flag(flgs, TR_IM_ELEC))
             creature_ptr->immune_elec = TRUE;
     }
 }
@@ -2030,7 +2030,7 @@ void have_immune_fire(player_type *creature_ptr)
             continue;
 
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_IM_FIRE))
+        if (has_flag(flgs, TR_IM_FIRE))
             creature_ptr->immune_fire = TRUE;
     }
 }
@@ -2051,7 +2051,7 @@ void have_immune_cold(player_type *creature_ptr)
             continue;
 
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_IM_COLD))
+        if (has_flag(flgs, TR_IM_COLD))
             creature_ptr->immune_cold = TRUE;
     }
 }
@@ -2142,7 +2142,7 @@ bool is_icky_wield_weapon(player_type *creature_ptr, int i)
     o_ptr = &creature_ptr->inventory_list[INVEN_RARM + i];
     object_flags(creature_ptr, o_ptr, flgs);
 
-    if ((creature_ptr->pclass == CLASS_PRIEST) && (!(have_flag(flgs, TR_BLESSED))) && ((o_ptr->tval == TV_SWORD) || (o_ptr->tval == TV_POLEARM))) {
+    if ((creature_ptr->pclass == CLASS_PRIEST) && (!(has_flag(flgs, TR_BLESSED))) && ((o_ptr->tval == TV_SWORD) || (o_ptr->tval == TV_POLEARM))) {
         return TRUE;
     } else if (creature_ptr->pclass == CLASS_SORCERER) {
         if (!((o_ptr->tval == TV_HAFTED) && ((o_ptr->sval == SV_WIZSTAFF) || (o_ptr->sval == SV_NAMAKE_HAMMER)))) {
@@ -2162,7 +2162,7 @@ bool is_riding_wield_weapon(player_type *creature_ptr, int i)
     o_ptr = &creature_ptr->inventory_list[INVEN_RARM + i];
     object_flags(creature_ptr, o_ptr, flgs);
     if (creature_ptr->riding != 0 && !(o_ptr->tval == TV_POLEARM) && ((o_ptr->sval == SV_LANCE) || (o_ptr->sval == SV_HEAVY_LANCE))
-        && !have_flag(flgs, TR_RIDING)) {
+        && !has_flag(flgs, TR_RIDING)) {
         return TRUE;
     }
     return FALSE;
index 92944f6..c7819e6 100644 (file)
@@ -981,8 +981,8 @@ static void calc_mana(player_type *creature_ptr)
         object_type *o_ptr;
         o_ptr = &creature_ptr->inventory_list[INVEN_HANDS];
         object_flags(creature_ptr, o_ptr, flgs);
-        if (o_ptr->k_idx && !(have_flag(flgs, TR_FREE_ACT)) && !(have_flag(flgs, TR_DEC_MANA)) && !(have_flag(flgs, TR_EASY_SPELL))
-            && !((have_flag(flgs, TR_MAGIC_MASTERY)) && (o_ptr->pval > 0)) && !((have_flag(flgs, TR_DEX)) && (o_ptr->pval > 0))) {
+        if (o_ptr->k_idx && !(has_flag(flgs, TR_FREE_ACT)) && !(has_flag(flgs, TR_DEC_MANA)) && !(has_flag(flgs, TR_EASY_SPELL))
+            && !((has_flag(flgs, TR_MAGIC_MASTERY)) && (o_ptr->pval > 0)) && !((has_flag(flgs, TR_DEX)) && (o_ptr->pval > 0))) {
             creature_ptr->cumber_glove = TRUE;
             msp = (3 * msp) / 4;
         }
@@ -1166,12 +1166,12 @@ s16b calc_num_fire(player_type *creature_ptr, object_type *o_ptr)
             continue;
 
         object_flags(creature_ptr, q_ptr, flgs);
-        if (have_flag(flgs, TR_XTRA_SHOTS))
+        if (has_flag(flgs, TR_XTRA_SHOTS))
             extra_shots++;
     }
 
     object_flags(creature_ptr, o_ptr, flgs);
-    if (have_flag(flgs, TR_XTRA_SHOTS))
+    if (has_flag(flgs, TR_XTRA_SHOTS))
         extra_shots++;
 
     int num = 0;
@@ -1245,7 +1245,7 @@ static ACTION_SKILL_POWER calc_intra_vision(player_type *creature_ptr)
         if (!o_ptr->k_idx)
             continue;
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_INFRA))
+        if (has_flag(flgs, TR_INFRA))
             pow += o_ptr->pval;
     }
 
@@ -1293,7 +1293,7 @@ static ACTION_SKILL_POWER calc_stealth(player_type *creature_ptr)
         if (!o_ptr->k_idx)
             continue;
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_STEALTH))
+        if (has_flag(flgs, TR_STEALTH))
             pow += o_ptr->pval;
     }
 
@@ -1395,7 +1395,7 @@ static ACTION_SKILL_POWER calc_device_ability(player_type *creature_ptr)
         if (!o_ptr->k_idx)
             continue;
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_MAGIC_MASTERY))
+        if (has_flag(flgs, TR_MAGIC_MASTERY))
             pow += 8 * o_ptr->pval;
     }
 
@@ -1493,7 +1493,7 @@ static ACTION_SKILL_POWER calc_search(player_type *creature_ptr)
         if (!o_ptr->k_idx)
             continue;
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_SEARCH))
+        if (has_flag(flgs, TR_SEARCH))
             pow += (o_ptr->pval * 5);
     }
 
@@ -1541,7 +1541,7 @@ static ACTION_SKILL_POWER calc_search_freq(player_type *creature_ptr)
         if (!o_ptr->k_idx)
             continue;
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_SEARCH))
+        if (has_flag(flgs, TR_SEARCH))
             pow += (o_ptr->pval * 5);
     }
 
@@ -1673,7 +1673,7 @@ static ACTION_SKILL_POWER calc_skill_dig(player_type *creature_ptr)
         if (!o_ptr->k_idx)
             continue;
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_TUNNEL))
+        if (has_flag(flgs, TR_TUNNEL))
             pow += (o_ptr->pval * 20);
     }
 
@@ -1724,7 +1724,7 @@ static s16b calc_num_blow(player_type *creature_ptr, int i)
             wgt = class_info[creature_ptr->pclass].wgt;
             mul = class_info[creature_ptr->pclass].mul;
 
-            if (creature_ptr->pclass == CLASS_CAVALRY && (creature_ptr->riding) && (have_flag(flgs, TR_RIDING))) {
+            if (creature_ptr->pclass == CLASS_CAVALRY && (creature_ptr->riding) && (has_flag(flgs, TR_RIDING))) {
                 num = 5;
                 wgt = 70;
                 mul = 4;
@@ -1889,7 +1889,7 @@ static s16b calc_strength_addition(player_type *creature_ptr)
         if (!o_ptr->k_idx)
             continue;
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_STR)) {
+        if (has_flag(flgs, TR_STR)) {
             pow += o_ptr->pval;
         }
     }
@@ -1964,7 +1964,7 @@ s16b calc_intelligence_addition(player_type *creature_ptr)
         if (!o_ptr->k_idx)
             continue;
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_INT)) {
+        if (has_flag(flgs, TR_INT)) {
             pow += o_ptr->pval;
         }
     }
@@ -2026,7 +2026,7 @@ static s16b calc_wisdom_addition(player_type *creature_ptr)
         if (!o_ptr->k_idx)
             continue;
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_WIS)) {
+        if (has_flag(flgs, TR_WIS)) {
             pow += o_ptr->pval;
         }
     }
@@ -2100,7 +2100,7 @@ static s16b calc_dexterity_addition(player_type *creature_ptr)
         if (!o_ptr->k_idx)
             continue;
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_DEX)) {
+        if (has_flag(flgs, TR_DEX)) {
             pow += o_ptr->pval;
         }
     }
@@ -2185,7 +2185,7 @@ static s16b calc_constitution_addition(player_type *creature_ptr)
         if (!o_ptr->k_idx)
             continue;
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_CON))
+        if (has_flag(flgs, TR_CON))
             pow += o_ptr->pval;
     }
 
@@ -2267,7 +2267,7 @@ static s16b calc_charisma_addition(player_type *creature_ptr)
         if (!o_ptr->k_idx)
             continue;
         object_flags(creature_ptr, o_ptr, flgs);
-        if (have_flag(flgs, TR_CHR))
+        if (has_flag(flgs, TR_CHR))
             pow += o_ptr->pval;
     }
 
@@ -2588,7 +2588,7 @@ static s16b calc_speed(player_type *creature_ptr)
 
             if (!o_ptr->k_idx)
                 continue;
-            if (have_flag(flgs, TR_SPEED))
+            if (has_flag(flgs, TR_SPEED))
                 pow += o_ptr->pval;
         }
 
@@ -2662,7 +2662,7 @@ static s16b calc_speed(player_type *creature_ptr)
         }
 
         if (creature_ptr->prace == RACE_MERFOLK) {
-            if (have_flag(f_ptr->flags, FF_WATER)) {
+            if (has_flag(f_ptr->flags, FF_WATER)) {
                 pow += (2 + creature_ptr->lev / 10);
             } else if (!creature_ptr->levitation) {
                 pow -= 2;
@@ -2976,7 +2976,7 @@ static s16b calc_to_damage(player_type *creature_ptr, INVENTORY_IDX slot, bool i
         damage -= 5;
     }
 
-    if ((creature_ptr->pclass == CLASS_PRIEST) && (!(have_flag(flgs, TR_BLESSED))) && ((o_ptr->tval == TV_SWORD) || (o_ptr->tval == TV_POLEARM))) {
+    if ((creature_ptr->pclass == CLASS_PRIEST) && (!(has_flag(flgs, TR_BLESSED))) && ((o_ptr->tval == TV_SWORD) || (o_ptr->tval == TV_POLEARM))) {
         damage -= 2;
     } else if (creature_ptr->pclass == CLASS_BERSERKER) {
         damage += creature_ptr->lev / 6;
@@ -3063,7 +3063,7 @@ static s16b calc_to_hit(player_type *creature_ptr, INVENTORY_IDX slot, bool is_t
     hit += ((int)(adj_dex_th[creature_ptr->stat_ind[A_DEX]]) - 128);
     hit += ((int)(adj_str_th[creature_ptr->stat_ind[A_STR]]) - 128);
 
-    if ((creature_ptr->pclass == CLASS_PRIEST) && (!(have_flag(flgs, TR_BLESSED))) && ((o_ptr->tval == TV_SWORD) || (o_ptr->tval == TV_POLEARM))) {
+    if ((creature_ptr->pclass == CLASS_PRIEST) && (!(has_flag(flgs, TR_BLESSED))) && ((o_ptr->tval == TV_SWORD) || (o_ptr->tval == TV_POLEARM))) {
         hit -= 2;
     } else if (creature_ptr->pclass == CLASS_BERSERKER) {
         hit += creature_ptr->lev / 5;
@@ -3130,7 +3130,7 @@ static s16b calc_to_hit(player_type *creature_ptr, INVENTORY_IDX slot, bool is_t
     }
 
     if (creature_ptr->riding != 0 && !(o_ptr->tval == TV_POLEARM) && ((o_ptr->sval == SV_LANCE) || (o_ptr->sval == SV_HEAVY_LANCE))
-        && !have_flag(flgs, TR_RIDING)) {
+        && !has_flag(flgs, TR_RIDING)) {
 
         int penalty;
         if ((creature_ptr->pclass == CLASS_BEASTMASTER) || (creature_ptr->pclass == CLASS_CAVALRY)) {
index ea03dbf..5053a73 100644 (file)
@@ -79,10 +79,10 @@ void known_obj_immunity(player_type *creature_ptr, BIT_FLAGS *flags)
                if (!o_ptr->k_idx) continue;
 
                object_flags_known(creature_ptr, o_ptr, o_flags);
-               if (have_flag(o_flags, TR_IM_ACID)) add_flag(flags, TR_RES_ACID);
-               if (have_flag(o_flags, TR_IM_ELEC)) add_flag(flags, TR_RES_ELEC);
-               if (have_flag(o_flags, TR_IM_FIRE)) add_flag(flags, TR_RES_FIRE);
-               if (have_flag(o_flags, TR_IM_COLD)) add_flag(flags, TR_RES_COLD);
+               if (has_flag(o_flags, TR_IM_ACID)) add_flag(flags, TR_RES_ACID);
+               if (has_flag(o_flags, TR_IM_ELEC)) add_flag(flags, TR_RES_ELEC);
+               if (has_flag(o_flags, TR_IM_FIRE)) add_flag(flags, TR_RES_FIRE);
+               if (has_flag(o_flags, TR_IM_COLD)) add_flag(flags, TR_RES_COLD);
        }
 }
 
index 645cc9e..faf4034 100644 (file)
@@ -1108,41 +1108,41 @@ void self_knowledge(player_type *creature_ptr)
         info[i++] = _("あなたの魅力は維持されている。", "Your charisma is sustained.");
     }
 
-    if (have_flag(flgs, TR_STR)) {
+    if (has_flag(flgs, TR_STR)) {
         info[i++] = _("あなたの腕力は装備によって影響を受けている。", "Your strength is affected by your equipment.");
     }
-    if (have_flag(flgs, TR_INT)) {
+    if (has_flag(flgs, TR_INT)) {
         info[i++] = _("あなたの知能は装備によって影響を受けている。", "Your intelligence is affected by your equipment.");
     }
-    if (have_flag(flgs, TR_WIS)) {
+    if (has_flag(flgs, TR_WIS)) {
         info[i++] = _("あなたの賢さは装備によって影響を受けている。", "Your wisdom is affected by your equipment.");
     }
-    if (have_flag(flgs, TR_DEX)) {
+    if (has_flag(flgs, TR_DEX)) {
         info[i++] = _("あなたの器用さは装備によって影響を受けている。", "Your dexterity is affected by your equipment.");
     }
-    if (have_flag(flgs, TR_CON)) {
+    if (has_flag(flgs, TR_CON)) {
         info[i++] = _("あなたの耐久力は装備によって影響を受けている。", "Your constitution is affected by your equipment.");
     }
-    if (have_flag(flgs, TR_CHR)) {
+    if (has_flag(flgs, TR_CHR)) {
         info[i++] = _("あなたの魅力は装備によって影響を受けている。", "Your charisma is affected by your equipment.");
     }
 
-    if (have_flag(flgs, TR_STEALTH)) {
+    if (has_flag(flgs, TR_STEALTH)) {
         info[i++] = _("あなたの隠密行動能力は装備によって影響を受けている。", "Your stealth is affected by your equipment.");
     }
-    if (have_flag(flgs, TR_SEARCH)) {
+    if (has_flag(flgs, TR_SEARCH)) {
         info[i++] = _("あなたの探索能力は装備によって影響を受けている。", "Your searching ability is affected by your equipment.");
     }
-    if (have_flag(flgs, TR_INFRA)) {
+    if (has_flag(flgs, TR_INFRA)) {
         info[i++] = _("あなたの赤外線視力は装備によって影響を受けている。", "Your infravision is affected by your equipment.");
     }
-    if (have_flag(flgs, TR_TUNNEL)) {
+    if (has_flag(flgs, TR_TUNNEL)) {
         info[i++] = _("あなたの採掘能力は装備によって影響を受けている。", "Your digging ability is affected by your equipment.");
     }
-    if (have_flag(flgs, TR_SPEED)) {
+    if (has_flag(flgs, TR_SPEED)) {
         info[i++] = _("あなたのスピードは装備によって影響を受けている。", "Your speed is affected by your equipment.");
     }
-    if (have_flag(flgs, TR_BLOWS)) {
+    if (has_flag(flgs, TR_BLOWS)) {
         info[i++] = _("あなたの攻撃速度は装備によって影響を受けている。", "Your attack speed is affected by your equipment.");
     }
 
@@ -1152,95 +1152,95 @@ void self_knowledge(player_type *creature_ptr)
     /* Analyze the weapon */
     if (o_ptr->k_idx) {
         /* Indicate Blessing */
-        if (have_flag(flgs, TR_BLESSED)) {
+        if (has_flag(flgs, TR_BLESSED)) {
             info[i++] = _("あなたの武器は神の祝福を受けている。", "Your weapon has been blessed by the gods.");
         }
 
-        if (have_flag(flgs, TR_CHAOTIC)) {
+        if (has_flag(flgs, TR_CHAOTIC)) {
             info[i++] = _("あなたの武器はログルスの徴の属性をもつ。", "Your weapon is branded with the Sign of Logrus.");
         }
 
-        if (have_flag(flgs, TR_IMPACT)) {
+        if (has_flag(flgs, TR_IMPACT)) {
             info[i++] = _("あなたの武器は打撃で地震を発生することができる。", "The impact of your weapon can cause earthquakes.");
         }
 
-        if (have_flag(flgs, TR_VORPAL)) {
+        if (has_flag(flgs, TR_VORPAL)) {
             info[i++] = _("あなたの武器は非常に鋭い。", "Your weapon is very sharp.");
         }
 
-        if (have_flag(flgs, TR_VAMPIRIC)) {
+        if (has_flag(flgs, TR_VAMPIRIC)) {
             info[i++] = _("あなたの武器は敵から生命力を吸収する。", "Your weapon drains life from your foes.");
         }
 
         /* Special "Attack Bonuses" */
-        if (have_flag(flgs, TR_BRAND_ACID)) {
+        if (has_flag(flgs, TR_BRAND_ACID)) {
             info[i++] = _("あなたの武器は敵を溶かす。", "Your weapon melts your foes.");
         }
-        if (have_flag(flgs, TR_BRAND_ELEC)) {
+        if (has_flag(flgs, TR_BRAND_ELEC)) {
             info[i++] = _("あなたの武器は敵を感電させる。", "Your weapon shocks your foes.");
         }
-        if (have_flag(flgs, TR_BRAND_FIRE)) {
+        if (has_flag(flgs, TR_BRAND_FIRE)) {
             info[i++] = _("あなたの武器は敵を燃やす。", "Your weapon burns your foes.");
         }
-        if (have_flag(flgs, TR_BRAND_COLD)) {
+        if (has_flag(flgs, TR_BRAND_COLD)) {
             info[i++] = _("あなたの武器は敵を凍らせる。", "Your weapon freezes your foes.");
         }
-        if (have_flag(flgs, TR_BRAND_POIS)) {
+        if (has_flag(flgs, TR_BRAND_POIS)) {
             info[i++] = _("あなたの武器は敵を毒で侵す。", "Your weapon poisons your foes.");
         }
 
         /* Special "slay" flags */
-        if (have_flag(flgs, TR_KILL_ANIMAL)) {
+        if (has_flag(flgs, TR_KILL_ANIMAL)) {
             info[i++] = _("あなたの武器は動物の天敵である。", "Your weapon is a great bane of animals.");
-        } else if (have_flag(flgs, TR_SLAY_ANIMAL)) {
+        } else if (has_flag(flgs, TR_SLAY_ANIMAL)) {
             info[i++] = _("あなたの武器は動物に対して強い力を発揮する。", "Your weapon strikes at animals with extra force.");
         }
-        if (have_flag(flgs, TR_KILL_EVIL)) {
+        if (has_flag(flgs, TR_KILL_EVIL)) {
             info[i++] = _("あなたの武器は邪悪なる存在の天敵である。", "Your weapon is a great bane of evil.");
-        } else if (have_flag(flgs, TR_SLAY_EVIL)) {
+        } else if (has_flag(flgs, TR_SLAY_EVIL)) {
             info[i++] = _("あなたの武器は邪悪なる存在に対して強い力を発揮する。", "Your weapon strikes at evil with extra force.");
         }
-        if (have_flag(flgs, TR_KILL_HUMAN)) {
+        if (has_flag(flgs, TR_KILL_HUMAN)) {
             info[i++] = _("あなたの武器は人間の天敵である。", "Your weapon is a great bane of humans.");
-        } else if (have_flag(flgs, TR_SLAY_HUMAN)) {
+        } else if (has_flag(flgs, TR_SLAY_HUMAN)) {
             info[i++] = _("あなたの武器は人間に対して特に強い力を発揮する。", "Your weapon is especially deadly against humans.");
         }
-        if (have_flag(flgs, TR_KILL_UNDEAD)) {
+        if (has_flag(flgs, TR_KILL_UNDEAD)) {
             info[i++] = _("あなたの武器はアンデッドの天敵である。", "Your weapon is a great bane of undead.");
-        } else if (have_flag(flgs, TR_SLAY_UNDEAD)) {
+        } else if (has_flag(flgs, TR_SLAY_UNDEAD)) {
             info[i++] = _("あなたの武器はアンデッドに対して神聖なる力を発揮する。", "Your weapon strikes at undead with holy wrath.");
         }
-        if (have_flag(flgs, TR_KILL_DEMON)) {
+        if (has_flag(flgs, TR_KILL_DEMON)) {
             info[i++] = _("あなたの武器はデーモンの天敵である。", "Your weapon is a great bane of demons.");
-        } else if (have_flag(flgs, TR_SLAY_DEMON)) {
+        } else if (has_flag(flgs, TR_SLAY_DEMON)) {
             info[i++] = _("あなたの武器はデーモンに対して神聖なる力を発揮する。", "Your weapon strikes at demons with holy wrath.");
         }
-        if (have_flag(flgs, TR_KILL_ORC)) {
+        if (has_flag(flgs, TR_KILL_ORC)) {
             info[i++] = _("あなたの武器はオークの天敵である。", "Your weapon is a great bane of orcs.");
-        } else if (have_flag(flgs, TR_SLAY_ORC)) {
+        } else if (has_flag(flgs, TR_SLAY_ORC)) {
             info[i++] = _("あなたの武器はオークに対して特に強い力を発揮する。", "Your weapon is especially deadly against orcs.");
         }
-        if (have_flag(flgs, TR_KILL_TROLL)) {
+        if (has_flag(flgs, TR_KILL_TROLL)) {
             info[i++] = _("あなたの武器はトロルの天敵である。", "Your weapon is a great bane of trolls.");
-        } else if (have_flag(flgs, TR_SLAY_TROLL)) {
+        } else if (has_flag(flgs, TR_SLAY_TROLL)) {
             info[i++] = _("あなたの武器はトロルに対して特に強い力を発揮する。", "Your weapon is especially deadly against trolls.");
         }
-        if (have_flag(flgs, TR_KILL_GIANT)) {
+        if (has_flag(flgs, TR_KILL_GIANT)) {
             info[i++] = _("あなたの武器は巨人の天敵である。", "Your weapon is a great bane of giants.");
-        } else if (have_flag(flgs, TR_SLAY_GIANT)) {
+        } else if (has_flag(flgs, TR_SLAY_GIANT)) {
             info[i++] = _("あなたの武器は巨人に対して特に強い力を発揮する。", "Your weapon is especially deadly against giants.");
         }
         /* Special "kill" flags */
-        if (have_flag(flgs, TR_KILL_DRAGON)) {
+        if (has_flag(flgs, TR_KILL_DRAGON)) {
             info[i++] = _("あなたの武器はドラゴンの天敵である。", "Your weapon is a great bane of dragons.");
-        } else if (have_flag(flgs, TR_SLAY_DRAGON)) {
+        } else if (has_flag(flgs, TR_SLAY_DRAGON)) {
             info[i++] = _("あなたの武器はドラゴンに対して特に強い力を発揮する。", "Your weapon is especially deadly against dragons.");
         }
 
-        if (have_flag(flgs, TR_FORCE_WEAPON)) {
+        if (has_flag(flgs, TR_FORCE_WEAPON)) {
             info[i++] = _("あなたの武器はMPを使って攻撃する。", "Your weapon causes greate damages using your MP.");
         }
-        if (have_flag(flgs, TR_THROW)) {
+        if (has_flag(flgs, TR_THROW)) {
             info[i++] = _("あなたの武器は投げやすい。", "Your weapon can be thrown well.");
         }
     }
index e37225f..e992568 100644 (file)
@@ -199,7 +199,7 @@ concptr do_hex_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode)
             if (!get_check(format(_("本当に %s を呪いますか?", "Do you curse %s, really?"), o_name)))
                 return FALSE;
 
-            if (!one_in_(3) && (object_is_artifact(o_ptr) || have_flag(f, TR_BLESSED))) {
+            if (!one_in_(3) && (object_is_artifact(o_ptr) || has_flag(f, TR_BLESSED))) {
                 msg_format(_("%s は呪いを跳ね返した。", "%s resists the effect."), o_name);
                 if (one_in_(3)) {
                     if (o_ptr->to_d > 0) {
@@ -507,7 +507,7 @@ concptr do_hex_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode)
             if (!get_check(format(_("本当に %s を呪いますか?", "Do you curse %s, really?"), o_name)))
                 return FALSE;
 
-            if (!one_in_(3) && (object_is_artifact(o_ptr) || have_flag(f, TR_BLESSED))) {
+            if (!one_in_(3) && (object_is_artifact(o_ptr) || has_flag(f, TR_BLESSED))) {
                 msg_format(_("%s は呪いを跳ね返した。", "%s resists the effect."), o_name);
                 if (one_in_(3)) {
                     if (o_ptr->to_d > 0) {
@@ -704,7 +704,7 @@ concptr do_hex_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode)
             object_flags(caster_ptr, o_ptr, f);
 
             caster_ptr->csp += (caster_ptr->lev / 5) + randint1(caster_ptr->lev / 5);
-            if (have_flag(f, TR_TY_CURSE) || (o_ptr->curse_flags & TRC_TY_CURSE))
+            if (has_flag(f, TR_TY_CURSE) || (o_ptr->curse_flags & TRC_TY_CURSE))
                 caster_ptr->csp += randint1(5);
             if (caster_ptr->csp > caster_ptr->msp)
                 caster_ptr->csp = caster_ptr->msp;
index 7948455..0ecee79 100644 (file)
@@ -662,7 +662,7 @@ concptr do_hissatsu_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type m
                     /* vorpal blade */
                     basedam *= 5;
                     basedam /= 3;
-                } else if (have_flag(flgs, TR_VORPAL)) {
+                } else if (has_flag(flgs, TR_VORPAL)) {
                     /* vorpal flag only */
                     basedam *= 11;
                     basedam /= 9;
@@ -943,7 +943,7 @@ concptr do_hissatsu_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type m
                     /* vorpal blade */
                     basedam *= 5;
                     basedam /= 3;
-                } else if (have_flag(flgs, TR_VORPAL)) {
+                } else if (has_flag(flgs, TR_VORPAL)) {
                     /* vorpal flag only */
                     basedam *= 11;
                     basedam /= 9;
index 82de987..ea18ef2 100644 (file)
@@ -145,7 +145,7 @@ static void build_stores(player_type *player_ptr, POSITION ltcy, POSITION ltcx,
         }
 
         for (j = 0; j < max_f_idx; j++) {
-            if (have_flag(f_info[j].flags, FF_STORE)) {
+            if (has_flag(f_info[j].flags, FF_STORE)) {
                 if (f_info[j].subtype == stores[i])
                     break;
             }
index e1b8356..916aa0a 100644 (file)
@@ -101,7 +101,7 @@ static void compensate_death_scythe_reflection_magnification(player_type *attack
     if (!(attacker_ptr->resist_pois || is_oppose_pois(attacker_ptr)) && (*magnification < 25))
         *magnification = 25;
 
-    if ((attacker_ptr->pclass != CLASS_SAMURAI) && (have_flag(death_scythe_flags, TR_FORCE_WEAPON)) && (attacker_ptr->csp > (attacker_ptr->msp / 30))) {
+    if ((attacker_ptr->pclass != CLASS_SAMURAI) && (has_flag(death_scythe_flags, TR_FORCE_WEAPON)) && (attacker_ptr->csp > (attacker_ptr->msp / 30))) {
         attacker_ptr->csp -= (1 + (attacker_ptr->msp / 30));
         attacker_ptr->redraw |= (PR_MANA);
         *magnification = *magnification * 3 / 2 + 20;
index 45e0838..439cdeb 100644 (file)
@@ -95,22 +95,22 @@ void calc_lite_radius(player_type *creature_ptr)
         object_flags(creature_ptr, o_ptr, flgs);
 
         POSITION rad = 0;
-        if (have_flag(flgs, TR_LITE_1) && o_ptr->name2 != EGO_LITE_DARKNESS)
+        if (has_flag(flgs, TR_LITE_1) && o_ptr->name2 != EGO_LITE_DARKNESS)
             rad += 1;
 
-        if (have_flag(flgs, TR_LITE_2) && o_ptr->name2 != EGO_LITE_DARKNESS)
+        if (has_flag(flgs, TR_LITE_2) && o_ptr->name2 != EGO_LITE_DARKNESS)
             rad += 2;
 
-        if (have_flag(flgs, TR_LITE_3) && o_ptr->name2 != EGO_LITE_DARKNESS)
+        if (has_flag(flgs, TR_LITE_3) && o_ptr->name2 != EGO_LITE_DARKNESS)
             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;
 
         creature_ptr->cur_lite += rad;
index 1250e45..23b336d 100644 (file)
@@ -329,7 +329,7 @@ bool earthquake(player_type *caster_ptr, POSITION cy, POSITION cx, POSITION r, M
                 if (!in_bounds2(floor_ptr, yyy, xxx))
                     continue;
                 cc_ptr = &floor_ptr->grid_array[yyy][xxx];
-                if (have_flag(f_info[get_feat_mimic(cc_ptr)].flags, FF_GLOW)) {
+                if (has_flag(f_info[get_feat_mimic(cc_ptr)].flags, FF_GLOW)) {
                     g_ptr->info |= CAVE_GLOW;
                     break;
                 }
index f5204cf..19291d4 100644 (file)
@@ -82,7 +82,7 @@ void wiz_lite(player_type *caster_ptr, bool ninja)
             f_ptr = &f_info[feat];
 
             /* Process all non-walls */
-            if (have_flag(f_ptr->flags, FF_WALL))
+            if (has_flag(f_ptr->flags, FF_WALL))
                 continue;
 
             /* Scan all neighbors */
@@ -100,7 +100,7 @@ void wiz_lite(player_type *caster_ptr, bool ninja)
                 }
 
                 /* Memorize normal features */
-                if (have_flag(f_ptr->flags, FF_REMEMBER)) {
+                if (has_flag(f_ptr->flags, FF_REMEMBER)) {
                     /* Memorize the grid */
                     g_ptr->info |= (CAVE_MARK);
                 }
@@ -204,11 +204,11 @@ void map_area(player_type *caster_ptr, POSITION range)
             f_ptr = &f_info[feat];
 
             /* All non-walls are "checked" */
-            if (have_flag(f_ptr->flags, FF_WALL))
+            if (has_flag(f_ptr->flags, FF_WALL))
                 continue;
 
             /* Memorize normal features */
-            if (have_flag(f_ptr->flags, FF_REMEMBER)) {
+            if (has_flag(f_ptr->flags, FF_REMEMBER)) {
                 /* Memorize the object */
                 g_ptr->info |= (CAVE_MARK);
             }
@@ -222,7 +222,7 @@ void map_area(player_type *caster_ptr, POSITION range)
                 f_ptr = &f_info[feat];
 
                 /* Memorize walls (etc) */
-                if (have_flag(f_ptr->flags, FF_REMEMBER)) {
+                if (has_flag(f_ptr->flags, FF_REMEMBER)) {
                     /* Memorize the walls */
                     g_ptr->info |= (CAVE_MARK);
                 }
@@ -440,7 +440,7 @@ bool destroy_area(player_type *caster_ptr, POSITION y1, POSITION x1, POSITION r,
                 if (!in_bounds2(floor_ptr, yy, xx))
                     continue;
                 cc_ptr = &floor_ptr->grid_array[yy][xx];
-                if (have_flag(f_info[get_feat_mimic(cc_ptr)].flags, FF_GLOW)) {
+                if (has_flag(f_info[get_feat_mimic(cc_ptr)].flags, FF_GLOW)) {
                     g_ptr->info |= CAVE_GLOW;
                     break;
                 }
index 211dcf5..913acf5 100644 (file)
@@ -110,7 +110,7 @@ static void cave_temp_room_unlite(player_type *caster_ptr)
                 if (in_bounds2(caster_ptr->current_floor_ptr, by, bx)) {
                     grid_type *cc_ptr = &caster_ptr->current_floor_ptr->grid_array[by][bx];
 
-                    if (have_flag(f_info[get_feat_mimic(cc_ptr)].flags, FF_GLOW)) {
+                    if (has_flag(f_info[get_feat_mimic(cc_ptr)].flags, FF_GLOW)) {
                         do_dark = FALSE;
                         break;
                     }
@@ -122,7 +122,7 @@ static void cave_temp_room_unlite(player_type *caster_ptr)
         }
 
         g_ptr->info &= ~(CAVE_GLOW);
-        if (!have_flag(f_info[get_feat_mimic(g_ptr)].flags, FF_REMEMBER)) {
+        if (!has_flag(f_info[get_feat_mimic(g_ptr)].flags, FF_REMEMBER)) {
             if (!view_torch_grids)
                 g_ptr->info &= ~(CAVE_MARK);
             note_spot(caster_ptr, y, x);
index decc05a..0b4b374 100644 (file)
@@ -518,7 +518,7 @@ void teleport_away_followable(player_type *tracer_ptr, MONSTER_IDX m_idx)
             o_ptr = &tracer_ptr->inventory_list[i];
             if (o_ptr->k_idx && !object_is_cursed(o_ptr)) {
                 object_flags(tracer_ptr, o_ptr, flgs);
-                if (have_flag(flgs, TR_TELEPORT)) {
+                if (has_flag(flgs, TR_TELEPORT)) {
                     follow = TRUE;
                     break;
                 }
index e0511ec..eaea194 100644 (file)
@@ -36,7 +36,7 @@ void call_the_void(player_type *caster_ptr)
         g_ptr = &caster_ptr->current_floor_ptr->grid_array[caster_ptr->y + ddy_ddd[i]][caster_ptr->x + ddx_ddd[i]];
 
         if (!cave_have_flag_grid(g_ptr, FF_PROJECT)) {
-            if (!g_ptr->mimic || !have_flag(f_info[g_ptr->mimic].flags, FF_PROJECT) || !permanent_wall(&f_info[g_ptr->feat])) {
+            if (!g_ptr->mimic || !has_flag(f_info[g_ptr->mimic].flags, FF_PROJECT) || !permanent_wall(&f_info[g_ptr->feat])) {
                 do_call = FALSE;
                 break;
             }
@@ -124,7 +124,7 @@ bool vanish_dungeon(player_type *caster_ptr)
                 }
             }
 
-            if (have_flag(f_ptr->flags, FF_HURT_DISI))
+            if (has_flag(f_ptr->flags, FF_HURT_DISI))
                 cave_alter_feat(caster_ptr, y, x, FF_HURT_DISI);
         }
     }
@@ -134,9 +134,9 @@ bool vanish_dungeon(player_type *caster_ptr)
         f_ptr = &f_info[g_ptr->mimic];
         g_ptr->info &= ~(CAVE_ROOM | CAVE_ICKY);
 
-        if (g_ptr->mimic && have_flag(f_ptr->flags, FF_HURT_DISI)) {
+        if (g_ptr->mimic && has_flag(f_ptr->flags, FF_HURT_DISI)) {
             g_ptr->mimic = feat_state(caster_ptr, g_ptr->mimic, FF_HURT_DISI);
-            if (!have_flag(f_info[g_ptr->mimic].flags, FF_REMEMBER))
+            if (!has_flag(f_info[g_ptr->mimic].flags, FF_REMEMBER))
                 g_ptr->info &= ~(CAVE_MARK);
         }
 
@@ -144,9 +144,9 @@ bool vanish_dungeon(player_type *caster_ptr)
         f_ptr = &f_info[g_ptr->mimic];
         g_ptr->info &= ~(CAVE_ROOM | CAVE_ICKY);
 
-        if (g_ptr->mimic && have_flag(f_ptr->flags, FF_HURT_DISI)) {
+        if (g_ptr->mimic && has_flag(f_ptr->flags, FF_HURT_DISI)) {
             g_ptr->mimic = feat_state(caster_ptr, g_ptr->mimic, FF_HURT_DISI);
-            if (!have_flag(f_info[g_ptr->mimic].flags, FF_REMEMBER))
+            if (!has_flag(f_info[g_ptr->mimic].flags, FF_REMEMBER))
                 g_ptr->info &= ~(CAVE_MARK);
         }
     }
@@ -157,9 +157,9 @@ bool vanish_dungeon(player_type *caster_ptr)
         f_ptr = &f_info[g_ptr->mimic];
         g_ptr->info &= ~(CAVE_ROOM | CAVE_ICKY);
 
-        if (g_ptr->mimic && have_flag(f_ptr->flags, FF_HURT_DISI)) {
+        if (g_ptr->mimic && has_flag(f_ptr->flags, FF_HURT_DISI)) {
             g_ptr->mimic = feat_state(caster_ptr, g_ptr->mimic, FF_HURT_DISI);
-            if (!have_flag(f_info[g_ptr->mimic].flags, FF_REMEMBER))
+            if (!has_flag(f_info[g_ptr->mimic].flags, FF_REMEMBER))
                 g_ptr->info &= ~(CAVE_MARK);
         }
 
@@ -167,9 +167,9 @@ bool vanish_dungeon(player_type *caster_ptr)
         f_ptr = &f_info[g_ptr->mimic];
         g_ptr->info &= ~(CAVE_ROOM | CAVE_ICKY);
 
-        if (g_ptr->mimic && have_flag(f_ptr->flags, FF_HURT_DISI)) {
+        if (g_ptr->mimic && has_flag(f_ptr->flags, FF_HURT_DISI)) {
             g_ptr->mimic = feat_state(caster_ptr, g_ptr->mimic, FF_HURT_DISI);
-            if (!have_flag(f_info[g_ptr->mimic].flags, FF_REMEMBER))
+            if (!has_flag(f_info[g_ptr->mimic].flags, FF_REMEMBER))
                 g_ptr->info &= ~(CAVE_MARK);
         }
     }
index 9dcadbc..e86adc6 100644 (file)
@@ -22,7 +22,7 @@ static bool is_blessed_item(player_type *player_ptr, object_type *o_ptr)
 {
     BIT_FLAGS flgs[TR_FLAG_SIZE];
     object_flags(player_ptr, o_ptr, flgs);
-    return have_flag(flgs, TR_BLESSED);
+    return has_flag(flgs, TR_BLESSED);
 }
 
 static bool check_store_general(object_type *o_ptr)
index 4dd9e35..ad6d424 100644 (file)
@@ -431,7 +431,7 @@ static s16b sweep_footing_items(player_type *subject_ptr, eg_type *eg_ptr)
 
 static concptr decide_target_floor(player_type *subject_ptr, eg_type *eg_ptr)
 {
-    if (have_flag(eg_ptr->f_ptr->flags, FF_QUEST_ENTER)) {
+    if (has_flag(eg_ptr->f_ptr->flags, FF_QUEST_ENTER)) {
         IDX old_quest = subject_ptr->current_floor_ptr->inside_quest;
         for (int j = 0; j < 10; j++)
             quest_text[j][0] = '\0';
@@ -445,13 +445,13 @@ static concptr decide_target_floor(player_type *subject_ptr, eg_type *eg_ptr)
             _("クエスト「%s」(%d階相当)", "the entrance to the quest '%s'(level %d)"), quest[eg_ptr->g_ptr->special].name, quest[eg_ptr->g_ptr->special].level);
     }
     
-    if (have_flag(eg_ptr->f_ptr->flags, FF_BLDG) && !subject_ptr->current_floor_ptr->inside_arena)
+    if (has_flag(eg_ptr->f_ptr->flags, FF_BLDG) && !subject_ptr->current_floor_ptr->inside_arena)
         return building[eg_ptr->f_ptr->subtype].name;
     
-    if (have_flag(eg_ptr->f_ptr->flags, FF_ENTRANCE))
+    if (has_flag(eg_ptr->f_ptr->flags, FF_ENTRANCE))
         return format(_("%s(%d階相当)", "%s(level %d)"), d_text + d_info[eg_ptr->g_ptr->special].text, d_info[eg_ptr->g_ptr->special].mindepth);
     
-    if (have_flag(eg_ptr->f_ptr->flags, FF_TOWN))
+    if (has_flag(eg_ptr->f_ptr->flags, FF_TOWN))
         return town_info[eg_ptr->g_ptr->special].name;
     
     if (subject_ptr->wild_mode && (eg_ptr->feat == feat_floor))
@@ -524,7 +524,7 @@ char examine_grid(player_type *subject_ptr, const POSITION y, const POSITION x,
         eg_ptr->feat = feat_none;
 
     eg_ptr->f_ptr = &f_info[eg_ptr->feat];
-    if (!eg_ptr->boring && !have_flag(eg_ptr->f_ptr->flags, FF_REMEMBER))
+    if (!eg_ptr->boring && !has_flag(eg_ptr->f_ptr->flags, FF_REMEMBER))
         return (eg_ptr->query != '\r') && (eg_ptr->query != '\n') ? eg_ptr->query : 0;
 
     /*
@@ -533,18 +533,18 @@ char examine_grid(player_type *subject_ptr, const POSITION y, const POSITION x,
      */
     eg_ptr->name = decide_target_floor(subject_ptr, eg_ptr);
     if (*eg_ptr->s2
-        && ((!have_flag(eg_ptr->f_ptr->flags, FF_MOVE) && !have_flag(eg_ptr->f_ptr->flags, FF_CAN_FLY))
-            || (!have_flag(eg_ptr->f_ptr->flags, FF_LOS) && !have_flag(eg_ptr->f_ptr->flags, FF_TREE)) || have_flag(eg_ptr->f_ptr->flags, FF_TOWN))) {
+        && ((!has_flag(eg_ptr->f_ptr->flags, FF_MOVE) && !has_flag(eg_ptr->f_ptr->flags, FF_CAN_FLY))
+            || (!has_flag(eg_ptr->f_ptr->flags, FF_LOS) && !has_flag(eg_ptr->f_ptr->flags, FF_TREE)) || has_flag(eg_ptr->f_ptr->flags, FF_TOWN))) {
         eg_ptr->s2 = _("の中", "in ");
     }
 
-    if (have_flag(eg_ptr->f_ptr->flags, FF_STORE) || have_flag(eg_ptr->f_ptr->flags, FF_QUEST_ENTER)
-        || (have_flag(eg_ptr->f_ptr->flags, FF_BLDG) && !subject_ptr->current_floor_ptr->inside_arena) || have_flag(eg_ptr->f_ptr->flags, FF_ENTRANCE))
+    if (has_flag(eg_ptr->f_ptr->flags, FF_STORE) || has_flag(eg_ptr->f_ptr->flags, FF_QUEST_ENTER)
+        || (has_flag(eg_ptr->f_ptr->flags, FF_BLDG) && !subject_ptr->current_floor_ptr->inside_arena) || has_flag(eg_ptr->f_ptr->flags, FF_ENTRANCE))
         eg_ptr->s2 = _("の入口", "");
 #ifdef JP
 #else
-    else if (have_flag(eg_ptr->f_ptr->flags, FF_FLOOR) || have_flag(eg_ptr->f_ptr->flags, FF_TOWN) || have_flag(eg_ptr->f_ptr->flags, FF_SHALLOW)
-        || have_flag(eg_ptr->f_ptr->flags, FF_DEEP))
+    else if (has_flag(eg_ptr->f_ptr->flags, FF_FLOOR) || has_flag(eg_ptr->f_ptr->flags, FF_TOWN) || has_flag(eg_ptr->f_ptr->flags, FF_SHALLOW)
+        || has_flag(eg_ptr->f_ptr->flags, FF_DEEP))
         eg_ptr->s3 = "";
     else
         eg_ptr->s3 = (is_a_vowel(eg_ptr->name[0])) ? "an " : "a ";
index c8066ef..5d2560f 100644 (file)
@@ -86,7 +86,7 @@ static bool target_set_accept(player_type *creature_ptr, POSITION y, POSITION x)
         if (g_ptr->info & CAVE_OBJECT)
             return TRUE;
 
-        if (have_flag(f_info[get_feat_mimic(g_ptr)].flags, FF_NOTICE))
+        if (has_flag(f_info[get_feat_mimic(g_ptr)].flags, FF_NOTICE))
             return TRUE;
     }
 
index fc73738..8ba4d78 100644 (file)
@@ -1,6 +1,6 @@
 #pragma once
 
-#define have_flag(ARRAY, INDEX) !!((ARRAY)[(INDEX) / 32] & (1L << ((INDEX) % 32)))
+#define has_flag(ARRAY, INDEX) !!((ARRAY)[(INDEX) / 32] & (1L << ((INDEX) % 32)))
 #define add_flag(ARRAY, INDEX) ((ARRAY)[(INDEX) / 32] |= (1L << ((INDEX) % 32)))
 #define remove_flag(ARRAY, INDEX) ((ARRAY)[(INDEX) / 32] &= ~(1L << ((INDEX) % 32)))
 #define is_pval_flag(INDEX) ((TR_STR <= (INDEX) && (INDEX) <= TR_MAGIC_MASTERY) || (TR_STEALTH <= (INDEX) && (INDEX) <= TR_BLOWS))
index a3af102..497e443 100644 (file)
@@ -41,7 +41,7 @@ static bool decide_cursed_equipment_color(u16b mode, TERM_LEN row, TERM_LEN *col
 {
        if ((mode & DP_CURSE) == 0) return FALSE;
 
-       if (have_flag(flags, TR_ADD_L_CURSE) || have_flag(flags, TR_ADD_H_CURSE))
+       if (has_flag(flags, TR_ADD_L_CURSE) || has_flag(flags, TR_ADD_H_CURSE))
        {
                c_put_str(TERM_L_DARK, "+", row, *col);
                *header_color = TERM_WHITE;
@@ -106,7 +106,7 @@ static bool decide_light_equipment_color(TERM_LEN row, TERM_LEN *col, int flag1,
  */
 static void decide_vulnerability_color(u16b mode, TERM_LEN row, TERM_LEN *col, int flag1, BIT_FLAGS *flags, byte *header_color, bool vuln)
 {
-       if (have_flag(flags, flag1))
+       if (has_flag(flags, flag1))
        {
                c_put_str((byte)(vuln ? TERM_L_RED : TERM_WHITE),
                        (mode & DP_IMM) ? "*" : "+", row, *col);
@@ -165,25 +165,25 @@ static void decide_colors(player_type *creature_ptr, u16b mode, TERM_LEN row, TE
 static void display_one_characteristic(TERM_LEN row, TERM_LEN col, concptr header, byte header_color, int header_col, int flag1, bool vuln, all_player_flags *f)
 {
        c_put_str((byte)(vuln ? TERM_RED : TERM_SLATE), ".", row, col);
-       if (have_flag(f->player_flags, flag1))
+       if (has_flag(f->player_flags, flag1))
        {
                c_put_str((byte)(vuln ? TERM_L_RED : TERM_WHITE), "+", row, col);
                header_color = TERM_WHITE;
        }
 
-       if (have_flag(f->tim_player_flags, flag1))
+       if (has_flag(f->tim_player_flags, flag1))
        {
                c_put_str((byte)(vuln ? TERM_ORANGE : TERM_YELLOW), "#", row, col);
                header_color = TERM_WHITE;
        }
 
-       if (have_flag(f->tim_player_imm, flag1))
+       if (has_flag(f->tim_player_imm, flag1))
        {
                c_put_str(TERM_YELLOW, "*", row, col);
                header_color = TERM_WHITE;
        }
 
-       if (have_flag(f->player_imm, flag1))
+       if (has_flag(f->player_imm, flag1))
        {
                c_put_str(TERM_WHITE, "*", row, col);
                header_color = TERM_WHITE;
@@ -212,8 +212,8 @@ static void process_one_characteristic(player_type *creature_ptr, TERM_LEN row,
        byte header_color = TERM_L_DARK;
        int header_col = col;
        bool vuln = FALSE;
-       if (have_flag(f->player_vuln, flag1) &&
-               !(have_flag(f->known_obj_imm, flag1) || have_flag(f->player_imm, flag1) || have_flag(f->tim_player_imm, flag1)))
+       if (has_flag(f->player_vuln, flag1) &&
+               !(has_flag(f->known_obj_imm, flag1) || has_flag(f->player_imm, flag1) || has_flag(f->tim_player_imm, flag1)))
                vuln = TRUE;
 
        col += strlen(header) + 1;
index c9c9685..f73a650 100644 (file)
@@ -91,7 +91,7 @@ void map_info(player_type *player_ptr, POSITION y, POSITION x, TERM_COLOR *ap, S
     feature_type *f_ptr = &f_info[feat];
     TERM_COLOR a;
     SYMBOL_CODE c;
-    if (!have_flag(f_ptr->flags, FF_REMEMBER)) {
+    if (!has_flag(f_ptr->flags, FF_REMEMBER)) {
         if (!player_ptr->blind
             && ((g_ptr->info & (CAVE_MARK | CAVE_LITE | CAVE_MNLT))
                 || ((g_ptr->info & CAVE_VIEW) && (((g_ptr->info & (CAVE_GLOW | CAVE_MNDK)) == CAVE_GLOW) || player_ptr->see_nocto)))) {
@@ -139,7 +139,7 @@ void map_info(player_type *player_ptr, POSITION y, POSITION x, TERM_COLOR *ap, S
                     c = f_ptr->x_char[F_LIT_DARK];
                 }
             } else if (darkened_grid(player_ptr, g_ptr) && !player_ptr->blind) {
-                if (have_flag(f_ptr->flags, FF_LOS) && have_flag(f_ptr->flags, FF_PROJECT)) {
+                if (has_flag(f_ptr->flags, FF_LOS) && has_flag(f_ptr->flags, FF_PROJECT)) {
                     feat = (view_unsafe_grids && (g_ptr->info & CAVE_UNSAFE)) ? feat_undetected : feat_none;
                     f_ptr = &f_info[feat];
                     a = f_ptr->x_attr[F_LIT_STANDARD];
@@ -164,7 +164,7 @@ void map_info(player_type *player_ptr, POSITION y, POSITION x, TERM_COLOR *ap, S
                     } else if ((g_ptr->info & (CAVE_GLOW | CAVE_MNDK)) != CAVE_GLOW) {
                         a = f_ptr->x_attr[F_LIT_DARK];
                         c = f_ptr->x_char[F_LIT_DARK];
-                    } else if (!have_flag(f_ptr->flags, FF_LOS) && !check_local_illumination(player_ptr, y, x)) {
+                    } else if (!has_flag(f_ptr->flags, FF_LOS) && !check_local_illumination(player_ptr, y, x)) {
                         a = f_ptr->x_attr[F_LIT_DARK];
                         c = f_ptr->x_char[F_LIT_DARK];
                     }
index 4776c6e..73115f8 100644 (file)
@@ -182,7 +182,7 @@ static void compensate_stat_by_weapon(char *c, TERM_COLOR *a, object_type *o_ptr
                if (o_ptr->pval < 10) *c = '0' + o_ptr->pval;
        }
 
-       if (have_flag(flags, stat + TR_SUST_STR))
+       if (has_flag(flags, stat + TR_SUST_STR))
        {
                *a = TERM_GREEN;
        }
@@ -214,11 +214,11 @@ static void display_equipments_compensation(player_type *creature_ptr, BIT_FLAGS
                {
                        TERM_COLOR a = TERM_SLATE;
                        char c = '.';
-                       if (have_flag(flags, stat))
+                       if (has_flag(flags, stat))
                        {
                                compensate_stat_by_weapon(&c, &a, o_ptr, stat, flags);
                        }
-                       else if (have_flag(flags, stat + TR_SUST_STR))
+                       else if (has_flag(flags, stat + TR_SUST_STR))
                        {
                                a = TERM_GREEN;
                                c = 's';
@@ -335,7 +335,7 @@ static void display_mutation_compensation(player_type *creature_ptr, BIT_FLAGS *
                char c = '.';
                change_display_by_mutation(creature_ptr, stat, &c, &a);
 
-               if (have_flag(flags, stat + TR_SUST_STR))
+               if (has_flag(flags, stat + TR_SUST_STR))
                {
                        a = TERM_GREEN;
                        c = 's';
index 73b015f..95d2416 100644 (file)
@@ -128,7 +128,7 @@ static int strengthen_basedam(player_type *creature_ptr, object_type *o_ptr, int
                basedam *= 5;
                basedam /= 3;
        }
-       else if (have_flag(flgs, TR_VORPAL))
+       else if (has_flag(flgs, TR_VORPAL))
        {
                /* vorpal flag only */
                basedam *= 11;
@@ -137,7 +137,7 @@ static int strengthen_basedam(player_type *creature_ptr, object_type *o_ptr, int
 
        // 理力
        bool is_force = creature_ptr->pclass != CLASS_SAMURAI;
-       is_force &= have_flag(flgs, TR_FORCE_WEAPON);
+       is_force &= has_flag(flgs, TR_FORCE_WEAPON);
        is_force &= creature_ptr->csp > (o_ptr->dd * o_ptr->ds / 5);
        if (is_force) basedam = basedam * 7 / 2;
 
index a630cc2..c7e6e1b 100644 (file)
@@ -34,7 +34,7 @@
 static concptr *spoiler_flag_aux(const BIT_FLAGS art_flags[TR_FLAG_SIZE], const flag_desc *flag_ptr, concptr *desc_ptr, const int n_elmnts)
 {
     for (int i = 0; i < n_elmnts; ++i)
-        if (have_flag(art_flags, flag_ptr[i].flag))
+        if (has_flag(art_flags, flag_ptr[i].flag))
             *desc_ptr++ = flag_ptr[i].desc;
 
     return desc_ptr;
@@ -72,11 +72,11 @@ static void analyze_pval(player_type *player_ptr, object_type *o_ptr, pval_info_
     object_flags(player_ptr, o_ptr, flgs);
     affects_list = pi_ptr->pval_affects;
     sprintf(pi_ptr->pval_desc, "%s%d", o_ptr->pval >= 0 ? "+" : "", o_ptr->pval);
-    if (have_flag(flgs, TR_STR) && have_flag(flgs, TR_INT) && have_flag(flgs, TR_WIS) && have_flag(flgs, TR_DEX) && have_flag(flgs, TR_CON)
-        && have_flag(flgs, TR_CHR)) {
+    if (has_flag(flgs, TR_STR) && has_flag(flgs, TR_INT) && has_flag(flgs, TR_WIS) && has_flag(flgs, TR_DEX) && has_flag(flgs, TR_CON)
+        && has_flag(flgs, TR_CHR)) {
         *affects_list++ = _("全能力", "All stats");
-    } else if (have_flag(flgs, TR_STR) || have_flag(flgs, TR_INT) || have_flag(flgs, TR_WIS) || have_flag(flgs, TR_DEX) || have_flag(flgs, TR_CON)
-        || have_flag(flgs, TR_CHR)) {
+    } else if (has_flag(flgs, TR_STR) || has_flag(flgs, TR_INT) || has_flag(flgs, TR_WIS) || has_flag(flgs, TR_DEX) || has_flag(flgs, TR_CON)
+        || has_flag(flgs, TR_CHR)) {
         affects_list = spoiler_flag_aux(flgs, stat_flags_desc, affects_list, N_ELEMENTS(stat_flags_desc));
     }
 
@@ -155,11 +155,11 @@ static void analyze_sustains(player_type *player_ptr, object_type *o_ptr, concpt
 {
     BIT_FLAGS flgs[TR_FLAG_SIZE];
     object_flags(player_ptr, o_ptr, flgs);
-    if (have_flag(flgs, TR_SUST_STR) && have_flag(flgs, TR_SUST_INT) && have_flag(flgs, TR_SUST_WIS) && have_flag(flgs, TR_SUST_DEX)
-        && have_flag(flgs, TR_SUST_CON) && have_flag(flgs, TR_SUST_CHR)) {
+    if (has_flag(flgs, TR_SUST_STR) && has_flag(flgs, TR_SUST_INT) && has_flag(flgs, TR_SUST_WIS) && has_flag(flgs, TR_SUST_DEX)
+        && has_flag(flgs, TR_SUST_CON) && has_flag(flgs, TR_SUST_CHR)) {
         *sustain_list++ = _("全能力", "All stats");
-    } else if (have_flag(flgs, TR_SUST_STR) || have_flag(flgs, TR_SUST_INT) || have_flag(flgs, TR_SUST_WIS) || have_flag(flgs, TR_SUST_DEX)
-        || have_flag(flgs, TR_SUST_CON) || have_flag(flgs, TR_SUST_CHR)) {
+    } else if (has_flag(flgs, TR_SUST_STR) || has_flag(flgs, TR_SUST_INT) || has_flag(flgs, TR_SUST_WIS) || has_flag(flgs, TR_SUST_DEX)
+        || has_flag(flgs, TR_SUST_CON) || has_flag(flgs, TR_SUST_CHR)) {
         sustain_list = spoiler_flag_aux(flgs, sustain_flags_desc, sustain_list, N_ELEMENTS(sustain_flags_desc));
     }
 
@@ -183,28 +183,28 @@ static void analyze_misc_magic(player_type *player_ptr, object_type *o_ptr, conc
     misc_list = spoiler_flag_aux(flgs, misc_flags2_desc, misc_list, N_ELEMENTS(misc_flags2_desc));
     misc_list = spoiler_flag_aux(flgs, misc_flags3_desc, misc_list, N_ELEMENTS(misc_flags3_desc));
     POSITION rad = 0;
-    if (have_flag(flgs, TR_LITE_1))
+    if (has_flag(flgs, TR_LITE_1))
         rad += 1;
 
-    if (have_flag(flgs, TR_LITE_2))
+    if (has_flag(flgs, TR_LITE_2))
         rad += 2;
 
-    if (have_flag(flgs, TR_LITE_3))
+    if (has_flag(flgs, TR_LITE_3))
         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)) {
+    if (has_flag(flgs, TR_LITE_FUEL)) {
         if (rad > 0)
             sprintf(desc, _("それは燃料補給によって明かり(半径 %d)を授ける。", "It provides light (radius %d) when fueled."), (int)rad);
     } else {
@@ -218,7 +218,7 @@ static void analyze_misc_magic(player_type *player_ptr, object_type *o_ptr, conc
     if (rad != 0)
         *misc_list++ = quark_str(quark_add(desc));
 
-    if (have_flag(flgs, TR_TY_CURSE))
+    if (has_flag(flgs, TR_TY_CURSE))
         *misc_list++ = _("太古の怨念", "Ancient Curse");
 
     if (o_ptr->curse_flags & TRC_PERMA_CURSE)
@@ -228,10 +228,10 @@ static void analyze_misc_magic(player_type *player_ptr, object_type *o_ptr, conc
     else if (o_ptr->curse_flags & TRC_CURSED)
         *misc_list++ = _("呪い", "Cursed");
 
-    if (have_flag(flgs, TR_ADD_L_CURSE))
+    if (has_flag(flgs, TR_ADD_L_CURSE))
         *misc_list++ = _("呪いを増やす", "Cursing");
 
-    if (have_flag(flgs, TR_ADD_H_CURSE))
+    if (has_flag(flgs, TR_ADD_H_CURSE))
         *misc_list++ = _("強力な呪いを増やす", "Heavily Cursing");
 
     *misc_list = NULL;
index 6db0181..9c11912 100644 (file)
@@ -348,9 +348,9 @@ void wiz_create_feature(player_type *creature_ptr)
     feature_type *f_ptr;
     f_ptr = &f_info[get_feat_mimic(g_ptr)];
 
-    if (have_flag(f_ptr->flags, FF_GLYPH) || have_flag(f_ptr->flags, FF_MINOR_GLYPH))
+    if (has_flag(f_ptr->flags, FF_GLYPH) || has_flag(f_ptr->flags, FF_MINOR_GLYPH))
         g_ptr->info |= CAVE_OBJECT;
-    else if (have_flag(f_ptr->flags, FF_MIRROR))
+    else if (has_flag(f_ptr->flags, FF_MIRROR))
         g_ptr->info |= CAVE_GLOW | CAVE_OBJECT;
 
     note_spot(creature_ptr, y, x);
index 344949c..f1578d9 100644 (file)
@@ -143,7 +143,7 @@ void process_world(player_type *player_ptr)
                     feature_type *f_ptr = &f_info[i];
                     if (!f_ptr->name)
                         continue;
-                    if (!have_flag(f_ptr->flags, FF_STORE))
+                    if (!has_flag(f_ptr->flags, FF_STORE))
                         continue;
 
                     if (f_ptr->subtype == n) {