OSDN Git Service

[Refactor] #1172 Changed '(FALSE)', 'TRUE);' and 'FALSE);' to '(false)', 'true);...
authorHourier <grapefox.whitelucifer.0408@gmail.com>
Sat, 29 May 2021 14:35:07 +0000 (23:35 +0900)
committerHourier <grapefox.whitelucifer.0408@gmail.com>
Sat, 29 May 2021 14:35:07 +0000 (23:35 +0900)
213 files changed:
src/action/movement-execution.cpp
src/action/mutation-execution.cpp
src/action/open-close-execution.cpp
src/action/open-util.cpp
src/action/run-execution.cpp
src/action/travel-execution.cpp
src/autopick/autopick-destroyer.cpp
src/autopick/autopick-editor-command.cpp
src/autopick/autopick-entry.cpp
src/autopick/autopick-initializer.cpp
src/autopick/autopick.cpp
src/birth/birth-wizard.cpp
src/birth/inventory-initializer.cpp
src/birth/quick-start.cpp
src/blue-magic/blue-magic-caster.cpp
src/cmd-action/cmd-attack.cpp
src/cmd-action/cmd-mane.cpp
src/cmd-action/cmd-move.cpp
src/cmd-action/cmd-open-close.cpp
src/cmd-action/cmd-others.cpp
src/cmd-action/cmd-pet.cpp
src/cmd-action/cmd-shoot.cpp
src/cmd-action/cmd-spell.cpp
src/cmd-action/cmd-tunnel.cpp
src/cmd-building/cmd-inn.cpp
src/cmd-io/cmd-autopick.cpp
src/cmd-io/cmd-knowledge.cpp
src/cmd-io/cmd-save.cpp
src/cmd-item/cmd-destroy.cpp
src/cmd-item/cmd-equipment.cpp
src/cmd-item/cmd-item.cpp
src/cmd-item/cmd-magiceat.cpp
src/cmd-item/cmd-smith.cpp
src/cmd-item/cmd-throw.cpp
src/cmd-item/cmd-usestaff.cpp
src/cmd-item/cmd-zaprod.cpp
src/cmd-item/cmd-zapwand.cpp
src/combat/aura-counterattack.cpp
src/combat/shoot.cpp
src/core/asking-player.cpp
src/core/game-closer.cpp
src/core/game-play.cpp
src/core/magic-effects-timeout-reducer.cpp
src/core/player-processor.cpp
src/core/window-redrawer.cpp
src/dungeon/dungeon-processor.cpp
src/effect/effect-feature.cpp
src/effect/effect-item.cpp
src/effect/effect-monster-switcher.cpp
src/effect/effect-monster.cpp
src/effect/effect-player-oldies.cpp
src/effect/effect-player-resist-hurt.cpp
src/effect/effect-player-spirit.cpp
src/effect/effect-player.cpp
src/effect/effect-processor.cpp
src/floor/cave-generator.cpp
src/floor/floor-changer.cpp
src/floor/floor-events.cpp
src/floor/floor-generator.cpp
src/floor/floor-leaver.cpp
src/floor/floor-streams.cpp
src/floor/pattern-walk.cpp
src/floor/tunnel-generator.cpp
src/floor/wild.cpp
src/grid/feature-generator.cpp
src/grid/feature.cpp
src/grid/grid.cpp
src/grid/trap.cpp
src/info-reader/fixed-map-parser.cpp
src/inventory/inventory-curse.cpp
src/inventory/pack-overflow.cpp
src/inventory/player-inventory.cpp
src/inventory/recharge-processor.cpp
src/io-dump/player-status-dump.cpp
src/io/files-util.cpp
src/io/input-key-acceptor.cpp
src/io/input-key-processor.cpp
src/io/input-key-requester.cpp
src/io/read-pref-file.cpp
src/knowledge/knowledge-autopick.cpp
src/load/dungeon-loader.cpp
src/load/world-loader.cpp
src/main-win.cpp
src/main-win/main-win-term.h
src/market/bounty.cpp
src/market/building-craft-weapon.cpp
src/market/building-quest.cpp
src/market/building-recharger.cpp
src/melee/melee-postprocess.cpp
src/melee/melee-spell.cpp
src/melee/melee-switcher.cpp
src/melee/monster-attack-monster.cpp
src/mind/mind-archer.cpp
src/mind/mind-berserker.cpp
src/mind/mind-blue-mage.cpp
src/mind/mind-cavalry.cpp
src/mind/mind-force-trainer.cpp
src/mind/mind-magic-resistance.cpp
src/mind/mind-mindcrafter.cpp
src/mind/mind-mirror-master.cpp
src/mind/mind-ninja.cpp
src/monster-attack/monster-attack-player.cpp
src/monster-attack/monster-attack-switcher.cpp
src/monster-floor/monster-move.cpp
src/monster-floor/monster-remover.cpp
src/monster-floor/monster-runaway.cpp
src/monster-floor/one-monster-placer.cpp
src/monster-floor/quantum-effect.cpp
src/monster/monster-list.cpp
src/monster/monster-status.cpp
src/monster/monster-update.cpp
src/monster/monster-util.cpp
src/mspell/assign-monster-spell.cpp
src/mspell/mspell-attack.cpp
src/mspell/mspell-breath.cpp
src/mspell/mspell-curse.cpp
src/mspell/mspell-dispel.cpp
src/mspell/mspell-floor.cpp
src/mspell/mspell-special.cpp
src/mspell/mspell-status.cpp
src/mspell/mspell-summon.cpp
src/mspell/mspell-util.cpp
src/mutation/mutation-processor.cpp
src/object-activation/activation-breath.cpp
src/object-activation/activation-genocide.cpp
src/object-activation/activation-others.cpp
src/object-activation/activation-resistance.cpp
src/object-activation/activation-switcher.cpp
src/object-activation/activation-teleport.cpp
src/object-enchant/apply-magic-amulet.cpp
src/object-enchant/apply-magic-armor.cpp
src/object-enchant/apply-magic-others.cpp
src/object-enchant/apply-magic-ring.cpp
src/object-enchant/apply-magic-weapon.cpp
src/object-enchant/object-boost.cpp
src/object-use/quaff-execution.cpp
src/object-use/read-execution.cpp
src/object/lite-processor.cpp
src/object/warning.cpp
src/perception/simple-perception.cpp
src/player-attack/player-attack.cpp
src/player/digestion-processor.cpp
src/player/patron.cpp
src/player/player-damage.cpp
src/player/player-move.cpp
src/player/player-status.cpp
src/player/process-name.cpp
src/racial/racial-kutar.cpp
src/racial/racial-switcher.cpp
src/realm/realm-arcane.cpp
src/realm/realm-chaos.cpp
src/realm/realm-craft.cpp
src/realm/realm-crusade.cpp
src/realm/realm-death.cpp
src/realm/realm-demon.cpp
src/realm/realm-hissatsu.cpp
src/realm/realm-life.cpp
src/realm/realm-nature.cpp
src/realm/realm-song.cpp
src/realm/realm-sorcery.cpp
src/realm/realm-trump.cpp
src/room/rooms-builder.cpp
src/room/rooms-city.cpp
src/room/rooms-normal.cpp
src/room/rooms-vault.cpp
src/specific-object/blade-turner.cpp
src/specific-object/chest.cpp
src/specific-object/ring-of-power.cpp
src/specific-object/torch.cpp
src/spell-kind/blood-curse.cpp
src/spell-kind/earthquake.cpp
src/spell-kind/spells-curse-removal.cpp
src/spell-kind/spells-detection.cpp
src/spell-kind/spells-enchant.cpp
src/spell-kind/spells-fetcher.cpp
src/spell-kind/spells-floor.cpp
src/spell-kind/spells-lite.cpp
src/spell-kind/spells-perception.cpp
src/spell-kind/spells-random.cpp
src/spell-kind/spells-teleport.cpp
src/spell-kind/spells-world.cpp
src/spell-realm/spells-craft.cpp
src/spell-realm/spells-crusade.cpp
src/spell-realm/spells-demon.cpp
src/spell-realm/spells-song.cpp
src/spell-realm/spells-trump.cpp
src/spell/spells-status.cpp
src/spell/spells-summon.cpp
src/status/bad-status-setter.cpp
src/status/body-improvement.cpp
src/status/buff-setter.cpp
src/status/element-resistance.cpp
src/status/shape-changer.cpp
src/status/sight-setter.cpp
src/status/temporary-resistance.cpp
src/store/cmd-store.cpp
src/store/purchase-order.cpp
src/store/say-comments.cpp
src/store/sell-order.cpp
src/store/store-key-processor.cpp
src/target/projection-path-calculator.cpp
src/target/target-checker.cpp
src/term/z-term.cpp
src/view/display-store.cpp
src/window/display-sub-window-items.cpp
src/window/main-window-left-frame.cpp
src/wizard/cmd-wizard.cpp
src/wizard/wizard-game-modifier.cpp
src/wizard/wizard-item-modifier.cpp
src/wizard/wizard-player-modifier.cpp
src/wizard/wizard-special-process.cpp
src/world/world-movement-processor.cpp
src/world/world-turn-processor.cpp

index 5e19155..5f929b7 100644 (file)
@@ -196,16 +196,16 @@ void exe_movement(player_type *creature_ptr, DIRECTION dir, bool do_pickup, bool
             msg_print(_("動けない!", "Can't move!"));
             energy.reset_player_turn();
             can_move = false;
-            disturb(creature_ptr, FALSE, TRUE);
+            disturb(creature_ptr, FALSE, true);
         } else if (monster_fear_remaining(riding_m_ptr)) {
             GAME_TEXT steed_name[MAX_NLEN];
             monster_desc(creature_ptr, steed_name, riding_m_ptr, 0);
             msg_format(_("%sが恐怖していて制御できない。", "%^s is too scared to control."), steed_name);
             can_move = false;
-            disturb(creature_ptr, FALSE, TRUE);
+            disturb(creature_ptr, FALSE, true);
         } else if (creature_ptr->riding_ryoute) {
             can_move = false;
-            disturb(creature_ptr, FALSE, TRUE);
+            disturb(creature_ptr, FALSE, true);
         } else if (has_flag(f_ptr->flags, FF_CAN_FLY) && (riding_r_ptr->flags7 & RF7_CAN_FLY)) {
             /* Allow moving */
         } else if (has_flag(f_ptr->flags, FF_CAN_SWIM) && (riding_r_ptr->flags7 & RF7_CAN_SWIM)) {
@@ -215,17 +215,17 @@ void exe_movement(player_type *creature_ptr, DIRECTION dir, bool do_pickup, bool
             msg_format(_("%sの上に行けない。", "Can't swim."), f_info[get_feat_mimic(g_ptr)].name.c_str());
             energy.reset_player_turn();
             can_move = false;
-            disturb(creature_ptr, FALSE, TRUE);
+            disturb(creature_ptr, FALSE, true);
         } else if (!has_flag(f_ptr->flags, FF_WATER) && (riding_r_ptr->flags7 & RF7_AQUATIC)) {
             msg_format(_("%sから上がれない。", "Can't land."), f_info[get_feat_mimic(&floor_ptr->grid_array[creature_ptr->y][creature_ptr->x])].name.c_str());
             energy.reset_player_turn();
             can_move = false;
-            disturb(creature_ptr, FALSE, TRUE);
+            disturb(creature_ptr, FALSE, true);
         } 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_info[get_feat_mimic(g_ptr)].name.c_str());
             energy.reset_player_turn();
             can_move = false;
-            disturb(creature_ptr, FALSE, TRUE);
+            disturb(creature_ptr, FALSE, true);
         }
 
         if (can_move && monster_stunned_remaining(riding_m_ptr) && one_in_(2)) {
@@ -233,7 +233,7 @@ void exe_movement(player_type *creature_ptr, DIRECTION dir, bool do_pickup, bool
             monster_desc(creature_ptr, steed_name, riding_m_ptr, 0);
             msg_format(_("%sが朦朧としていてうまく動けない!", "You cannot control stunned %s!"), steed_name);
             can_move = false;
-            disturb(creature_ptr, FALSE, TRUE);
+            disturb(creature_ptr, FALSE, true);
         }
     }
 
@@ -288,7 +288,7 @@ void exe_movement(player_type *creature_ptr, DIRECTION dir, bool do_pickup, bool
             }
         }
 
-        disturb(creature_ptr, FALSE, TRUE);
+        disturb(creature_ptr, FALSE, true);
         if (!boundary_floor(g_ptr, f_ptr, mimic_f_ptr))
             sound(SOUND_HITWALL);
     }
@@ -297,7 +297,7 @@ void exe_movement(player_type *creature_ptr, DIRECTION dir, bool do_pickup, bool
         if (!(creature_ptr->confused || creature_ptr->stun || creature_ptr->image))
             energy.reset_player_turn();
 
-        disturb(creature_ptr, FALSE, TRUE);
+        disturb(creature_ptr, FALSE, true);
         can_move = false;
     }
 
index 282ff92..f3b415b 100644 (file)
@@ -95,7 +95,7 @@ bool exe_mutation_power(player_type *creature_ptr, MUTA power)
             return false;
 
         msg_print(_("集中している...", "You concentrate..."));
-        fetch_item(creature_ptr, dir, lvl * 10, TRUE);
+        fetch_item(creature_ptr, dir, lvl * 10, true);
         return true;
     case MUTA::VTELEPORT:
         msg_print(_("集中している...", "You concentrate..."));
@@ -176,27 +176,27 @@ bool exe_mutation_power(player_type *creature_ptr, MUTA power)
         int num = lvl / 10;
         TIME_EFFECT dur = randint1(20) + 20;
         if (randint0(5) < num) {
-            (void)set_oppose_acid(creature_ptr, dur, FALSE);
+            (void)set_oppose_acid(creature_ptr, dur, false);
             num--;
         }
 
         if (randint0(4) < num) {
-            (void)set_oppose_elec(creature_ptr, dur, FALSE);
+            (void)set_oppose_elec(creature_ptr, dur, false);
             num--;
         }
 
         if (randint0(3) < num) {
-            (void)set_oppose_fire(creature_ptr, dur, FALSE);
+            (void)set_oppose_fire(creature_ptr, dur, false);
             num--;
         }
 
         if (randint0(2) < num) {
-            (void)set_oppose_cold(creature_ptr, dur, FALSE);
+            (void)set_oppose_cold(creature_ptr, dur, false);
             num--;
         }
 
         if (num != 0) {
-            (void)set_oppose_pois(creature_ptr, dur, FALSE);
+            (void)set_oppose_pois(creature_ptr, dur, false);
             num--;
         }
 
index e91d7ac..e2eaff3 100644 (file)
@@ -263,7 +263,7 @@ bool exe_disarm(player_type *creature_ptr, POSITION y, POSITION x, DIRECTION dir
         msg_format(_("%sを解除した。", "You have disarmed the %s."), name);
         gain_exp(creature_ptr, power);
         cave_alter_feat(creature_ptr, y, x, FF_DISARM);
-        exe_movement(creature_ptr, dir, easy_disarm, FALSE);
+        exe_movement(creature_ptr, dir, easy_disarm, false);
     } else if ((i > 5) && (randint1(i) > 5)) {
         if (flush_failure)
             flush();
@@ -272,7 +272,7 @@ bool exe_disarm(player_type *creature_ptr, POSITION y, POSITION x, DIRECTION dir
         more = true;
     } else {
         msg_format(_("%sを作動させてしまった!", "You set off the %s!"), name);
-        exe_movement(creature_ptr, dir, easy_disarm, FALSE);
+        exe_movement(creature_ptr, dir, easy_disarm, false);
     }
 
     return more;
@@ -318,7 +318,7 @@ bool exe_bash(player_type *creature_ptr, POSITION y, POSITION x, DIRECTION dir)
             cave_alter_feat(creature_ptr, y, x, FF_OPEN);
         }
 
-        exe_movement(creature_ptr, dir, FALSE, FALSE);
+        exe_movement(creature_ptr, dir, FALSE, false);
     } else if (randint0(100) < adj_dex_safe[creature_ptr->stat_index[A_DEX]] + creature_ptr->lev) {
         msg_format(_("この%sは頑丈だ。", "The %s holds firm."), name);
         more = true;
index 963ee58..72e4f23 100644 (file)
@@ -50,7 +50,7 @@ int count_chests(player_type *creature_ptr, POSITION *y, POSITION *x, bool trapp
     for (DIRECTION d = 0; d < 9; d++) {
         POSITION yy = creature_ptr->y + ddy_ddd[d];
         POSITION xx = creature_ptr->x + ddx_ddd[d];
-        OBJECT_IDX o_idx = chest_check(creature_ptr->current_floor_ptr, yy, xx, FALSE);
+        OBJECT_IDX o_idx = chest_check(creature_ptr->current_floor_ptr, yy, xx, false);
         if (!o_idx)
             continue;
 
index d04f8c4..4306e24 100644 (file)
@@ -364,14 +364,14 @@ void run_step(player_type *creature_ptr, DIRECTION dir)
         if (see_wall(creature_ptr, dir, creature_ptr->y, creature_ptr->x)) {
             sound(SOUND_HITWALL);
             msg_print(_("その方向には走れません。", "You cannot run in that direction."));
-            disturb(creature_ptr, FALSE, FALSE);
+            disturb(creature_ptr, FALSE, false);
             return;
         }
 
         run_init(creature_ptr, dir);
     } else {
         if (run_test(creature_ptr)) {
-            disturb(creature_ptr, FALSE, FALSE);
+            disturb(creature_ptr, FALSE, false);
             return;
         }
     }
@@ -380,10 +380,10 @@ void run_step(player_type *creature_ptr, DIRECTION dir)
         return;
 
     PlayerEnergy(creature_ptr).set_player_turn_energy(100);
-    exe_movement(creature_ptr, find_current, FALSE, FALSE);
+    exe_movement(creature_ptr, find_current, FALSE, false);
     if (player_bold(creature_ptr, creature_ptr->run_py, creature_ptr->run_px)) {
         creature_ptr->run_py = 0;
         creature_ptr->run_px = 0;
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     }
 }
index fc142d2..fcb69fb 100644 (file)
@@ -99,12 +99,12 @@ void travel_step(player_type *creature_ptr)
             travel.y = travel.x = 0;
         }
 
-        disturb(creature_ptr, FALSE, TRUE);
+        disturb(creature_ptr, FALSE, true);
         return;
     }
 
     PlayerEnergy(creature_ptr).set_player_turn_energy(100);
-    exe_movement(creature_ptr, travel.dir, always_pickup, FALSE);
+    exe_movement(creature_ptr, travel.dir, always_pickup, false);
     if ((creature_ptr->y == travel.y) && (creature_ptr->x == travel.x)) {
         travel.run = 0;
         travel.y = travel.x = 0;
index 91a3856..852ad9c 100644 (file)
@@ -116,7 +116,7 @@ void auto_destroy_item(player_type *player_ptr, object_type *o_ptr, int autopick
     if (!destroy)
         return;
 
-    disturb(player_ptr, FALSE, FALSE);
+    disturb(player_ptr, FALSE, false);
     if (!can_player_destroy_object(player_ptr, o_ptr)) {
         GAME_TEXT o_name[MAX_NLEN];
         describe_flavor(player_ptr, o_name, o_ptr, 0);
index fe2fed3..de69d95 100644 (file)
@@ -188,7 +188,7 @@ ape_quittance do_editor_command(player_type *player_ptr, text_body_type *tb, int
             if (bx2 > len)
                 bx2 = len;
 
-            kill_line_segment(tb, tb->cy, bx1, bx2, TRUE);
+            kill_line_segment(tb, tb->cy, bx1, bx2, true);
             tb->cx = bx1;
         } else {
             int by1 = MIN(tb->my, tb->cy);
@@ -197,7 +197,7 @@ ape_quittance do_editor_command(player_type *player_ptr, text_body_type *tb, int
             for (int y = by2; y >= by1; y--) {
                 int len = strlen(tb->lines_list[y]);
 
-                kill_line_segment(tb, y, 0, len, TRUE);
+                kill_line_segment(tb, y, 0, len, true);
             }
 
             tb->cy = by1;
@@ -340,7 +340,7 @@ ape_quittance do_editor_command(player_type *player_ptr, text_body_type *tb, int
 
         if (tb->cx < len) {
             add_str_to_yank(tb, &(tb->lines_list[tb->cy][tb->cx]));
-            kill_line_segment(tb, tb->cy, tb->cx, len, FALSE);
+            kill_line_segment(tb, tb->cy, tb->cx, len, false);
             tb->dirty_line = tb->cy;
             break;
         }
@@ -456,12 +456,12 @@ ape_quittance do_editor_command(player_type *player_ptr, text_body_type *tb, int
     }
     case EC_SEARCH_FORW:
         if (tb->search_o_ptr) {
-            search_for_object(player_ptr, tb, tb->search_o_ptr, TRUE);
+            search_for_object(player_ptr, tb, tb->search_o_ptr, true);
             break;
         }
 
         if (tb->search_str && tb->search_str[0]) {
-            search_for_string(tb, tb->search_str, TRUE);
+            search_for_string(tb, tb->search_str, true);
             break;
         }
 
@@ -470,12 +470,12 @@ ape_quittance do_editor_command(player_type *player_ptr, text_body_type *tb, int
 
     case EC_SEARCH_BACK: {
         if (tb->search_o_ptr) {
-            search_for_object(player_ptr, tb, tb->search_o_ptr, FALSE);
+            search_for_object(player_ptr, tb, tb->search_o_ptr, false);
             break;
         }
 
         if (tb->search_str && tb->search_str[0]) {
-            search_for_string(tb, tb->search_str, FALSE);
+            search_for_string(tb, tb->search_str, false);
             break;
         }
 
index 12532dc..0fd017f 100644 (file)
@@ -300,7 +300,7 @@ void autopick_entry_from_object(player_type *player_ptr, autopick_type *entry, o
 
     // エゴ銘が邪魔かもしれないので、デフォルトで「^」は付けない.
     // We can always use the ^ mark in English.
-    bool is_hat_added = _(FALSE, TRUE);
+    bool is_hat_added = _(FALSE, true);
     if (!object_is_aware(o_ptr)) {
         ADD_FLG(FLG_UNAWARE);
         is_hat_added = true;
index ce18807..406d3e1 100644 (file)
@@ -22,6 +22,6 @@ void init_autopick(void)
         autopick_free_entry(&autopick_list[i]);
 
     max_autopick = 0;
-    autopick_new_entry(&entry, easy_autopick_inscription, TRUE);
+    autopick_new_entry(&entry, easy_autopick_inscription, true);
     autopick_list[max_autopick++] = entry;
 }
index a0cb1ed..9cb142b 100644 (file)
@@ -110,7 +110,7 @@ void autopick_pickup_items(player_type *player_ptr, grid_type *g_ptr)
             continue;
         }
 
-        disturb(player_ptr, FALSE, FALSE);
+        disturb(player_ptr, FALSE, false);
         if (!check_store_item_to_inventory(player_ptr, o_ptr)) {
             GAME_TEXT o_name[MAX_NLEN];
             describe_flavor(player_ptr, o_name, o_ptr, 0);
index cb07e66..1ee4a68 100644 (file)
@@ -458,7 +458,7 @@ static bool display_auto_roller_result(player_type *creature_ptr, bool prev, cha
             break;
 
         if (prev && (*c == 'p')) {
-            load_prev_data(creature_ptr, TRUE);
+            load_prev_data(creature_ptr, true);
             continue;
         }
 
@@ -503,7 +503,7 @@ static bool display_auto_roller(player_type *creature_ptr, chara_limit_type char
 
         flush();
 
-        get_extra(creature_ptr, TRUE);
+        get_extra(creature_ptr, true);
         get_money(creature_ptr);
         creature_ptr->chaos_patron = (s16b)randint0(MAX_PATRON);
 
index fd2ad9e..f7d57bc 100644 (file)
@@ -79,7 +79,7 @@ void add_outfit(player_type *creature_ptr, object_type *o_ptr)
     object_aware(creature_ptr, o_ptr);
     object_known(o_ptr);
     s16b slot = store_item_to_inventory(creature_ptr, o_ptr);
-    autopick_alter_item(creature_ptr, slot, FALSE);
+    autopick_alter_item(creature_ptr, slot, false);
     wield_all(creature_ptr);
 }
 
index e7f179d..e36a3e3 100644 (file)
@@ -48,7 +48,7 @@ bool ask_quick_start(player_type *creature_ptr)
             return false;
     }
 
-    load_prev_data(creature_ptr, FALSE);
+    load_prev_data(creature_ptr, false);
     init_turn(creature_ptr);
     init_dungeon_quests(creature_ptr);
 
@@ -58,7 +58,7 @@ bool ask_quick_start(player_type *creature_ptr)
     mp_ptr = &m_info[creature_ptr->pclass];
     ap_ptr = &personality_info[creature_ptr->pseikaku];
 
-    get_extra(creature_ptr, FALSE);
+    get_extra(creature_ptr, false);
     creature_ptr->update |= (PU_BONUS | PU_HP);
     update_creature(creature_ptr);
     creature_ptr->chp = creature_ptr->mhp;
index 26a0871..b7faf73 100644 (file)
@@ -299,7 +299,7 @@ static bool switch_cast_blue_magic(player_type *caster_ptr, bmc_type *bmc_ptr, R
     case RF_ABILITY::HOLD:
         return cast_blue_sleep(caster_ptr, bmc_ptr);
     case RF_ABILITY::HASTE:
-        (void)set_fast(caster_ptr, randint1(20 + bmc_ptr->plev) + bmc_ptr->plev, FALSE);
+        (void)set_fast(caster_ptr, randint1(20 + bmc_ptr->plev) + bmc_ptr->plev, false);
         return true;
     case RF_ABILITY::HAND_DOOM:
         return cast_blue_hand_doom(caster_ptr, bmc_ptr);
@@ -311,7 +311,7 @@ static bool switch_cast_blue_magic(player_type *caster_ptr, bmc_type *bmc_ptr, R
         return true;
     case RF_ABILITY::INVULNER:
         msg_print(_("無傷の球の呪文を唱えた。", "You cast a Globe of Invulnerability."));
-        (void)set_invuln(caster_ptr, randint1(4) + 4, FALSE);
+        (void)set_invuln(caster_ptr, randint1(4) + 4, false);
         return true;
     case RF_ABILITY::BLINK:
         teleport_player(caster_ptr, 10, TELEPORT_SPONTANEOUS);
index 6df3d3a..777d01f 100644 (file)
@@ -127,7 +127,7 @@ static void natural_attack(player_type *attacker_ptr, MONSTER_IDX m_idx, MUTA at
     if (k < 0)
         k = 0;
 
-    k = mon_damage_mod(attacker_ptr, m_ptr, k, FALSE);
+    k = mon_damage_mod(attacker_ptr, m_ptr, k, false);
     msg_format_wizard(attacker_ptr, CHEAT_MONSTER, _("%dのダメージを与えた。(残りHP %d/%d(%d))", "You do %d damage. (left HP %d/%d(%d))"), k, m_ptr->hp - k,
         m_ptr->maxhp, m_ptr->max_maxhp);
     if (k > 0)
@@ -175,7 +175,7 @@ bool do_cmd_attack(player_type *attacker_ptr, POSITION y, POSITION x, combat_opt
 
     const std::initializer_list<MUTA> mutation_attack_methods = { MUTA::HORNS, MUTA::BEAK, MUTA::SCOR_TAIL, MUTA::TRUNK, MUTA::TENTACLES };
 
-    disturb(attacker_ptr, FALSE, TRUE);
+    disturb(attacker_ptr, FALSE, true);
 
     PlayerEnergy(attacker_ptr).set_player_turn_energy(100);
 
index 15ed61d..5f89212 100644 (file)
@@ -788,7 +788,7 @@ static bool use_mane(player_type *caster_ptr, RF_ABILITY spell)
         sleep_monster(caster_ptr, dir, plev);
         break;
     case RF_ABILITY::HASTE:
-        (void)set_fast(caster_ptr, randint1(20 + plev) + plev, FALSE);
+        (void)set_fast(caster_ptr, randint1(20 + plev) + plev, false);
         break;
     case RF_ABILITY::HAND_DOOM: {
         if (!get_aim_dir(caster_ptr, &dir))
@@ -807,7 +807,7 @@ static bool use_mane(player_type *caster_ptr, RF_ABILITY spell)
         break;
     case RF_ABILITY::INVULNER:
         msg_print(_("無傷の球の呪文を唱えた。", "You cast a Globe of Invulnerability."));
-        (void)set_invuln(caster_ptr, randint1(7) + 7, FALSE);
+        (void)set_invuln(caster_ptr, randint1(7) + 7, false);
         break;
     case RF_ABILITY::BLINK:
         teleport_player(caster_ptr, 10, TELEPORT_SPONTANEOUS);
index 4c53d2f..c221a15 100644 (file)
@@ -110,7 +110,7 @@ void do_cmd_go_up(player_type *creature_ptr)
     if (!is_in_dungeon(creature_ptr))
         go_up = true;
     else
-        go_up = confirm_leave_level(creature_ptr, FALSE);
+        go_up = confirm_leave_level(creature_ptr, false);
 
     if (!go_up)
         return;
@@ -118,7 +118,7 @@ void do_cmd_go_up(player_type *creature_ptr)
     PlayerEnergy(creature_ptr).set_player_turn_energy(100);
 
     if (autosave_l)
-        do_cmd_save_game(creature_ptr, TRUE);
+        do_cmd_save_game(creature_ptr, true);
 
     if (creature_ptr->current_floor_ptr->inside_quest && quest[creature_ptr->current_floor_ptr->inside_quest].type == QUEST_TYPE_RANDOM) {
         leave_quest_check(creature_ptr);
@@ -240,7 +240,7 @@ void do_cmd_go_down(player_type *creature_ptr)
 
     PlayerEnergy(creature_ptr).set_player_turn_energy(100);
     if (autosave_l)
-        do_cmd_save_game(creature_ptr, TRUE);
+        do_cmd_save_game(creature_ptr, true);
 
     if (has_flag(f_ptr->flags, FF_SHAFT))
         down_num += 2;
@@ -316,7 +316,7 @@ void do_cmd_walk(player_type *creature_ptr, bool pickup)
             energy.set_player_turn_energy(energy_use);
         }
 
-        exe_movement(creature_ptr, dir, pickup, FALSE);
+        exe_movement(creature_ptr, dir, pickup, false);
         more = true;
     }
 
@@ -329,13 +329,13 @@ void do_cmd_walk(player_type *creature_ptr, bool pickup)
             msg_print(_("襲撃だ!", "You are ambushed !"));
             creature_ptr->oldpy = randint1(MAX_HGT - 2);
             creature_ptr->oldpx = randint1(MAX_WID - 2);
-            change_wild_mode(creature_ptr, TRUE);
+            change_wild_mode(creature_ptr, true);
             PlayerEnergy(creature_ptr).set_player_turn_energy(100);
         }
     }
 
     if (!more)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
 }
 
 /*!
@@ -417,7 +417,7 @@ void do_cmd_rest(player_type *creature_ptr)
         command_arg = 9999;
 
     if (creature_ptr->special_defense & NINJA_S_STEALTH)
-        set_superstealth(creature_ptr, FALSE);
+        set_superstealth(creature_ptr, false);
 
     PlayerEnergy(creature_ptr).set_player_turn_energy(100);
     if (command_arg > 100)
index 40fe2f3..14d8dea 100644 (file)
@@ -95,8 +95,8 @@ void do_cmd_open(player_type *creature_ptr)
         set_action(creature_ptr, ACTION_NONE);
 
     if (easy_open) {
-        int num_doors = count_dt(creature_ptr, &y, &x, is_closed_door, FALSE);
-        int num_chests = count_chests(creature_ptr, &y, &x, FALSE);
+        int num_doors = count_dt(creature_ptr, &y, &x, is_closed_door, false);
+        int num_chests = count_chests(creature_ptr, &y, &x, false);
         if (num_doors || num_chests) {
             bool too_many = (num_doors && num_chests) || (num_doors > 1) || (num_chests > 1);
             if (!too_many)
@@ -117,7 +117,7 @@ void do_cmd_open(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);
-        o_idx = chest_check(creature_ptr->current_floor_ptr, y, x, FALSE);
+        o_idx = chest_check(creature_ptr->current_floor_ptr, y, x, false);
         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) {
@@ -132,7 +132,7 @@ void do_cmd_open(player_type *creature_ptr)
     }
 
     if (!more)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
 }
 
 /*!
@@ -180,7 +180,7 @@ void do_cmd_close(player_type *creature_ptr)
     }
 
     if (!more)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
 }
 
 /*!
@@ -200,8 +200,8 @@ void do_cmd_disarm(player_type *creature_ptr)
         set_action(creature_ptr, ACTION_NONE);
 
     if (easy_disarm) {
-        int num_traps = count_dt(creature_ptr, &y, &x, is_trap, TRUE);
-        int num_chests = count_chests(creature_ptr, &y, &x, TRUE);
+        int num_traps = count_dt(creature_ptr, &y, &x, is_trap, true);
+        int num_chests = count_chests(creature_ptr, &y, &x, true);
         if (num_traps || num_chests) {
             bool too_many = (num_traps && num_chests) || (num_traps > 1) || (num_chests > 1);
             if (!too_many)
@@ -222,7 +222,7 @@ void do_cmd_disarm(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);
-        o_idx = chest_check(creature_ptr->current_floor_ptr, y, x, TRUE);
+        o_idx = chest_check(creature_ptr->current_floor_ptr, y, x, true);
         if (!is_trap(creature_ptr, feat) && !o_idx) {
             msg_print(_("そこには解除するものが見当たらない。", "You see nothing there to disarm."));
         } else if (g_ptr->m_idx && creature_ptr->riding != g_ptr->m_idx) {
@@ -236,7 +236,7 @@ void do_cmd_disarm(player_type *creature_ptr)
     }
 
     if (!more)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
 }
 
 /*!
@@ -292,7 +292,7 @@ void do_cmd_bash(player_type *creature_ptr)
     }
 
     if (!more)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
 }
 
 
index c1a03e7..dc2f653 100644 (file)
@@ -110,7 +110,7 @@ void do_cmd_alter(player_type *creature_ptr)
     }
 
     if (!exe_alter(creature_ptr))
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
 }
 
 /*!
index 91289a8..1f50868 100644 (file)
@@ -805,7 +805,7 @@ void do_cmd_pet(player_type *creature_ptr)
     }
 
     case PET_RIDING: {
-        (void)do_cmd_riding(creature_ptr, FALSE);
+        (void)do_cmd_riding(creature_ptr, false);
         break;
     }
 
index 5f6f33c..7a138b8 100644 (file)
@@ -68,7 +68,7 @@ void do_cmd_fire(player_type *creature_ptr, SPELL_IDX snipe_type)
 
     if (snipe_type == SP_FINAL) {
         msg_print(_("射撃の反動が体を襲った。", "The weapon's recoil stuns you. "));
-        (void)set_slow(creature_ptr, creature_ptr->slow + randint0(7) + 7, FALSE);
+        (void)set_slow(creature_ptr, creature_ptr->slow + randint0(7) + 7, false);
         (void)set_stun(creature_ptr, creature_ptr->stun + randint1(25));
     }
 }
index 3acf9c9..5959eda 100644 (file)
@@ -586,7 +586,7 @@ void do_cmd_browse(player_type *caster_ptr)
 
     if (caster_ptr->pclass == CLASS_FORCETRAINER) {
         if (player_has_no_spellbooks(caster_ptr)) {
-            confirm_use_force(caster_ptr, TRUE);
+            confirm_use_force(caster_ptr, true);
             return;
         }
     }
@@ -707,7 +707,7 @@ static void change_realm2(player_type *caster_ptr, REALM_IDX next_realm)
     handle_stuff(caster_ptr);
 
     /* Load an autopick preference file */
-    autopick_load_pref(caster_ptr, FALSE);
+    autopick_load_pref(caster_ptr, false);
 }
 
 /*!
@@ -967,7 +967,7 @@ bool do_cmd_cast(player_type *caster_ptr)
 
     if (caster_ptr->blind || no_lite(caster_ptr)) {
         if (caster_ptr->pclass == CLASS_FORCETRAINER)
-            confirm_use_force(caster_ptr, FALSE);
+            confirm_use_force(caster_ptr, false);
         else {
             msg_print(_("目が見えない!", "You cannot see!"));
             flush();
@@ -992,7 +992,7 @@ bool do_cmd_cast(player_type *caster_ptr)
 
     if (caster_ptr->pclass == CLASS_FORCETRAINER) {
         if (player_has_no_spellbooks(caster_ptr)) {
-            confirm_use_force(caster_ptr, FALSE);
+            confirm_use_force(caster_ptr, false);
             return true; //!< 錬気キャンセル時の処理がない
         }
     }
@@ -1141,7 +1141,7 @@ bool do_cmd_cast(player_type *caster_ptr)
             wild_magic(caster_ptr, spell);
         } else if ((o_ptr->tval == TV_DEATH_BOOK) && (randint1(100) < spell)) {
             if ((sval == 3) && one_in_(2)) {
-                sanity_blast(caster_ptr, 0, TRUE);
+                sanity_blast(caster_ptr, 0, true);
             } else {
                 msg_print(_("痛い!", "It hurts!"));
                 take_hit(caster_ptr, DAMAGE_LOSELIFE, damroll(o_ptr->sval + 1, 6), _("暗黒魔法の逆流", "a miscast Death spell"));
index 95176f9..865b241 100644 (file)
@@ -44,7 +44,7 @@ void do_cmd_tunnel(player_type *creature_ptr)
     DIRECTION dir;
     if (!get_rep_dir(creature_ptr, &dir, FALSE)) {
         if (!more)
-            disturb(creature_ptr, FALSE, FALSE);
+            disturb(creature_ptr, FALSE, false);
 
         return;
     }
@@ -66,5 +66,5 @@ void do_cmd_tunnel(player_type *creature_ptr)
         more = exe_tunnel(creature_ptr, y, x);
 
     if (!more)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
 }
index 4ca4fd4..24dbbf2 100644 (file)
@@ -109,7 +109,7 @@ static bool has_a_nightmare(player_type *customer_ptr)
 
        while (true)
        {
-               sanity_blast(customer_ptr, NULL, FALSE);
+               sanity_blast(customer_ptr, NULL, false);
                if (!one_in_(3)) break;
        }
 
@@ -199,7 +199,7 @@ static bool stay_inn(player_type *customer_ptr)
        prevent_turn_overflow(customer_ptr);
 
        if ((prev_hour >= 18) && (prev_hour <= 23)) {
-               determine_daily_bounty(customer_ptr, FALSE); /* Update daily bounty */
+               determine_daily_bounty(customer_ptr, false); /* Update daily bounty */
                exe_write_diary(customer_ptr, DIARY_DIALY, 0, NULL);
        }
 
@@ -237,7 +237,7 @@ bool inn_comm(player_type *customer_ptr, int cmd)
        case BACT_REST:
                return stay_inn(customer_ptr);
        case BACT_RUMORS:
-               display_rumor(customer_ptr, TRUE);
+               display_rumor(customer_ptr, true);
                return true;
        default:
                //!< @todo リファクタリング前のコードもTRUEだった、FALSEにすべきでは.
index 4329b5f..c702ae1 100644 (file)
@@ -118,7 +118,7 @@ void do_cmd_edit_autopick(player_type *player_ptr)
 
        if (current_world_ptr->game_turn > old_autosave_turn + 100L)
        {
-               do_cmd_save_game(player_ptr, TRUE);
+               do_cmd_save_game(player_ptr, true);
                old_autosave_turn = current_world_ptr->game_turn;
        }
 
index 0122b85..be48932 100644 (file)
@@ -76,10 +76,10 @@ void do_cmd_knowledge(player_type *creature_ptr)
             do_cmd_knowledge_objects(creature_ptr, &need_redraw, FALSE, -1);
             break;
         case '3': /* Uniques */
-            do_cmd_knowledge_uniques(creature_ptr, TRUE);
+            do_cmd_knowledge_uniques(creature_ptr, true);
             break;
         case '4': /* Uniques */
-            do_cmd_knowledge_uniques(creature_ptr, FALSE);
+            do_cmd_knowledge_uniques(creature_ptr, false);
             break;
         case '5': /* Monsters */
             do_cmd_knowledge_monsters(creature_ptr, &need_redraw, FALSE, -1);
index 9f672b3..e561738 100644 (file)
@@ -23,7 +23,7 @@ void do_cmd_save_game(player_type *creature_ptr, int is_autosave)
     if (is_autosave)
         msg_print(_("自動セーブ中", "Autosaving the game..."));
     else
-        disturb(creature_ptr, TRUE, TRUE);
+        disturb(creature_ptr, TRUE, true);
 
     msg_print(NULL);
     handle_stuff(creature_ptr);
index a957af4..fa5f404 100644 (file)
@@ -77,7 +77,7 @@ static bool check_destory_item(player_type *creature_ptr, destroy_type *destroy_
             continue;
 
         if (autopick_autoregister(creature_ptr, destroy_ptr->o_ptr))
-            autopick_alter_item(creature_ptr, destroy_ptr->item, TRUE);
+            autopick_alter_item(creature_ptr, destroy_ptr->item, true);
 
         return false;
     }
index d40949f..ec5dd0c 100644 (file)
@@ -224,7 +224,7 @@ void do_cmd_wield(player_type *creature_ptr)
     check_find_art_quest_completion(creature_ptr, o_ptr);
     if (creature_ptr->pseikaku == PERSONALITY_MUNCHKIN) {
         identify_item(creature_ptr, o_ptr);
-        autopick_alter_item(creature_ptr, item, FALSE);
+        autopick_alter_item(creature_ptr, item, false);
     }
 
     PlayerEnergy(creature_ptr).set_player_turn_energy(100);
index 0ed2997..de86d4d 100644 (file)
@@ -267,7 +267,7 @@ void do_cmd_use(player_type *creature_ptr)
         if (cmd_limit_blind(creature_ptr) || cmd_limit_confused(creature_ptr))
             return;
 
-        exe_read(creature_ptr, item, TRUE);
+        exe_read(creature_ptr, item, true);
         break;
     case TV_SHOT:
     case TV_ARROW:
index a1f6848..e47a6d5 100644 (file)
@@ -561,15 +561,15 @@ bool do_cmd_magic_eater(player_type *creature_ptr, bool only_browse, bool powerf
             if ((sval >= SV_ROD_MIN_DIRECTION) && (sval != SV_ROD_HAVOC) && (sval != SV_ROD_AGGRAVATE) && (sval != SV_ROD_PESTICIDE))
                 if (!get_aim_dir(creature_ptr, &dir))
                     return false;
-            rod_effect(creature_ptr, sval, dir, &use_charge, powerful, TRUE);
+            rod_effect(creature_ptr, sval, dir, &use_charge, powerful, true);
             if (!use_charge)
                 return false;
         } else if (tval == TV_WAND) {
             if (!get_aim_dir(creature_ptr, &dir))
                 return false;
-            wand_effect(creature_ptr, sval, dir, powerful, TRUE);
+            wand_effect(creature_ptr, sval, dir, powerful, true);
         } else {
-            staff_effect(creature_ptr, sval, &use_charge, powerful, TRUE, TRUE);
+            staff_effect(creature_ptr, sval, &use_charge, powerful, TRUE, true);
             if (!use_charge)
                 return false;
         }
index 75bc96c..2f62d5f 100644 (file)
@@ -443,7 +443,7 @@ static void drain_essence(player_type *creature_ptr)
     }
 
     /* Apply autodestroy/inscription to the drained item */
-    autopick_alter_item(creature_ptr, item, TRUE);
+    autopick_alter_item(creature_ptr, item, true);
     creature_ptr->update |= (PU_COMBINE | PU_REORDER);
     creature_ptr->window_flags |= (PW_INVEN);
 }
index 1a42320..575a2f5 100644 (file)
@@ -289,7 +289,7 @@ static void calc_racial_power_damage(player_type *creature_ptr, it_type *it_ptr)
     int ds = it_ptr->q_ptr->ds;
     torch_dice(it_ptr->q_ptr, &dd, &ds);
     it_ptr->tdam = damroll(dd, ds);
-    it_ptr->tdam = calc_attack_damage_with_slay(creature_ptr, it_ptr->q_ptr, it_ptr->tdam, it_ptr->m_ptr, HISSATSU_NONE, TRUE);
+    it_ptr->tdam = calc_attack_damage_with_slay(creature_ptr, it_ptr->q_ptr, it_ptr->tdam, it_ptr->m_ptr, HISSATSU_NONE, true);
     it_ptr->tdam = critical_shot(creature_ptr, it_ptr->q_ptr->weight, it_ptr->q_ptr->to_h, 0, it_ptr->tdam);
     if (it_ptr->q_ptr->to_d > 0)
         it_ptr->tdam += it_ptr->q_ptr->to_d;
@@ -312,7 +312,7 @@ static void calc_racial_power_damage(player_type *creature_ptr, it_type *it_ptr)
     if (it_ptr->tdam < 0)
         it_ptr->tdam = 0;
 
-    it_ptr->tdam = mon_damage_mod(creature_ptr, it_ptr->m_ptr, it_ptr->tdam, FALSE);
+    it_ptr->tdam = mon_damage_mod(creature_ptr, it_ptr->m_ptr, it_ptr->tdam, false);
 }
 
 static void attack_racial_power(player_type *creature_ptr, it_type *it_ptr)
index 5075e92..9dc513c 100644 (file)
@@ -208,7 +208,7 @@ int staff_effect(player_type *creature_ptr, OBJECT_SUBTYPE_VALUE sval, bool *use
     case SV_STAFF_THE_MAGI: {
         if (do_res_stat(creature_ptr, A_INT))
             ident = true;
-        ident |= restore_mana(creature_ptr, FALSE);
+        ident |= restore_mana(creature_ptr, false);
         if (set_shero(creature_ptr, 0, TRUE))
             ident = true;
         break;
@@ -253,7 +253,7 @@ int staff_effect(player_type *creature_ptr, OBJECT_SUBTYPE_VALUE sval, bool *use
     }
 
     case SV_STAFF_GENOCIDE: {
-        ident = symbol_genocide(creature_ptr, (magic ? lev + 50 : 200), TRUE);
+        ident = symbol_genocide(creature_ptr, (magic ? lev + 50 : 200), true);
         break;
     }
 
@@ -267,7 +267,7 @@ int staff_effect(player_type *creature_ptr, OBJECT_SUBTYPE_VALUE sval, bool *use
     }
 
     case SV_STAFF_DESTRUCTION: {
-        ident = destroy_area(creature_ptr, creature_ptr->y, creature_ptr->x, (powerful ? 18 : 13) + randint0(5), FALSE);
+        ident = destroy_area(creature_ptr, creature_ptr->y, creature_ptr->x, (powerful ? 18 : 13) + randint0(5), false);
         break;
     }
 
index 9dc1f2f..cf9f53d 100644 (file)
@@ -380,7 +380,7 @@ void exe_zap_rod(player_type *creature_ptr, INVENTORY_IDX item)
 
     sound(SOUND_ZAP);
 
-    ident = rod_effect(creature_ptr, o_ptr->sval, dir, &use_charge, FALSE, FALSE);
+    ident = rod_effect(creature_ptr, o_ptr->sval, dir, &use_charge, FALSE, false);
 
     /* Increase the timeout by the rod kind's pval. -LM- */
     if (use_charge)
index 0dfb476..4fb26a0 100644 (file)
@@ -404,7 +404,7 @@ void exe_aim_wand(player_type *creature_ptr, INVENTORY_IDX item)
 
     sound(SOUND_ZAP);
 
-    ident = wand_effect(creature_ptr, o_ptr->sval, dir, FALSE, FALSE);
+    ident = wand_effect(creature_ptr, o_ptr->sval, dir, FALSE, false);
 
     /*
      * Temporarily remove the flags for updating the inventory so
index 4831f46..0568066 100644 (file)
@@ -43,7 +43,7 @@ static void aura_fire_by_monster_attack(player_type *target_ptr, monap_type *mon
     }
 
     HIT_POINT dam = damroll(2, 6);
-    dam = mon_damage_mod(target_ptr, monap_ptr->m_ptr, dam, FALSE);
+    dam = mon_damage_mod(target_ptr, monap_ptr->m_ptr, dam, false);
     msg_format(_("%^sは突然熱くなった!", "%^s is suddenly very hot!"), monap_ptr->m_name);
     if (mon_take_hit(target_ptr, monap_ptr->m_idx, dam, &monap_ptr->fear, _("は灰の山になった。", " turns into a pile of ash."))) {
         monap_ptr->blinked = false;
@@ -65,7 +65,7 @@ static void aura_elec_by_monster_attack(player_type *target_ptr, monap_type *mon
     }
 
     HIT_POINT dam = damroll(2, 6);
-    dam = mon_damage_mod(target_ptr, monap_ptr->m_ptr, dam, FALSE);
+    dam = mon_damage_mod(target_ptr, monap_ptr->m_ptr, dam, false);
     msg_format(_("%^sは電撃をくらった!", "%^s gets zapped!"), monap_ptr->m_name);
     if (mon_take_hit(target_ptr, monap_ptr->m_idx, dam, &monap_ptr->fear, _("は燃え殻の山になった。", " turns into a pile of cinders."))) {
         monap_ptr->blinked = false;
@@ -87,7 +87,7 @@ static void aura_cold_by_monster_attack(player_type *target_ptr, monap_type *mon
     }
 
     HIT_POINT dam = damroll(2, 6);
-    dam = mon_damage_mod(target_ptr, monap_ptr->m_ptr, dam, FALSE);
+    dam = mon_damage_mod(target_ptr, monap_ptr->m_ptr, dam, false);
     msg_format(_("%^sは冷気をくらった!", "%^s is very cold!"), monap_ptr->m_name);
     if (mon_take_hit(target_ptr, monap_ptr->m_idx, dam, &monap_ptr->fear, _("は凍りついた。", " was frozen."))) {
         monap_ptr->blinked = false;
@@ -106,7 +106,7 @@ static void aura_shards_by_monster_attack(player_type *target_ptr, monap_type *m
             r_ptr->r_flagsr |= (r_ptr->flagsr & RFR_EFF_RES_SHAR_MASK);
     } else {
         HIT_POINT dam = damroll(2, 6);
-        dam = mon_damage_mod(target_ptr, monap_ptr->m_ptr, dam, FALSE);
+        dam = mon_damage_mod(target_ptr, monap_ptr->m_ptr, dam, false);
         msg_format(_("%^sは鏡の破片をくらった!", "%^s gets sliced!"), monap_ptr->m_name);
         if (mon_take_hit(target_ptr, monap_ptr->m_idx, dam, &monap_ptr->fear, _("はズタズタになった。", " is torn to pieces."))) {
             monap_ptr->blinked = false;
@@ -135,7 +135,7 @@ static void aura_holy_by_monster_attack(player_type *target_ptr, monap_type *mon
     }
 
     HIT_POINT dam = damroll(2, 6);
-    dam = mon_damage_mod(target_ptr, monap_ptr->m_ptr, dam, FALSE);
+    dam = mon_damage_mod(target_ptr, monap_ptr->m_ptr, dam, false);
     msg_format(_("%^sは聖なるオーラで傷ついた!", "%^s is injured by holy power!"), monap_ptr->m_name);
     if (mon_take_hit(target_ptr, monap_ptr->m_idx, dam, &monap_ptr->fear, _("は倒れた。", " is destroyed."))) {
         monap_ptr->blinked = false;
@@ -160,7 +160,7 @@ static void aura_force_by_monster_attack(player_type *target_ptr, monap_type *mo
     }
 
     HIT_POINT dam = damroll(2, 6);
-    dam = mon_damage_mod(target_ptr, monap_ptr->m_ptr, dam, FALSE);
+    dam = mon_damage_mod(target_ptr, monap_ptr->m_ptr, dam, false);
     msg_format(_("%^sが鋭い闘気のオーラで傷ついた!", "%^s is injured by the Force"), monap_ptr->m_name);
     if (mon_take_hit(target_ptr, monap_ptr->m_idx, dam, &monap_ptr->fear, _("は倒れた。", " is destroyed."))) {
         monap_ptr->blinked = false;
@@ -192,7 +192,7 @@ static void aura_shadow_by_monster_attack(player_type *target_ptr, monap_type *m
     if ((o_armed_ptr->k_idx) && object_is_cursed(o_armed_ptr))
         dam *= 2;
 
-    dam = mon_damage_mod(target_ptr, monap_ptr->m_ptr, dam, FALSE);
+    dam = mon_damage_mod(target_ptr, monap_ptr->m_ptr, dam, false);
     msg_format(_("影のオーラが%^sに反撃した!", "Enveloping shadows attack %^s."), monap_ptr->m_name);
     if (mon_take_hit(target_ptr, monap_ptr->m_idx, dam, &monap_ptr->fear, _("は倒れた。", " is destroyed."))) {
         monap_ptr->blinked = false;
index d9274e8..a861ff9 100644 (file)
@@ -721,7 +721,7 @@ void exe_fire(player_type *shooter_ptr, INVENTORY_IDX item, object_type *j_ptr,
 
                         /* Modify the damage */
                         base_dam = tdam;
-                        tdam = mon_damage_mod(shooter_ptr, m_ptr, tdam, FALSE);
+                        tdam = mon_damage_mod(shooter_ptr, m_ptr, tdam, false);
                     }
 
                     msg_format_wizard(shooter_ptr, CHEAT_MONSTER, _("%dのダメージを与えた。(残りHP %d/%d(%d))", "You do %d damage. (left HP %d/%d(%d))"), tdam,
@@ -808,7 +808,7 @@ void exe_fire(player_type *shooter_ptr, INVENTORY_IDX item, object_type *j_ptr,
                                 m_ptr->fx = nx;
                                 m_ptr->fy = ny;
 
-                                update_monster(shooter_ptr, m_idx, TRUE);
+                                update_monster(shooter_ptr, m_idx, true);
 
                                 if (msec > 0) {
                                     lite_spot(shooter_ptr, ny, nx);
@@ -882,7 +882,7 @@ void exe_fire(player_type *shooter_ptr, INVENTORY_IDX item, object_type *j_ptr,
 
     /* Sniper - Loose his/her concentration after any shot */
     if (shooter_ptr->concent)
-        reset_concentration(shooter_ptr, FALSE);
+        reset_concentration(shooter_ptr, false);
 }
 
 /*!
index e74e1e7..0b86ace 100644 (file)
@@ -196,7 +196,7 @@ bool askfor_aux(char *buf, int len, bool numpad_cursor)
  *
  * Allow to use numpad keys as cursor keys.
  */
-bool askfor(char *buf, int len) { return askfor_aux(buf, len, TRUE); }
+bool askfor(char *buf, int len) { return askfor_aux(buf, len, true); }
 
 /*
  * Get a string from the user
@@ -320,7 +320,7 @@ bool get_com(concptr prompt, char *command, bool z_escape)
     msg_print(NULL);
     prt(prompt, 0, 0);
     if (get_com_no_macros)
-        *command = (char)inkey_special(FALSE);
+        *command = (char)inkey_special(false);
     else
         *command = inkey();
 
@@ -380,7 +380,7 @@ QUANTITY get_quantity(concptr prompt, QUANTITY max)
      * Ask for a quantity
      * Don't allow to use numpad as cursor key.
      */
-    res = askfor_aux(buf, 6, FALSE);
+    res = askfor_aux(buf, 6, false);
 
     prt("", 0, 0);
     if (!res)
index cdf60be..39265b0 100644 (file)
@@ -65,7 +65,7 @@ static bool check_death(player_type *player_ptr)
     if (player_ptr->is_dead)
         return true;
 
-    do_cmd_save_game(player_ptr, FALSE);
+    do_cmd_save_game(player_ptr, false);
     prt(_("リターンキーか ESC キーを押して下さい。", "Press Return (or Escape)."), 0, 40);
     play_music(TERM_XTRA_MUSIC_BASIC, MUSIC_BASIC_EXIT);
     if (inkey() != ESCAPE)
index b64ad30..bab7ab2 100644 (file)
@@ -151,9 +151,9 @@ static void init_random_seed(player_type *player_ptr, bool new_game)
         new_game = true;
         current_world_ptr->character_dungeon = false;
         init_random_seed = true;
-        init_saved_floors(player_ptr, FALSE);
+        init_saved_floors(player_ptr, false);
     } else if (new_game)
-        init_saved_floors(player_ptr, TRUE);
+        init_saved_floors(player_ptr, true);
 
     if (!new_game)
         process_player_name(player_ptr);
@@ -178,7 +178,7 @@ static void init_world_floor_info(player_type *player_ptr)
     player_ptr->count = 0;
     load = false;
     determine_bounty_uniques(player_ptr);
-    determine_daily_bounty(player_ptr, FALSE);
+    determine_daily_bounty(player_ptr, false);
     wipe_o_list(floor_ptr);
 }
 
@@ -225,7 +225,7 @@ static void set_wizard_mode_by_argument(player_type *player_ptr)
     if (enter_wizard_mode(player_ptr)) {
         current_world_ptr->wizard = true;
         if (player_ptr->is_dead || !player_ptr->y || !player_ptr->x) {
-            init_saved_floors(player_ptr, TRUE);
+            init_saved_floors(player_ptr, true);
             player_ptr->current_floor_ptr->inside_quest = 0;
             player_ptr->y = player_ptr->x = 10;
         }
index 8c9a4c6..78558e2 100644 (file)
@@ -26,7 +26,7 @@ void reduce_magic_effects_timeout(player_type *creature_ptr)
 {
     const int dec_count = (easy_band ? 2 : 1);
     if (creature_ptr->tim_mimic) {
-        (void)set_mimic(creature_ptr, creature_ptr->tim_mimic - 1, creature_ptr->mimic_form, TRUE);
+        (void)set_mimic(creature_ptr, creature_ptr->tim_mimic - 1, creature_ptr->mimic_form, true);
     }
 
     if (creature_ptr->image) {
@@ -38,7 +38,7 @@ void reduce_magic_effects_timeout(player_type *creature_ptr)
     }
 
     if (creature_ptr->tim_invis) {
-        (void)set_tim_invis(creature_ptr, creature_ptr->tim_invis - 1, TRUE);
+        (void)set_tim_invis(creature_ptr, creature_ptr->tim_invis - 1, true);
     }
 
     if (creature_ptr->suppress_multi_reward) {
@@ -46,7 +46,7 @@ void reduce_magic_effects_timeout(player_type *creature_ptr)
     }
 
     if (creature_ptr->tim_esp) {
-        (void)set_tim_esp(creature_ptr, creature_ptr->tim_esp - 1, TRUE);
+        (void)set_tim_esp(creature_ptr, creature_ptr->tim_esp - 1, true);
     }
 
     if (creature_ptr->ele_attack) {
@@ -62,63 +62,63 @@ void reduce_magic_effects_timeout(player_type *creature_ptr)
     }
 
     if (creature_ptr->tim_infra) {
-        (void)set_tim_infra(creature_ptr, creature_ptr->tim_infra - 1, TRUE);
+        (void)set_tim_infra(creature_ptr, creature_ptr->tim_infra - 1, true);
     }
 
     if (creature_ptr->tim_stealth) {
-        (void)set_tim_stealth(creature_ptr, creature_ptr->tim_stealth - 1, TRUE);
+        (void)set_tim_stealth(creature_ptr, creature_ptr->tim_stealth - 1, true);
     }
 
     if (creature_ptr->tim_levitation) {
-        (void)set_tim_levitation(creature_ptr, creature_ptr->tim_levitation - 1, TRUE);
+        (void)set_tim_levitation(creature_ptr, creature_ptr->tim_levitation - 1, true);
     }
 
     if (creature_ptr->tim_sh_touki) {
-        (void)set_tim_sh_force(creature_ptr, creature_ptr->tim_sh_touki - 1, TRUE);
+        (void)set_tim_sh_force(creature_ptr, creature_ptr->tim_sh_touki - 1, true);
     }
 
     if (creature_ptr->tim_sh_fire) {
-        (void)set_tim_sh_fire(creature_ptr, creature_ptr->tim_sh_fire - 1, TRUE);
+        (void)set_tim_sh_fire(creature_ptr, creature_ptr->tim_sh_fire - 1, true);
     }
 
     if (creature_ptr->tim_sh_holy) {
-        (void)set_tim_sh_holy(creature_ptr, creature_ptr->tim_sh_holy - 1, TRUE);
+        (void)set_tim_sh_holy(creature_ptr, creature_ptr->tim_sh_holy - 1, true);
     }
 
     if (creature_ptr->tim_eyeeye) {
-        (void)set_tim_eyeeye(creature_ptr, creature_ptr->tim_eyeeye - 1, TRUE);
+        (void)set_tim_eyeeye(creature_ptr, creature_ptr->tim_eyeeye - 1, true);
     }
 
     if (creature_ptr->resist_magic) {
-        (void)set_resist_magic(creature_ptr, creature_ptr->resist_magic - 1, TRUE);
+        (void)set_resist_magic(creature_ptr, creature_ptr->resist_magic - 1, true);
     }
 
     if (creature_ptr->tim_regen) {
-        (void)set_tim_regen(creature_ptr, creature_ptr->tim_regen - 1, TRUE);
+        (void)set_tim_regen(creature_ptr, creature_ptr->tim_regen - 1, true);
     }
 
     if (creature_ptr->tim_res_nether) {
-        (void)set_tim_res_nether(creature_ptr, creature_ptr->tim_res_nether - 1, TRUE);
+        (void)set_tim_res_nether(creature_ptr, creature_ptr->tim_res_nether - 1, true);
     }
 
     if (creature_ptr->tim_res_time) {
-        (void)set_tim_res_time(creature_ptr, creature_ptr->tim_res_time - 1, TRUE);
+        (void)set_tim_res_time(creature_ptr, creature_ptr->tim_res_time - 1, true);
     }
 
     if (creature_ptr->tim_reflect) {
-        (void)set_tim_reflect(creature_ptr, creature_ptr->tim_reflect - 1, TRUE);
+        (void)set_tim_reflect(creature_ptr, creature_ptr->tim_reflect - 1, true);
     }
 
     if (creature_ptr->multishadow) {
-        (void)set_multishadow(creature_ptr, creature_ptr->multishadow - 1, TRUE);
+        (void)set_multishadow(creature_ptr, creature_ptr->multishadow - 1, true);
     }
 
     if (creature_ptr->dustrobe) {
-        (void)set_dustrobe(creature_ptr, creature_ptr->dustrobe - 1, TRUE);
+        (void)set_dustrobe(creature_ptr, creature_ptr->dustrobe - 1, true);
     }
 
     if (creature_ptr->tim_pass_wall) {
-        (void)set_pass_wall(creature_ptr, creature_ptr->tim_pass_wall - 1, TRUE);
+        (void)set_pass_wall(creature_ptr, creature_ptr->tim_pass_wall - 1, true);
     }
 
     if (creature_ptr->paralyzed) {
@@ -134,75 +134,75 @@ void reduce_magic_effects_timeout(player_type *creature_ptr)
     }
 
     if (creature_ptr->fast) {
-        (void)set_fast(creature_ptr, creature_ptr->fast - 1, TRUE);
+        (void)set_fast(creature_ptr, creature_ptr->fast - 1, true);
     }
 
     if (creature_ptr->slow) {
-        (void)set_slow(creature_ptr, creature_ptr->slow - dec_count, TRUE);
+        (void)set_slow(creature_ptr, creature_ptr->slow - dec_count, true);
     }
 
     if (creature_ptr->protevil) {
-        (void)set_protevil(creature_ptr, creature_ptr->protevil - 1, TRUE);
+        (void)set_protevil(creature_ptr, creature_ptr->protevil - 1, true);
     }
 
     if (creature_ptr->invuln) {
-        (void)set_invuln(creature_ptr, creature_ptr->invuln - 1, TRUE);
+        (void)set_invuln(creature_ptr, creature_ptr->invuln - 1, true);
     }
 
     if (creature_ptr->wraith_form) {
-        (void)set_wraith_form(creature_ptr, creature_ptr->wraith_form - 1, TRUE);
+        (void)set_wraith_form(creature_ptr, creature_ptr->wraith_form - 1, true);
     }
 
     if (creature_ptr->hero) {
-        (void)set_hero(creature_ptr, creature_ptr->hero - 1, TRUE);
+        (void)set_hero(creature_ptr, creature_ptr->hero - 1, true);
     }
 
     if (creature_ptr->shero) {
-        (void)set_shero(creature_ptr, creature_ptr->shero - 1, TRUE);
+        (void)set_shero(creature_ptr, creature_ptr->shero - 1, true);
     }
 
     if (creature_ptr->blessed) {
-        (void)set_blessed(creature_ptr, creature_ptr->blessed - 1, TRUE);
+        (void)set_blessed(creature_ptr, creature_ptr->blessed - 1, true);
     }
 
     if (creature_ptr->shield) {
-        (void)set_shield(creature_ptr, creature_ptr->shield - 1, TRUE);
+        (void)set_shield(creature_ptr, creature_ptr->shield - 1, true);
     }
 
     if (creature_ptr->tsubureru) {
-        (void)set_leveling(creature_ptr, creature_ptr->tsubureru - 1, TRUE);
+        (void)set_leveling(creature_ptr, creature_ptr->tsubureru - 1, true);
     }
 
     if (creature_ptr->magicdef) {
-        (void)set_magicdef(creature_ptr, creature_ptr->magicdef - 1, TRUE);
+        (void)set_magicdef(creature_ptr, creature_ptr->magicdef - 1, true);
     }
 
     if (creature_ptr->tsuyoshi) {
-        (void)set_tsuyoshi(creature_ptr, creature_ptr->tsuyoshi - 1, TRUE);
+        (void)set_tsuyoshi(creature_ptr, creature_ptr->tsuyoshi - 1, true);
     }
 
     if (creature_ptr->oppose_acid) {
-        (void)set_oppose_acid(creature_ptr, creature_ptr->oppose_acid - 1, TRUE);
+        (void)set_oppose_acid(creature_ptr, creature_ptr->oppose_acid - 1, true);
     }
 
     if (creature_ptr->oppose_elec) {
-        (void)set_oppose_elec(creature_ptr, creature_ptr->oppose_elec - 1, TRUE);
+        (void)set_oppose_elec(creature_ptr, creature_ptr->oppose_elec - 1, true);
     }
 
     if (creature_ptr->oppose_fire) {
-        (void)set_oppose_fire(creature_ptr, creature_ptr->oppose_fire - 1, TRUE);
+        (void)set_oppose_fire(creature_ptr, creature_ptr->oppose_fire - 1, true);
     }
 
     if (creature_ptr->oppose_cold) {
-        (void)set_oppose_cold(creature_ptr, creature_ptr->oppose_cold - 1, TRUE);
+        (void)set_oppose_cold(creature_ptr, creature_ptr->oppose_cold - 1, true);
     }
 
     if (creature_ptr->oppose_pois) {
-        (void)set_oppose_pois(creature_ptr, creature_ptr->oppose_pois - 1, TRUE);
+        (void)set_oppose_pois(creature_ptr, creature_ptr->oppose_pois - 1, true);
     }
 
     if (creature_ptr->ult_res) {
-        (void)set_ultimate_res(creature_ptr, creature_ptr->ult_res - 1, TRUE);
+        (void)set_ultimate_res(creature_ptr, creature_ptr->ult_res - 1, true);
     }
 
     if (creature_ptr->poisoned) {
index 5a5a31d..f4a83ea 100644 (file)
@@ -86,7 +86,7 @@ static void process_fishing(player_type *creature_ptr)
             msg_print(_("餌だけ食われてしまった!くっそ~!", "Damn!  The fish stole your bait!"));
         }
 
-        disturb(creature_ptr, FALSE, TRUE);
+        disturb(creature_ptr, FALSE, true);
     }
 }
 
@@ -123,7 +123,7 @@ void process_player(player_type *creature_ptr)
                 continue;
 
             m_ptr->mflag2.set({MFLAG2::MARK, MFLAG2::SHOW});
-            update_monster(creature_ptr, m_idx, FALSE);
+            update_monster(creature_ptr, m_idx, false);
         }
 
         print_time(creature_ptr);
@@ -163,7 +163,7 @@ void process_player(player_type *creature_ptr)
             inkey_scan = true;
             if (inkey()) {
                 flush();
-                disturb(creature_ptr, FALSE, TRUE);
+                disturb(creature_ptr, FALSE, true);
                 msg_print(_("中断しました。", "Canceled."));
             }
         }
@@ -211,7 +211,7 @@ void process_player(player_type *creature_ptr)
 
     load = false;
     if (creature_ptr->lightspeed)
-        set_lightspeed(creature_ptr, creature_ptr->lightspeed - 1, TRUE);
+        set_lightspeed(creature_ptr, creature_ptr->lightspeed - 1, true);
 
     if ((creature_ptr->pclass == CLASS_FORCETRAINER) && get_current_ki(creature_ptr)) {
         if (get_current_ki(creature_ptr) < 40)
@@ -254,7 +254,7 @@ void process_player(player_type *creature_ptr)
         creature_ptr->counter = false;
         creature_ptr->now_damaged = false;
 
-        update_monsters(creature_ptr, FALSE);
+        update_monsters(creature_ptr, false);
         handle_stuff(creature_ptr);
         move_cursor_relative(creature_ptr->y, creature_ptr->x);
         if (fresh_before)
@@ -301,7 +301,7 @@ void process_player(player_type *creature_ptr)
             window_stuff(creature_ptr);
 
             can_save = true;
-            request_command(creature_ptr, FALSE);
+            request_command(creature_ptr, false);
             can_save = false;
             process_command(creature_ptr);
         }
@@ -338,7 +338,7 @@ void process_player(player_type *creature_ptr)
 
                 if (m_ptr->mflag.has(MFLAG::SANITY_BLAST)) {
                     m_ptr->mflag.reset(MFLAG::SANITY_BLAST);
-                    sanity_blast(creature_ptr, m_ptr, FALSE);
+                    sanity_blast(creature_ptr, m_ptr, false);
                 }
 
                 // 感知中のモンスターのフラグを落とす処理
@@ -349,7 +349,7 @@ void process_player(player_type *creature_ptr)
                     } else {
                         m_ptr->mflag2.reset(MFLAG2::MARK);
                         m_ptr->ml = false;
-                        update_monster(creature_ptr, m_idx, FALSE);
+                        update_monster(creature_ptr, m_idx, false);
                         if (creature_ptr->health_who == m_idx)
                             creature_ptr->redraw |= (PR_HEALTH);
                         if (creature_ptr->riding == m_idx)
@@ -398,7 +398,7 @@ void process_player(player_type *creature_ptr)
         }
 
         if (creature_ptr->energy_use && creature_ptr->reset_concent)
-            reset_concentration(creature_ptr, TRUE);
+            reset_concentration(creature_ptr, true);
 
         if (creature_ptr->leaving)
             break;
index ef1e4da..17fc1cb 100644 (file)
@@ -160,12 +160,12 @@ void redraw_stuff(player_type *creature_ptr)
 
     if (creature_ptr->redraw & (PR_HEALTH)) {
         creature_ptr->redraw &= ~(PR_HEALTH);
-        health_redraw(creature_ptr, FALSE);
+        health_redraw(creature_ptr, false);
     }
 
     if (creature_ptr->redraw & (PR_UHEALTH)) {
         creature_ptr->redraw &= ~(PR_UHEALTH);
-        health_redraw(creature_ptr, TRUE);
+        health_redraw(creature_ptr, true);
     }
 
     if (creature_ptr->redraw & (PR_EXTRA)) {
index 0622884..a528604 100644 (file)
@@ -74,7 +74,7 @@ void process_dungeon(player_type *player_ptr, bool load_game)
     player_ptr->ambush_flag = false;
     health_track(player_ptr, 0);
 
-    disturb(player_ptr, TRUE, TRUE);
+    disturb(player_ptr, TRUE, true);
     int quest_num = quest_number(player_ptr, floor_ptr->dun_level);
     if (quest_num) {
         r_info[quest[quest_num].r_idx].flags1 |= RF1_QUESTOR;
@@ -143,7 +143,7 @@ void process_dungeon(player_type *player_ptr, bool load_game)
     }
 
     if (!load_game && (player_ptr->special_defense & NINJA_S_STEALTH))
-        set_superstealth(player_ptr, FALSE);
+        set_superstealth(player_ptr, false);
 
     floor_ptr->monster_level = floor_ptr->base_level;
     floor_ptr->object_level = floor_ptr->base_level;
index 98a724c..6ba42ad 100644 (file)
@@ -328,11 +328,11 @@ bool affect_feature(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITI
         if (player_can_see_bold(caster_ptr, y, x))
             obvious = true;
         if (g_ptr->m_idx)
-            update_monster(caster_ptr, g_ptr->m_idx, FALSE);
+            update_monster(caster_ptr, g_ptr->m_idx, false);
 
         if (caster_ptr->special_defense & NINJA_S_STEALTH) {
             if (player_bold(caster_ptr, y, x))
-                set_superstealth(caster_ptr, FALSE);
+                set_superstealth(caster_ptr, false);
         }
 
         break;
@@ -379,7 +379,7 @@ bool affect_feature(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITI
         if (player_can_see_bold(caster_ptr, y, x))
             obvious = true;
         if (g_ptr->m_idx)
-            update_monster(caster_ptr, g_ptr->m_idx, FALSE);
+            update_monster(caster_ptr, g_ptr->m_idx, false);
 
         break;
     }
index 8a3d222..2eea88c 100644 (file)
@@ -194,7 +194,7 @@ bool affect_item(player_type *caster_ptr, MONSTER_IDX who, POSITION r, POSITION
         }
         case GF_IDENTIFY: {
             identify_item(caster_ptr, o_ptr);
-            autopick_alter_item(caster_ptr, (-this_o_idx), FALSE);
+            autopick_alter_item(caster_ptr, (-this_o_idx), false);
             break;
         }
         case GF_KILL_TRAP:
index d1d15c0..0a8f933 100644 (file)
@@ -381,9 +381,9 @@ process_result switch_effects_monster(player_type *caster_ptr, effect_monster_ty
     case GF_OLD_SLEEP:
         return effect_monster_old_sleep(caster_ptr, em_ptr);
     case GF_STASIS_EVIL:
-        return effect_monster_stasis(em_ptr, TRUE);
+        return effect_monster_stasis(em_ptr, true);
     case GF_STASIS:
-        return effect_monster_stasis(em_ptr, FALSE);
+        return effect_monster_stasis(em_ptr, false);
     case GF_CHARM:
         return effect_monster_charm(caster_ptr, em_ptr);
     case GF_CONTROL_UNDEAD:
index a10b005..0ef3f4e 100644 (file)
@@ -159,7 +159,7 @@ static void effect_damage_killed_pet(player_type *caster_ptr, effect_monster_typ
     if (em_ptr->who > 0)
         monster_gain_exp(caster_ptr, em_ptr->who, em_ptr->m_ptr->r_idx);
 
-    monster_death(caster_ptr, em_ptr->g_ptr->m_idx, FALSE);
+    monster_death(caster_ptr, em_ptr->g_ptr->m_idx, false);
     delete_monster_idx(caster_ptr, em_ptr->g_ptr->m_idx);
     if (sad)
         msg_print(_("少し悲しい気分がした。", "You feel sad for a moment."));
@@ -638,7 +638,7 @@ bool affect_monster(
     make_description_of_affecred_monster(caster_ptr, em_ptr);
 
     if (caster_ptr->riding && (em_ptr->g_ptr->m_idx == caster_ptr->riding))
-        disturb(caster_ptr, TRUE, TRUE);
+        disturb(caster_ptr, TRUE, true);
 
     process_result result = exe_affect_monster_by_effect(caster_ptr, em_ptr);
     if (result != PROCESS_CONTINUE)
@@ -651,7 +651,7 @@ bool affect_monster(
 
     update_phase_out_stat(caster_ptr, em_ptr);
     if (em_ptr->m_ptr->r_idx)
-        update_monster(caster_ptr, em_ptr->g_ptr->m_idx, FALSE);
+        update_monster(caster_ptr, em_ptr->g_ptr->m_idx, false);
 
     lite_spot(caster_ptr, em_ptr->y, em_ptr->x);
     if ((caster_ptr->monster_race_idx == em_ptr->m_ptr->r_idx) && (em_ptr->seen || !em_ptr->m_ptr->r_idx))
index 45c6918..0be2e19 100644 (file)
@@ -23,7 +23,7 @@ void effect_player_old_speed(player_type *target_ptr, effect_player_type *ep_ptr
     if (target_ptr->blind)
         msg_print(_("何かで攻撃された!", "You are hit by something!"));
 
-    (void)set_fast(target_ptr, target_ptr->fast + randint1(5), FALSE);
+    (void)set_fast(target_ptr, target_ptr->fast + randint1(5), false);
     ep_ptr->dam = 0;
 }
 
@@ -32,7 +32,7 @@ void effect_player_old_slow(player_type *target_ptr)
     if (target_ptr->blind)
         msg_print(_("何か遅いもので攻撃された!", "You are hit by something slow!"));
 
-    (void)set_slow(target_ptr, target_ptr->slow + randint0(4) + 4, FALSE);
+    (void)set_slow(target_ptr, target_ptr->slow + randint0(4) + 4, false);
 }
 
 void effect_player_old_sleep(player_type *target_ptr, effect_player_type *ep_ptr)
@@ -47,7 +47,7 @@ void effect_player_old_sleep(player_type *target_ptr, effect_player_type *ep_ptr
         msg_print(_("恐ろしい光景が頭に浮かんできた。", "A horrible vision enters your mind."));
 
         /* Have some nightmares */
-        sanity_blast(target_ptr, NULL, FALSE);
+        sanity_blast(target_ptr, NULL, false);
     }
 
     set_paralyzed(target_ptr, target_ptr->paralyzed + ep_ptr->dam);
index 475d4fa..97ae1de 100644 (file)
@@ -40,7 +40,7 @@ void effect_player_elements(
     if (target_ptr->blind)
         msg_print(attack_message);
 
-    ep_ptr->get_damage = (*damage_func)(target_ptr, ep_ptr->dam, ep_ptr->killer, FALSE);
+    ep_ptr->get_damage = (*damage_func)(target_ptr, ep_ptr->dam, ep_ptr->killer, false);
 }
 
 void effect_player_poison(player_type *target_ptr, effect_player_type *ep_ptr)
@@ -365,7 +365,7 @@ void effect_player_inertial(player_type *target_ptr, effect_player_type *ep_ptr)
     if (target_ptr->blind)
         msg_print(_("何か遅いもので攻撃された!", "You are hit by something slow!"));
     if (!check_multishadow(target_ptr))
-        (void)set_slow(target_ptr, target_ptr->slow + randint0(4) + 4, FALSE);
+        (void)set_slow(target_ptr, target_ptr->slow + randint0(4) + 4, false);
 
     ep_ptr->get_damage = take_hit(target_ptr, DAMAGE_ATTACK, ep_ptr->dam, ep_ptr->killer);
 }
@@ -522,7 +522,7 @@ void effect_player_gravity(player_type *target_ptr, effect_player_type *ep_ptr)
     if (!check_multishadow(target_ptr)) {
         teleport_player(target_ptr, 5, TELEPORT_PASSIVE);
         if (!target_ptr->levitation)
-            (void)set_slow(target_ptr, target_ptr->slow + randint0(4) + 4, FALSE);
+            (void)set_slow(target_ptr, target_ptr->slow + randint0(4) + 4, false);
         if (!(has_resist_sound(target_ptr) || target_ptr->levitation)) {
             int plus_stun = (randint1((ep_ptr->dam > 90) ? 35 : (ep_ptr->dam / 3 + 5)));
             (void)set_stun(target_ptr, target_ptr->stun + plus_stun);
@@ -589,7 +589,7 @@ void effect_player_icee(player_type *target_ptr, effect_player_type *ep_ptr)
     if (target_ptr->blind)
         msg_print(_("何か鋭く冷たいもので攻撃された!", "You are hit by something sharp and cold!"));
 
-    ep_ptr->get_damage = cold_dam(target_ptr, ep_ptr->dam, ep_ptr->killer, FALSE);
+    ep_ptr->get_damage = cold_dam(target_ptr, ep_ptr->dam, ep_ptr->killer, false);
     if (check_multishadow(target_ptr))
         return;
 
@@ -633,7 +633,7 @@ void effect_player_void(player_type *target_ptr, effect_player_type *ep_ptr)
 
     if (!check_multishadow(target_ptr)) {
         if (!target_ptr->levitation && !target_ptr->anti_tele)
-            (void)set_slow(target_ptr, target_ptr->slow + randint0(4) + 4, FALSE);
+            (void)set_slow(target_ptr, target_ptr->slow + randint0(4) + 4, false);
     }
 
     ep_ptr->dam = ep_ptr->dam * calc_void_damage_rate(target_ptr, CALC_RAND) / 100;
@@ -654,7 +654,7 @@ void effect_player_abyss(player_type *target_ptr, effect_player_type *ep_ptr)
 
     if (!check_multishadow(target_ptr)) {
         if (!target_ptr->levitation)
-            (void)set_slow(target_ptr, target_ptr->slow + randint0(4) + 4, FALSE);
+            (void)set_slow(target_ptr, target_ptr->slow + randint0(4) + 4, false);
 
         if (!target_ptr->blind) {
             msg_print(_("深淵から何かがあなたを覗き込んでいる!", "Something gazes you from abyss!"));
index 7056c83..d0dac6b 100644 (file)
@@ -128,7 +128,7 @@ void effect_player_brain_smash(player_type *target_ptr, effect_player_type *ep_p
         (void)set_paralyzed(target_ptr, target_ptr->paralyzed + randint0(4) + 4);
     }
 
-    (void)set_slow(target_ptr, target_ptr->slow + randint0(4) + 4, FALSE);
+    (void)set_slow(target_ptr, target_ptr->slow + randint0(4) + 4, false);
 
     while (randint0(100 + ep_ptr->rlev / 2) > (MAX(5, target_ptr->skill_sav)))
         (void)do_dec_stat(target_ptr, A_INT);
index 8385c26..e388420 100644 (file)
@@ -218,7 +218,7 @@ static bool process_bolt_reflection(player_type *target_ptr, effect_player_type
     }
 
     (*project)(target_ptr, 0, 0, t_y, t_x, ep_ptr->dam, ep_ptr->effect_type, (PROJECT_STOP | PROJECT_KILL | PROJECT_REFLECTABLE));
-    disturb(target_ptr, TRUE, TRUE);
+    disturb(target_ptr, TRUE, true);
     return true;
 }
 
@@ -315,16 +315,16 @@ bool affect_player(MONSTER_IDX who, player_type *target_ptr, concptr who_name, i
         msg_format(_("攻撃が%s自身を傷つけた!", "The attack of %s has wounded %s!"), ep_ptr->m_name, m_name_self);
         (*project)(target_ptr, 0, 0, ep_ptr->m_ptr->fy, ep_ptr->m_ptr->fx, ep_ptr->get_damage, GF_MISSILE, PROJECT_KILL);
         if (target_ptr->tim_eyeeye)
-            set_tim_eyeeye(target_ptr, target_ptr->tim_eyeeye - 5, TRUE);
+            set_tim_eyeeye(target_ptr, target_ptr->tim_eyeeye - 5, true);
     }
 
     if (target_ptr->riding && ep_ptr->dam > 0) {
         rakubadam_p = (ep_ptr->dam > 200) ? 200 : ep_ptr->dam;
     }
 
-    disturb(target_ptr, TRUE, TRUE);
+    disturb(target_ptr, TRUE, true);
     if ((target_ptr->special_defense & NINJA_KAWARIMI) && ep_ptr->dam && ep_ptr->who && (ep_ptr->who != target_ptr->riding)) {
-        (void)kawarimi(target_ptr, FALSE);
+        (void)kawarimi(target_ptr, false);
     }
 
     return true;
index 3aa25fb..12dd8d1 100644 (file)
@@ -367,7 +367,7 @@ ProjectResult project(player_type *caster_ptr, const MONSTER_IDX who, POSITION r
         for (int i = 0; i < path_n; i++) {
             POSITION py = get_grid_y(path_g[i]);
             POSITION px = get_grid_x(path_g[i]);
-            (void)affect_monster(caster_ptr, 0, 0, py, px, dam, GF_SUPER_RAY, flag, TRUE);
+            (void)affect_monster(caster_ptr, 0, 0, py, px, dam, GF_SUPER_RAY, flag, true);
             if (!who && (project_m_n == 1) && !jump) {
                 if (caster_ptr->current_floor_ptr->grid_array[project_m_y][project_m_x].m_idx > 0) {
                     monster_type *m_ptr = &caster_ptr->current_floor_ptr->m_list[caster_ptr->current_floor_ptr->grid_array[project_m_y][project_m_x].m_idx];
index ba7236e..3be63b6 100644 (file)
@@ -141,7 +141,7 @@ static void make_walls(player_type *player_ptr, dun_data_type *dd_ptr, dungeon_t
         g_ptr->mimic = 0;
         place_grid(player_ptr, g_ptr, GB_FLOOR);
         if ((randint0(100) < dt_ptr->dun_tun_pen) && d_ptr->flags.has_not(DF::NO_DOORS))
-            place_random_door(player_ptr, dd_ptr->tunnel_y, dd_ptr->tunnel_x, TRUE);
+            place_random_door(player_ptr, dd_ptr->tunnel_y, dd_ptr->tunnel_x, true);
     }
 }
 
@@ -223,7 +223,7 @@ static bool switch_making_floor(player_type *player_ptr, dun_data_type *dd_ptr,
 {
     if (d_ptr->flags.has(DF::MAZE)) {
         floor_type *floor_ptr = player_ptr->current_floor_ptr;
-        build_maze_vault(player_ptr, floor_ptr->width / 2 - 1, floor_ptr->height / 2 - 1, floor_ptr->width - 4, floor_ptr->height - 4, FALSE);
+        build_maze_vault(player_ptr, floor_ptr->width / 2 - 1, floor_ptr->height / 2 - 1, floor_ptr->width - 4, floor_ptr->height - 4, false);
         if (!alloc_stairs(player_ptr, feat_down_stair, rand_range(2, 3), 3)) {
             *dd_ptr->why = _("迷宮ダンジョンの下り階段生成に失敗", "Failed to alloc up stairs in maze dungeon.");
             return false;
index 158e143..1a05387 100644 (file)
@@ -131,7 +131,7 @@ static void place_pet(player_type *master_ptr)
         if (m_idx != 0) {
             monster_race *r_ptr;
             set_pet_params(master_ptr, &r_ptr, current_monster, m_idx, cy, cx);
-            update_monster(master_ptr, m_idx, TRUE);
+            update_monster(master_ptr, m_idx, true);
             lite_spot(master_ptr, cy, cx);
             if (r_ptr->flags2 & RF2_MULTIPLY)
                 master_ptr->current_floor_ptr->num_repro++;
@@ -243,7 +243,7 @@ static void reset_unique_by_floor_change(player_type *creature_ptr)
             (void)set_monster_stunned(creature_ptr, i, 0);
             (void)set_monster_confused(creature_ptr, i, 0);
             (void)set_monster_monfear(creature_ptr, i, 0);
-            (void)set_monster_invulner(creature_ptr, i, 0, FALSE);
+            (void)set_monster_invulner(creature_ptr, i, 0, false);
         }
 
         r_ptr = real_r_ptr(m_ptr);
index 25f0450..37cdbc1 100644 (file)
@@ -65,7 +65,7 @@ void day_break(player_type *subject_ptr)
     subject_ptr->redraw |= PR_MAP;
     subject_ptr->window_flags |= PW_OVERHEAD | PW_DUNGEON;
     if (((subject_ptr->special_defense & NINJA_S_STEALTH) != 0) && ((floor_ptr->grid_array[subject_ptr->y][subject_ptr->x].info & CAVE_GLOW) != 0))
-        set_superstealth(subject_ptr, FALSE);
+        set_superstealth(subject_ptr, false);
 }
 
 void night_falls(player_type *subject_ptr)
@@ -96,7 +96,7 @@ void night_falls(player_type *subject_ptr)
     subject_ptr->window_flags |= PW_OVERHEAD | PW_DUNGEON;
 
     if (((subject_ptr->special_defense & NINJA_S_STEALTH) != 0) && ((floor_ptr->grid_array[subject_ptr->y][subject_ptr->x].info & CAVE_GLOW) != 0))
-        set_superstealth(subject_ptr, FALSE);
+        set_superstealth(subject_ptr, false);
 }
 
 /*!
@@ -257,7 +257,7 @@ void update_dungeon_feeling(player_type *subject_ptr)
     select_floor_music(subject_ptr);
     subject_ptr->redraw |= PR_DEPTH;
     if (disturb_minor)
-        disturb(subject_ptr, FALSE, FALSE);
+        disturb(subject_ptr, FALSE, false);
 }
 
 /*
index 3732429..a29979a 100644 (file)
@@ -231,7 +231,7 @@ static void generate_gambling_arena(player_type *creature_ptr)
             continue;
 
         m_ptr->mflag2.set({ MFLAG2::MARK, MFLAG2::SHOW });
-        update_monster(creature_ptr, i, FALSE);
+        update_monster(creature_ptr, i, false);
     }
 }
 
index ef5ffcb..8d04b5c 100644 (file)
@@ -405,9 +405,9 @@ static void exe_leave_floor(player_type *creature_ptr, saved_floor_type *sf_ptr)
 void leave_floor(player_type *creature_ptr)
 {
     preserve_pet(creature_ptr);
-    remove_all_mirrors(creature_ptr, FALSE);
+    remove_all_mirrors(creature_ptr, false);
     if (creature_ptr->special_defense & NINJA_S_STEALTH)
-        set_superstealth(creature_ptr, FALSE);
+        set_superstealth(creature_ptr, false);
 
     new_floor_id = 0;
 
index 5a089ff..7a9da26 100644 (file)
@@ -477,6 +477,6 @@ void destroy_level(player_type *player_ptr)
         x1 = rand_range(5, floor_ptr->width - 1 - 5);
         y1 = rand_range(5, floor_ptr->height - 1 - 5);
 
-        (void)destroy_area(player_ptr, y1, x1, 15, TRUE);
+        (void)destroy_area(player_ptr, y1, x1, 15, true);
     }
 }
index 890b0af..f835899 100644 (file)
@@ -74,7 +74,7 @@ static void pattern_teleport(player_type *creature_ptr)
 
     msg_format(_("%d 階にテレポートしました。", "You teleport to dungeon level %d."), command_arg);
     if (autosave_l)
-        do_cmd_save_game(creature_ptr, TRUE);
+        do_cmd_save_game(creature_ptr, true);
 
     creature_ptr->current_floor_ptr->dun_level = command_arg;
     leave_quest_check(creature_ptr);
index 1b5db2e..d53a07e 100644 (file)
@@ -233,19 +233,19 @@ static void create_cata_tunnel(player_type *player_ptr, dun_data_type *dd_ptr, P
 {
     POSITION x1 = x - 1;
     POSITION y1 = y;
-    set_tunnel(player_ptr, dd_ptr, &x1, &y1, FALSE);
+    set_tunnel(player_ptr, dd_ptr, &x1, &y1, false);
 
     x1 = x + 1;
     y1 = y;
-    set_tunnel(player_ptr, dd_ptr, &x1, &y1, FALSE);
+    set_tunnel(player_ptr, dd_ptr, &x1, &y1, false);
 
     x1 = x;
     y1 = y - 1;
-    set_tunnel(player_ptr, dd_ptr, &x1, &y1, FALSE);
+    set_tunnel(player_ptr, dd_ptr, &x1, &y1, false);
 
     x1 = x;
     y1 = y + 1;
-    set_tunnel(player_ptr, dd_ptr, &x1, &y1, FALSE);
+    set_tunnel(player_ptr, dd_ptr, &x1, &y1, false);
 }
 
 /*!
@@ -422,7 +422,7 @@ bool build_tunnel2(player_type *player_ptr, dun_data_type *dd_ptr, POSITION x1,
     }
 
     if (firstsuccede)
-        set_tunnel(player_ptr, dd_ptr, &x3, &y3, TRUE);
+        set_tunnel(player_ptr, dd_ptr, &x3, &y3, true);
 
     return retval;
 }
index a11f754..1de48c9 100644 (file)
@@ -387,43 +387,43 @@ void wilderness_gen(player_type *creature_ptr)
     get_mon_num_prep(creature_ptr, get_monster_hook(creature_ptr), NULL);
 
     /* North border */
-    generate_area(creature_ptr, y - 1, x, TRUE, FALSE);
+    generate_area(creature_ptr, y - 1, x, TRUE, false);
     for (int i = 1; i < MAX_WID - 1; i++)
         border.north[i] = floor_ptr->grid_array[MAX_HGT - 2][i].feat;
 
     /* South border */
-    generate_area(creature_ptr, y + 1, x, TRUE, FALSE);
+    generate_area(creature_ptr, y + 1, x, TRUE, false);
     for (int i = 1; i < MAX_WID - 1; i++)
         border.south[i] = floor_ptr->grid_array[1][i].feat;
     
     /* West border */
-    generate_area(creature_ptr, y, x - 1, TRUE, FALSE);
+    generate_area(creature_ptr, y, x - 1, TRUE, false);
     for (int i = 1; i < MAX_HGT - 1; i++)
         border.west[i] = floor_ptr->grid_array[i][MAX_WID - 2].feat;
 
     /* East border */
-    generate_area(creature_ptr, y, x + 1, TRUE, FALSE);
+    generate_area(creature_ptr, y, x + 1, TRUE, false);
     for (int i = 1; i < MAX_HGT - 1; i++)
         border.east[i] = floor_ptr->grid_array[i][1].feat;
 
     /* North west corner */
-    generate_area(creature_ptr, y - 1, x - 1, FALSE, TRUE);
+    generate_area(creature_ptr, y - 1, x - 1, FALSE, true);
     border.north_west = floor_ptr->grid_array[MAX_HGT - 2][MAX_WID - 2].feat;
 
     /* North east corner */
-    generate_area(creature_ptr, y - 1, x + 1, FALSE, TRUE);
+    generate_area(creature_ptr, y - 1, x + 1, FALSE, true);
     border.north_east = floor_ptr->grid_array[MAX_HGT - 2][1].feat;
 
     /* South west corner */
-    generate_area(creature_ptr, y + 1, x - 1, FALSE, TRUE);
+    generate_area(creature_ptr, y + 1, x - 1, FALSE, true);
     border.south_west = floor_ptr->grid_array[1][MAX_WID - 2].feat;
 
     /* South east corner */
-    generate_area(creature_ptr, y + 1, x + 1, FALSE, TRUE);
+    generate_area(creature_ptr, y + 1, x + 1, FALSE, true);
     border.south_east = floor_ptr->grid_array[1][1].feat;
 
     /* Create terrain of the current area */
-    generate_area(creature_ptr, y, x, FALSE, FALSE);
+    generate_area(creature_ptr, y, x, FALSE, false);
 
     /* Special boundary walls -- North */
     for (int i = 0; i < MAX_WID; i++) {
index 7db4caf..91364a4 100644 (file)
@@ -167,5 +167,5 @@ void try_door(player_type *player_ptr, dt_type *dt_ptr, POSITION y, POSITION x)
     can_place_door &= possible_doorway(floor_ptr, y, x);
     can_place_door &= d_info[player_ptr->dungeon_idx].flags.has_not(DF::NO_DOORS);
     if (can_place_door)
-        place_random_door(player_ptr, y, x, FALSE);
+        place_random_door(player_ptr, y, x, false);
 }
index 131b631..a0673c3 100644 (file)
@@ -228,7 +228,7 @@ void cave_set_feat(player_type *player_ptr, POSITION y, POSITION x, FEAT_IDX fea
     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);
+        update_monster(player_ptr, g_ptr->m_idx, false);
 
     note_spot(player_ptr, y, x);
     lite_spot(player_ptr, y, x);
@@ -250,7 +250,7 @@ void cave_set_feat(player_type *player_ptr, POSITION y, POSITION x, FEAT_IDX fea
 
         if (player_has_los_grid(cc_ptr)) {
             if (cc_ptr->m_idx)
-                update_monster(player_ptr, cc_ptr->m_idx, FALSE);
+                update_monster(player_ptr, cc_ptr->m_idx, false);
             note_spot(player_ptr, yy, xx);
             lite_spot(player_ptr, yy, xx);
         }
@@ -260,7 +260,7 @@ void cave_set_feat(player_type *player_ptr, POSITION y, POSITION x, FEAT_IDX fea
 
     if (player_ptr->special_defense & NINJA_S_STEALTH) {
         if (floor_ptr->grid_array[player_ptr->y][player_ptr->x].info & CAVE_GLOW)
-            set_superstealth(player_ptr, FALSE);
+            set_superstealth(player_ptr, false);
     }
 }
 
index 1f30ee8..d983393 100644 (file)
@@ -341,7 +341,7 @@ bool check_local_illumination(player_type *creature_ptr, POSITION y, POSITION x)
         if (player_has_los_bold((C), (Y), (X))) {                                                                                                              \
             /* Update the monster */                                                                                                                           \
             if ((C)->current_floor_ptr->grid_array[(Y)][(X)].m_idx)                                                                                            \
-                update_monster((C), (C)->current_floor_ptr->grid_array[(Y)][(X)].m_idx, FALSE);                                                                \
+                update_monster((C), (C)->current_floor_ptr->grid_array[(Y)][(X)].m_idx, false);                                                                \
                                                                                                                                                                \
             /* Notice and redraw */                                                                                                                            \
             note_spot((C), (Y), (X));                                                                                                                          \
@@ -998,7 +998,7 @@ void remove_mirror(player_type *caster_ptr, POSITION y, POSITION x)
         if (!view_torch_grids)
             g_ptr->info &= ~(CAVE_MARK);
         if (g_ptr->m_idx)
-            update_monster(caster_ptr, g_ptr->m_idx, FALSE);
+            update_monster(caster_ptr, g_ptr->m_idx, false);
 
         update_local_illumination(caster_ptr, y, x);
     }
index 8acac70..3854332 100644 (file)
@@ -373,7 +373,7 @@ static void hit_trap_lose_stat(player_type *target_ptr, int stat)
 static void hit_trap_slow(player_type *target_ptr)
 {
     if (hit_trap_dart(target_ptr)) {
-        set_slow(target_ptr, target_ptr->slow + randint0(20) + 20, FALSE);
+        set_slow(target_ptr, target_ptr->slow + randint0(20) + 20, false);
     }
 }
 
@@ -407,7 +407,7 @@ void hit_trap(player_type *trapped_ptr, bool break_trap)
     enum trap_type trap_feat_type = has_flag(f_ptr->flags, FF_TRAP) ? (enum trap_type)f_ptr->subtype : NOT_TRAP;
     concptr name = _("トラップ", "a trap");
 
-    disturb(trapped_ptr, FALSE, TRUE);
+    disturb(trapped_ptr, FALSE, true);
 
     cave_alter_feat(trapped_ptr, y, x, FF_HIT_TRAP);
 
@@ -431,7 +431,7 @@ void hit_trap(player_type *trapped_ptr, bool break_trap)
 
             /* Still alive and autosave enabled */
             if (autosave_l && (trapped_ptr->chp >= 0))
-                do_cmd_save_game(trapped_ptr, TRUE);
+                do_cmd_save_game(trapped_ptr, true);
 
             exe_write_diary(trapped_ptr, DIARY_DESCRIPTION, 0, _("落とし戸に落ちた", "fell through a trap door!"));
             prepare_change_floor_mode(trapped_ptr, CFM_SAVE_FLOORS | CFM_DOWN | CFM_RAND_PLACE | CFM_RAND_CONNECT);
@@ -475,14 +475,14 @@ void hit_trap(player_type *trapped_ptr, bool break_trap)
     case TRAP_FIRE: {
         msg_print(_("炎に包まれた!", "You are enveloped in flames!"));
         dam = damroll(4, 6);
-        (void)fire_dam(trapped_ptr, dam, _("炎のトラップ", "a fire trap"), FALSE);
+        (void)fire_dam(trapped_ptr, dam, _("炎のトラップ", "a fire trap"), false);
         break;
     }
 
     case TRAP_ACID: {
         msg_print(_("酸が吹きかけられた!", "You are splashed with acid!"));
         dam = damroll(4, 6);
-        (void)acid_dam(trapped_ptr, dam, _("酸のトラップ", "an acid trap"), FALSE);
+        (void)acid_dam(trapped_ptr, dam, _("酸のトラップ", "an acid trap"), false);
         break;
     }
 
@@ -533,7 +533,7 @@ void hit_trap(player_type *trapped_ptr, bool break_trap)
                 msg_print(_("身の毛もよだつ光景が頭に浮かんだ。", "A horrible vision enters your mind."));
 
                 /* Have some nightmares */
-                sanity_blast(trapped_ptr, NULL, FALSE);
+                sanity_blast(trapped_ptr, NULL, false);
             }
             (void)set_paralyzed(trapped_ptr, trapped_ptr->paralyzed + randint0(10) + 5);
         }
index 1882eb4..db083a5 100644 (file)
@@ -257,7 +257,7 @@ parse_error_type parse_fixed_map(player_type *player_ptr, concptr name, int ymin
             char *s;
             s = buf + 2;
             concptr v = parse_fixed_map_expression(player_ptr, &s, &f);
-            bypass = (streq(v, "0") ? TRUE : FALSE);
+            bypass = (streq(v, "0") ? TRUE : false);
             continue;
         }
 
index 32d5b8d..8ac66f5 100644 (file)
@@ -191,11 +191,11 @@ static void curse_teleport(player_type *creature_ptr)
     describe_flavor(creature_ptr, o_name, o_ptr, (OD_OMIT_PREFIX | OD_NAME_ONLY));
     msg_format(_("%sがテレポートの能力を発動させようとしている。", "Your %s tries to teleport you."), o_name);
     if (get_check_strict(creature_ptr, _("テレポートしますか?", "Teleport? "), CHECK_OKAY_CANCEL)) {
-        disturb(creature_ptr, FALSE, TRUE);
+        disturb(creature_ptr, FALSE, true);
         teleport_player(creature_ptr, 50, TELEPORT_SPONTANEOUS);
     } else {
         msg_format(_("%sに{.}(ピリオド)と銘を刻むと発動を抑制できます。", "You can inscribe {.} on your %s to disable random teleportation. "), o_name);
-        disturb(creature_ptr, TRUE, TRUE);
+        disturb(creature_ptr, TRUE, true);
     }
 }
 
@@ -210,7 +210,7 @@ static void occur_chainsword_effect(player_type *creature_ptr)
     char noise[1024];
     if (!get_rnd_line(_("chainswd_j.txt", "chainswd.txt"), 0, noise))
         msg_print(noise);
-    disturb(creature_ptr, FALSE, FALSE);
+    disturb(creature_ptr, FALSE, false);
 }
 
 static void curse_drain_exp(player_type *creature_ptr)
@@ -277,7 +277,7 @@ static void curse_call_monster(player_type *creature_ptr)
             GAME_TEXT o_name[MAX_NLEN];
             describe_flavor(creature_ptr, o_name, choose_cursed_obj_name(creature_ptr, TRC::CALL_ANIMAL), obj_desc_type);
             msg_format(_("%sが動物を引き寄せた!", "Your %s has attracted an animal!"), o_name);
-            disturb(creature_ptr, FALSE, TRUE);
+            disturb(creature_ptr, FALSE, true);
         }
     }
 
@@ -286,7 +286,7 @@ static void curse_call_monster(player_type *creature_ptr)
             GAME_TEXT o_name[MAX_NLEN];
             describe_flavor(creature_ptr, o_name, choose_cursed_obj_name(creature_ptr, TRC::CALL_DEMON), obj_desc_type);
             msg_format(_("%sが悪魔を引き寄せた!", "Your %s has attracted a demon!"), o_name);
-            disturb(creature_ptr, FALSE, TRUE);
+            disturb(creature_ptr, FALSE, true);
         }
     }
 
@@ -295,7 +295,7 @@ static void curse_call_monster(player_type *creature_ptr)
             GAME_TEXT o_name[MAX_NLEN];
             describe_flavor(creature_ptr, o_name, choose_cursed_obj_name(creature_ptr, TRC::CALL_DRAGON), obj_desc_type);
             msg_format(_("%sがドラゴンを引き寄せた!", "Your %s has attracted a dragon!"), o_name);
-            disturb(creature_ptr, FALSE, TRUE);
+            disturb(creature_ptr, FALSE, true);
         }
     }
 
@@ -304,7 +304,7 @@ static void curse_call_monster(player_type *creature_ptr)
             GAME_TEXT o_name[MAX_NLEN];
             describe_flavor(creature_ptr, o_name, choose_cursed_obj_name(creature_ptr, TRC::CALL_UNDEAD), obj_desc_type);
             msg_format(_("%sが死霊を引き寄せた!", "Your %s has attracted an undead!"), o_name);
-            disturb(creature_ptr, FALSE, TRUE);
+            disturb(creature_ptr, FALSE, true);
         }
     }
 }
@@ -317,7 +317,7 @@ static void curse_cowardice(player_type *creature_ptr)
     if (has_resist_fear(creature_ptr))
         return;
 
-    disturb(creature_ptr, FALSE, TRUE);
+    disturb(creature_ptr, FALSE, true);
     msg_print(_("とても暗い... とても恐い!", "It's so dark... so scary!"));
     set_afraid(creature_ptr, creature_ptr->afraid + 13 + randint1(26));
 }
@@ -331,10 +331,10 @@ static void curse_berserk_rage(player_type *creature_ptr)
     if ((creature_ptr->cursed.has_not(TRC::BERS_RAGE)) || !one_in_(1500))
         return;
 
-    disturb(creature_ptr, FALSE, TRUE);
+    disturb(creature_ptr, FALSE, true);
     msg_print(_("ウガァァア!", "RAAAAGHH!"));
     msg_print(_("激怒の発作に襲われた!", "You feel a fit of rage coming over you!"));
-    (void)set_shero(creature_ptr, 10 + randint1(creature_ptr->lev), FALSE);
+    (void)set_shero(creature_ptr, 10 + randint1(creature_ptr->lev), false);
     (void)set_afraid(creature_ptr, 0);
 }
 
@@ -385,7 +385,7 @@ static void occur_curse_effects(player_type *creature_ptr)
     curse_cowardice(creature_ptr);
     curse_berserk_rage(creature_ptr);
     if (creature_ptr->cursed.has(TRC::TELEPORT) && one_in_(200) && !creature_ptr->anti_tele) {
-        disturb(creature_ptr, FALSE, TRUE);
+        disturb(creature_ptr, FALSE, true);
         teleport_player(creature_ptr, 40, TELEPORT_PASSIVE);
     }
 
index 9caf1b1..074a17e 100644 (file)
@@ -26,7 +26,7 @@ void pack_overflow(player_type *owner_ptr)
         return;
 
     o_ptr = &owner_ptr->inventory_list[INVEN_PACK];
-    disturb(owner_ptr, FALSE, TRUE);
+    disturb(owner_ptr, FALSE, true);
     msg_print(_("ザックからアイテムがあふれた!", "Your pack overflows!"));
 
     describe_flavor(owner_ptr, o_name, o_ptr, 0);
index b46be51..9544d3c 100644 (file)
@@ -93,7 +93,7 @@ void py_pickup_floor(player_type *owner_ptr, bool pickup)
         const OBJECT_IDX this_o_idx = *it++;
         o_ptr = &owner_ptr->current_floor_ptr->o_list[this_o_idx];
         describe_flavor(owner_ptr, o_name, o_ptr, 0);
-        disturb(owner_ptr, FALSE, FALSE);
+        disturb(owner_ptr, FALSE, false);
         if (o_ptr->tval == TV_GOLD) {
             msg_format(_(" $%ld の価値がある%sを見つけた。", "You have found %ld gold pieces worth of %s."), (long)o_ptr->pval, o_name);
             sound(SOUND_SELL);
@@ -256,7 +256,7 @@ void carry(player_type *creature_ptr, bool pickup)
         o_ptr = &creature_ptr->current_floor_ptr->o_list[this_o_idx];
         GAME_TEXT o_name[MAX_NLEN];
         describe_flavor(creature_ptr, o_name, o_ptr, 0);
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
         if (o_ptr->tval == TV_GOLD) {
             int value = (long)o_ptr->pval;
             delete_object_idx(creature_ptr, this_o_idx);
index df8c04b..401a4f4 100644 (file)
@@ -38,7 +38,7 @@ static void recharged_notice(player_type *owner_ptr, object_type *o_ptr)
             else
                 msg_format("Your %s is recharged.", o_name);
 #endif
-            disturb(owner_ptr, FALSE, FALSE);
+            disturb(owner_ptr, FALSE, false);
             return;
         }
 
index ffe3311..6320a23 100644 (file)
@@ -53,13 +53,13 @@ static void dump_player_status_with_screen_num(
  */
 void dump_aux_player_status(player_type *creature_ptr, FILE *fff, display_player_pf display_player)
 {
-       dump_player_status_with_screen_num(creature_ptr, fff, display_player, 0, 1, 22, FALSE);
-       dump_player_status_with_screen_num(creature_ptr, fff, display_player, 1, 10, 19, FALSE);
+       dump_player_status_with_screen_num(creature_ptr, fff, display_player, 0, 1, 22, false);
+       dump_player_status_with_screen_num(creature_ptr, fff, display_player, 1, 10, 19, false);
        fprintf(fff, "\n");
-       dump_player_status_with_screen_num(creature_ptr, fff, display_player, 2, 2, 22, TRUE);
+       dump_player_status_with_screen_num(creature_ptr, fff, display_player, 2, 2, 22, true);
        fprintf(fff, "\n");
-       dump_player_status_with_screen_num(creature_ptr, fff, display_player, 3, 1, 18, TRUE);
+       dump_player_status_with_screen_num(creature_ptr, fff, display_player, 3, 1, 18, true);
        fprintf(fff, "\n");
-    dump_player_status_with_screen_num(creature_ptr, fff, display_player, 4, 1, 19, TRUE);
+    dump_player_status_with_screen_num(creature_ptr, fff, display_player, 4, 1, 19, true);
     fprintf(fff, "\n");
 }
index 4946f27..c7b6ac6 100644 (file)
@@ -286,7 +286,7 @@ errr counts_write(player_type *creature_ptr, int where, u32b count)
     if (err)
         return 1;
 
-    counts_seek(creature_ptr, fd, where, TRUE);
+    counts_seek(creature_ptr, fd, where, true);
     fd_write(fd, (char *)(&count), sizeof(u32b));
     safe_setuid_grab(creature_ptr);
     err = fd_lock(fd, F_UNLCK);
index 8d041ae..f5b431c 100644 (file)
@@ -153,7 +153,7 @@ static char inkey_aux(void)
                 return 0;
         }
 
-        (void)term_inkey(&ch, TRUE, TRUE);
+        (void)term_inkey(&ch, TRUE, true);
         return (ch);
     }
 
index a1a7763..7c5b913 100644 (file)
@@ -246,11 +246,11 @@ void process_command(player_type *creature_ptr)
         break;
     }
     case ';': {
-        do_cmd_walk(creature_ptr, FALSE);
+        do_cmd_walk(creature_ptr, false);
         break;
     }
     case '-': {
-        do_cmd_walk(creature_ptr, TRUE);
+        do_cmd_walk(creature_ptr, true);
         break;
     }
     case '.': {
@@ -310,7 +310,7 @@ void process_command(player_type *creature_ptr)
                 break;
             }
 
-            change_wild_mode(creature_ptr, FALSE);
+            change_wild_mode(creature_ptr, false);
         } else
             do_cmd_go_up(creature_ptr);
 
@@ -318,7 +318,7 @@ void process_command(player_type *creature_ptr)
     }
     case '>': {
         if (creature_ptr->wild_mode)
-            change_wild_mode(creature_ptr, FALSE);
+            change_wild_mode(creature_ptr, false);
         else
             do_cmd_go_down(creature_ptr);
 
@@ -363,9 +363,9 @@ void process_command(player_type *creature_ptr)
         else if (creature_ptr->pclass == CLASS_ELEMENTALIST)
             do_cmd_element_browse(creature_ptr);
         else if (creature_ptr->pclass == CLASS_SMITH)
-            do_cmd_kaji(creature_ptr, TRUE);
+            do_cmd_kaji(creature_ptr, true);
         else if (creature_ptr->pclass == CLASS_MAGIC_EATER)
-            do_cmd_magic_eater(creature_ptr, TRUE, FALSE);
+            do_cmd_magic_eater(creature_ptr, TRUE, false);
         else if (creature_ptr->pclass == CLASS_SNIPER)
             do_cmd_snipe_browse(creature_ptr);
         else
@@ -434,15 +434,15 @@ void process_command(player_type *creature_ptr)
         else if (creature_ptr->pclass == CLASS_ELEMENTALIST)
             do_cmd_element(creature_ptr);
         else if (creature_ptr->pclass == CLASS_IMITATOR)
-            do_cmd_mane(creature_ptr, FALSE);
+            do_cmd_mane(creature_ptr, false);
         else if (creature_ptr->pclass == CLASS_MAGIC_EATER)
-            do_cmd_magic_eater(creature_ptr, FALSE, FALSE);
+            do_cmd_magic_eater(creature_ptr, FALSE, false);
         else if (creature_ptr->pclass == CLASS_SAMURAI)
             do_cmd_hissatsu(creature_ptr);
         else if (creature_ptr->pclass == CLASS_BLUE_MAGE)
             do_cmd_cast_learned(creature_ptr);
         else if (creature_ptr->pclass == CLASS_SMITH)
-            do_cmd_kaji(creature_ptr, FALSE);
+            do_cmd_kaji(creature_ptr, false);
         else if (creature_ptr->pclass == CLASS_SNIPER)
             do_cmd_snipe(creature_ptr);
         else
@@ -609,7 +609,7 @@ void process_command(player_type *creature_ptr)
         break;
     }
     case KTRL('S'): {
-        do_cmd_save_game(creature_ptr, FALSE);
+        do_cmd_save_game(creature_ptr, false);
         break;
     }
     case KTRL('T'): {
index 48c3c55..833fe9b 100644 (file)
@@ -273,7 +273,7 @@ void request_command(player_type *player_ptr, int shopping)
         }
 
         if (cmd == '\\') {
-            (void)get_com(_("コマンド: ", "Command: "), (char *)&cmd, FALSE);
+            (void)get_com(_("コマンド: ", "Command: "), (char *)&cmd, false);
             if (!inkey_next)
                 inkey_next = "";
         }
index dc93e4e..3a0a799 100644 (file)
@@ -297,7 +297,7 @@ void load_all_pref_files(player_type *player_ptr)
         process_pref_file(player_ptr, buf);
     }
 
-    autopick_load_pref(player_ptr, FALSE);
+    autopick_load_pref(player_ptr, false);
 }
 
 /*!
index 5359594..3a8f96c 100644 (file)
@@ -24,7 +24,7 @@ void do_cmd_reload_autopick(player_type *creature_ptr)
     if (!get_check(_("自動拾い設定ファイルをロードしますか? ", "Reload auto-pick preference file? ")))
         return;
 
-    autopick_load_pref(creature_ptr, TRUE);
+    autopick_load_pref(creature_ptr, true);
 }
 
 /*
index 7b30d48..cf26c3e 100644 (file)
@@ -25,7 +25,7 @@
  */
 static errr rd_dungeon(player_type *player_ptr)
 {
-    init_saved_floors(player_ptr, FALSE);
+    init_saved_floors(player_ptr, false);
     errr err = 0;
     if (h_older_than(1, 5, 0, 0)) {
         err = rd_dungeon_old(player_ptr);
index 4c6dec6..c90e35d 100644 (file)
@@ -117,7 +117,7 @@ static void rd_world_info(player_type *creature_ptr)
         rd_s32b(&current_world_ptr->arena_start_turn);
 
     if (h_older_than(0, 0, 3))
-        determine_daily_bounty(creature_ptr, TRUE);
+        determine_daily_bounty(creature_ptr, true);
     else {
         rd_s16b(&current_world_ptr->today_mon);
         rd_s16b(&creature_ptr->today_mon);
index 94e7166..7f025ef 100644 (file)
@@ -1575,7 +1575,7 @@ static void process_menus(player_type *player_ptr, WORD wCmd)
             }
 
             msg_flag = false;
-            do_cmd_save_game(player_ptr, FALSE);
+            do_cmd_save_game(player_ptr, false);
         } else {
             plog(_("今、セーブすることは出来ません。", "You may not do that right now."));
         }
@@ -2523,38 +2523,38 @@ static void init_stuff(void)
     }
 
     strcpy(path + i + 1, "lib\\");
-    validate_dir(path, TRUE);
+    validate_dir(path, true);
     init_file_paths(path, path);
-    validate_dir(ANGBAND_DIR_APEX, FALSE);
-    validate_dir(ANGBAND_DIR_BONE, FALSE);
+    validate_dir(ANGBAND_DIR_APEX, false);
+    validate_dir(ANGBAND_DIR_BONE, false);
     if (!check_dir(ANGBAND_DIR_EDIT)) {
-        validate_dir(ANGBAND_DIR_DATA, TRUE);
+        validate_dir(ANGBAND_DIR_DATA, true);
     } else {
-        validate_dir(ANGBAND_DIR_DATA, FALSE);
+        validate_dir(ANGBAND_DIR_DATA, false);
     }
 
-    validate_dir(ANGBAND_DIR_FILE, TRUE);
-    validate_dir(ANGBAND_DIR_HELP, FALSE);
-    validate_dir(ANGBAND_DIR_INFO, FALSE);
-    validate_dir(ANGBAND_DIR_PREF, TRUE);
-    validate_dir(ANGBAND_DIR_SAVE, FALSE);
-    validate_dir(ANGBAND_DIR_DEBUG_SAVE, FALSE);
-    validate_dir(ANGBAND_DIR_USER, TRUE);
-    validate_dir(ANGBAND_DIR_XTRA, TRUE);
+    validate_dir(ANGBAND_DIR_FILE, true);
+    validate_dir(ANGBAND_DIR_HELP, false);
+    validate_dir(ANGBAND_DIR_INFO, false);
+    validate_dir(ANGBAND_DIR_PREF, true);
+    validate_dir(ANGBAND_DIR_SAVE, false);
+    validate_dir(ANGBAND_DIR_DEBUG_SAVE, false);
+    validate_dir(ANGBAND_DIR_USER, true);
+    validate_dir(ANGBAND_DIR_XTRA, true);
     path_build(path, sizeof(path), ANGBAND_DIR_FILE, _("news_j.txt", "news.txt"));
 
     validate_file(path);
     path_build(path, sizeof(path), ANGBAND_DIR_XTRA, "graf");
     ANGBAND_DIR_XTRA_GRAF = string_make(path);
-    validate_dir(ANGBAND_DIR_XTRA_GRAF, TRUE);
+    validate_dir(ANGBAND_DIR_XTRA_GRAF, true);
 
     path_build(path, sizeof(path), ANGBAND_DIR_XTRA, "sound");
     ANGBAND_DIR_XTRA_SOUND = string_make(path);
-    validate_dir(ANGBAND_DIR_XTRA_SOUND, FALSE);
+    validate_dir(ANGBAND_DIR_XTRA_SOUND, false);
 
     path_build(path, sizeof(path), ANGBAND_DIR_XTRA, "music");
     ANGBAND_DIR_XTRA_MUSIC = string_make(path);
-    validate_dir(ANGBAND_DIR_XTRA_MUSIC, FALSE);
+    validate_dir(ANGBAND_DIR_XTRA_MUSIC, false);
 
     for (i = 0; special_key_list[i]; ++i) {
         special_key[special_key_list[i]] = true;
@@ -2593,7 +2593,7 @@ static void init_stuff(void)
 void create_debug_spoiler(void)
 {
     init_stuff();
-    init_angband(p_ptr, TRUE);
+    init_angband(p_ptr, true);
 
     switch (output_all_spoilers()) {
     case spoiler_output_status::SPOILER_OUTPUT_SUCCESS:
@@ -2692,7 +2692,7 @@ int WINAPI WinMain(
 
     signals_init();
     term_activate(term_screen);
-    init_angband(p_ptr, FALSE);
+    init_angband(p_ptr, false);
     initialized = true;
 
     check_for_save_file(command_line.get_savefile_option());
@@ -2717,13 +2717,13 @@ int WINAPI WinMain(
     term_flush();
     if (movie_in_progress) {
         // selected movie
-        play_game(p_ptr, FALSE, TRUE);
+        play_game(p_ptr, FALSE, true);
     } else if (savefile[0] == '\0') {
         // new game
-        play_game(p_ptr, TRUE, FALSE);
+        play_game(p_ptr, TRUE, false);
     } else {
         // selected savefile
-        play_game(p_ptr, FALSE, FALSE);
+        play_game(p_ptr, FALSE, false);
     }
 
     quit(NULL);
index 86c46bf..54b7c03 100644 (file)
@@ -100,7 +100,7 @@ struct term_data {
      */
     void refresh(const RECT *lpRect = NULL)
     {
-        InvalidateRect(this->w, lpRect, FALSE);
+        InvalidateRect(this->w, lpRect, false);
     };
     /*!
      * @brief オフスクリーン内容を表示画面に描画する
index 0b9a124..273fcd3 100644 (file)
@@ -178,7 +178,7 @@ bool exchange_cash(player_type *player_ptr)
             describe_flavor(player_ptr, o_name, &forge, 0);
             msg_format(_("%s(%c)を貰った。", "You get %s (%c). "), o_name, index_to_label(item_new));
 
-            autopick_alter_item(player_ptr, item_new, FALSE);
+            autopick_alter_item(player_ptr, item_new, false);
             handle_stuff(player_ptr);
             change = true;
         }
index af568d8..c08165f 100644 (file)
@@ -74,7 +74,7 @@ static u32b calc_expect_dice(
 {
     dam = calc_slaydam(dam, mult, div, force);
     dam = calc_expect_crit(owner_ptr, weight, plus, dam, meichuu, dokubari, impact);
-    dam = calc_slaydam(dam, vorpal_mult, vorpal_div, FALSE);
+    dam = calc_slaydam(dam, vorpal_mult, vorpal_div, false);
     return dam;
 }
 
index 65cf83e..4c74adb 100644 (file)
@@ -79,7 +79,7 @@ void castle_quest(player_type *player_ptr)
     q_ptr = &quest[q_index];
     if (q_ptr->status == QUEST_STATUS_COMPLETED) {
         q_ptr->status = QUEST_STATUS_REWARDED;
-        print_questinfo(player_ptr, q_index, FALSE);
+        print_questinfo(player_ptr, q_index, false);
         reinit_wilderness = true;
         return;
     }
@@ -108,7 +108,7 @@ void castle_quest(player_type *player_ptr)
     }
 
     if (q_ptr->status == QUEST_STATUS_FAILED) {
-        print_questinfo(player_ptr, q_index, FALSE);
+        print_questinfo(player_ptr, q_index, false);
         q_ptr->status = QUEST_STATUS_FAILED_DONE;
         reinit_wilderness = true;
         return;
@@ -120,7 +120,7 @@ void castle_quest(player_type *player_ptr)
     q_ptr->status = QUEST_STATUS_TAKEN;
     reinit_wilderness = true;
     if (q_ptr->type != QUEST_TYPE_KILL_ANY_LEVEL) {
-        print_questinfo(player_ptr, q_index, TRUE);
+        print_questinfo(player_ptr, q_index, true);
         return;
     }
 
@@ -149,5 +149,5 @@ void castle_quest(player_type *player_ptr)
 #else
     msg_format("Your quest: kill %d %s", q_ptr->max_num, name);
 #endif
-    print_questinfo(player_ptr, q_index, TRUE);
+    print_questinfo(player_ptr, q_index, true);
 }
index 78d49e3..9bca202 100644 (file)
@@ -68,7 +68,7 @@ void building_recharge(player_type *player_ptr)
             describe_flavor(player_ptr, tmp_str, o_ptr, 0);
             msg_format(_("%s です。", "You have: %s."), tmp_str);
 
-            autopick_alter_item(player_ptr, item, FALSE);
+            autopick_alter_item(player_ptr, item, false);
             building_prt_gold(player_ptr);
         }
 
@@ -246,7 +246,7 @@ void building_recharge_all(player_type *player_ptr)
 
         if (!object_is_known(o_ptr)) {
             identify_item(player_ptr, o_ptr);
-            autopick_alter_item(player_ptr, i, FALSE);
+            autopick_alter_item(player_ptr, i, false);
         }
 
         switch (o_ptr->tval) {
index 8744416..b4229d4 100644 (file)
@@ -180,7 +180,7 @@ static bool check_monster_hp(player_type *player_ptr, mam_pp_type *mam_pp_ptr)
     *(mam_pp_ptr->dead) = true;
     print_monster_dead_by_monster(player_ptr, mam_pp_ptr);
     monster_gain_exp(player_ptr, mam_pp_ptr->who, mam_pp_ptr->m_ptr->r_idx);
-    monster_death(player_ptr, mam_pp_ptr->m_idx, FALSE);
+    monster_death(player_ptr, mam_pp_ptr->m_idx, false);
     delete_monster_idx(player_ptr, mam_pp_ptr->m_idx);
     *(mam_pp_ptr->fear) = false;
     return true;
@@ -261,7 +261,7 @@ void mon_take_hit_mon(player_type *player_ptr, MONSTER_IDX m_idx, HIT_POINT dam,
     (void)set_monster_csleep(player_ptr, m_idx, 0);
 
     if (player_ptr->riding && (m_idx == player_ptr->riding))
-        disturb(player_ptr, TRUE, TRUE);
+        disturb(player_ptr, TRUE, true);
 
     if (process_invulnerability(mam_pp_ptr) || process_all_resistances(mam_pp_ptr))
         return;
index 8d08fa5..d15d2fe 100644 (file)
@@ -32,7 +32,7 @@ static bool try_melee_spell(player_type *target_ptr, melee_spell_type *ms_ptr)
     if (spell_is_inate(ms_ptr->thrown_spell) || (!ms_ptr->in_no_magic_dungeon && (!monster_stunned_remaining(ms_ptr->m_ptr) || one_in_(2))))
         return false;
 
-    disturb(target_ptr, TRUE, TRUE);
+    disturb(target_ptr, TRUE, true);
     if (ms_ptr->see_m)
         msg_format(_("%^sは呪文を唱えようとしたが失敗した。", "%^s tries to cast a spell, but fails."), ms_ptr->m_name);
 
@@ -122,13 +122,13 @@ bool monst_spell_monst(player_type *target_ptr, MONSTER_IDX m_idx)
     describe_melee_spell(target_ptr, ms_ptr);
     ms_ptr->thrown_spell = ms_ptr->spells[randint0(ms_ptr->spells.size())];
     if (target_ptr->riding && (m_idx == target_ptr->riding))
-        disturb(target_ptr, TRUE, TRUE);
+        disturb(target_ptr, TRUE, true);
 
     if (try_melee_spell(target_ptr, ms_ptr) || disturb_melee_spell(target_ptr, ms_ptr))
         return true;
 
     ms_ptr->can_remember = is_original_ap_and_seen(target_ptr, ms_ptr->m_ptr);
-    const auto res = monspell_to_monster(target_ptr, ms_ptr->thrown_spell, ms_ptr->y, ms_ptr->x, m_idx, ms_ptr->target_idx, FALSE);
+    const auto res = monspell_to_monster(target_ptr, ms_ptr->thrown_spell, ms_ptr->y, ms_ptr->x, m_idx, ms_ptr->target_idx, false);
     if (!res.valid)
         return false;
 
index 1c6e4ce..05bf1ca 100644 (file)
@@ -93,7 +93,7 @@ void describe_melee_method(player_type *subject_ptr, mam_type *mam_ptr)
     }
     case RBM_EXPLODE: {
         if (mam_ptr->see_either)
-            disturb(subject_ptr, TRUE, TRUE);
+            disturb(subject_ptr, TRUE, true);
 
         mam_ptr->act = _("爆発した。", "explodes.");
         mam_ptr->explode = true;
index 5c1c4cb..c32c2e9 100644 (file)
@@ -253,7 +253,7 @@ static void explode_monster_by_melee(player_type *subject_ptr, mam_type *mam_ptr
         return;
 
     sound(SOUND_EXPLODE);
-    (void)set_monster_invulner(subject_ptr, mam_ptr->m_idx, 0, FALSE);
+    (void)set_monster_invulner(subject_ptr, mam_ptr->m_idx, 0, false);
     mon_take_hit_mon(subject_ptr, mam_ptr->m_idx, mam_ptr->m_ptr->hp + 1, &mam_ptr->dead, &mam_ptr->fear,
         _("は爆発して粉々になった。", " explodes into tiny shreds."), mam_ptr->m_idx);
     mam_ptr->blinked = false;
@@ -312,7 +312,7 @@ bool monst_attack_monst(player_type *subject_ptr, MONSTER_IDX m_idx, MONSTER_IDX
         subject_ptr->current_floor_ptr->monster_noise = true;
 
     if (subject_ptr->riding && (m_idx == subject_ptr->riding))
-        disturb(subject_ptr, TRUE, TRUE);
+        disturb(subject_ptr, TRUE, true);
 
     repeat_melee(subject_ptr, mam_ptr);
     explode_monster_by_melee(subject_ptr, mam_ptr);
index 9b6b94a..2f4b37e 100644 (file)
@@ -131,7 +131,7 @@ bool create_ammo(player_type *creature_ptr)
         describe_flavor(creature_ptr, o_name, q_ptr, 0);
         msg_format(_("%sを作った。", "You make some ammo."), o_name);
         if (slot >= 0)
-            autopick_alter_item(creature_ptr, slot, FALSE);
+            autopick_alter_item(creature_ptr, slot, false);
 
         cave_alter_feat(creature_ptr, y, x, FF_HURT_ROCK);
         creature_ptr->update |= PU_FLOW;
@@ -160,7 +160,7 @@ bool create_ammo(player_type *creature_ptr)
         vary_item(creature_ptr, item, -1);
         s16b slot = store_item_to_inventory(creature_ptr, q_ptr);
         if (slot >= 0)
-            autopick_alter_item(creature_ptr, slot, FALSE);
+            autopick_alter_item(creature_ptr, slot, false);
 
         return true;
     }
@@ -187,7 +187,7 @@ bool create_ammo(player_type *creature_ptr)
         vary_item(creature_ptr, item, -1);
         s16b slot = store_item_to_inventory(creature_ptr, q_ptr);
         if (slot >= 0)
-            autopick_alter_item(creature_ptr, slot, FALSE);
+            autopick_alter_item(creature_ptr, slot, false);
 
         return true;
     }
index 0f765c6..b2328f2 100644 (file)
@@ -66,7 +66,7 @@ bool cast_berserk_spell(player_type *caster_ptr, mind_berserker_type spell)
 
         y = caster_ptr->y + ddy[dir];
         x = caster_ptr->x + ddx[dir];
-        exe_movement(caster_ptr, dir, easy_disarm, TRUE);
+        exe_movement(caster_ptr, dir, easy_disarm, true);
         break;
     }
     case QUAKE:
index 354d084..18e9f9d 100644 (file)
@@ -87,10 +87,10 @@ bool do_cmd_cast_learned(player_type *caster_ptr)
         msg_print(_("魔法をうまく唱えられなかった。", "You failed to concentrate hard enough!"));
         sound(SOUND_FAIL);
         if (RF_ABILITY_SUMMON_MASK.has(spell_type))
-            cast = cast_learned_spell(caster_ptr, spell_type, FALSE);
+            cast = cast_learned_spell(caster_ptr, spell_type, false);
     } else {
         sound(SOUND_ZAP);
-        cast = cast_learned_spell(caster_ptr, spell_type, TRUE);
+        cast = cast_learned_spell(caster_ptr, spell_type, true);
         if (!cast)
             return false;
     }
index dd25d6b..3cf55b1 100644 (file)
@@ -62,7 +62,7 @@ bool rodeo(player_type *creature_ptr)
         set_pet(creature_ptr, m_ptr);
     } else {
         msg_format(_("%sに振り落とされた!", "You have been thrown off by %s."), m_name);
-        process_fall_off_horse(creature_ptr, 1, TRUE);
+        process_fall_off_horse(creature_ptr, 1, true);
 
         /* 落馬処理に失敗してもとにかく乗馬解除 */
         creature_ptr->riding = 0;
index 50674a8..6300dee 100644 (file)
@@ -121,7 +121,7 @@ void set_lightspeed(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
 }
@@ -162,7 +162,7 @@ bool set_tim_sh_force(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     handle_stuff(creature_ptr);
     return true;
 }
@@ -226,7 +226,7 @@ bool shock_power(player_type *caster_ptr)
     m_ptr->fy = ty;
     m_ptr->fx = tx;
 
-    update_monster(caster_ptr, m_idx, TRUE);
+    update_monster(caster_ptr, m_idx, true);
     lite_spot(caster_ptr, oy, ox);
     lite_spot(caster_ptr, ty, tx);
 
@@ -261,7 +261,7 @@ bool cast_force_spell(player_type *caster_ptr, mind_force_trainer_type spell)
         (void)lite_area(caster_ptr, damroll(2, (plev / 2)), (plev / 10) + 1);
         break;
     case FLYING_TECHNIQUE:
-        set_tim_levitation(caster_ptr, randint1(30) + 30 + boost / 5, FALSE);
+        set_tim_levitation(caster_ptr, randint1(30) + 30 + boost / 5, false);
         break;
     case KAMEHAMEHA:
         project_length = plev / 8 + 3;
@@ -271,7 +271,7 @@ bool cast_force_spell(player_type *caster_ptr, mind_force_trainer_type spell)
         fire_beam(caster_ptr, GF_MISSILE, dir, damroll(5 + ((plev - 1) / 5) + boost / 10, 5));
         break;
     case MAGIC_RESISTANCE:
-        set_resist_magic(caster_ptr, randint1(20) + 20 + boost / 5, FALSE);
+        set_resist_magic(caster_ptr, randint1(20) + 20 + boost / 5, false);
         break;
     case IMPROVE_FORCE:
         msg_print(_("気を練った。", "You improved the Force."));
@@ -286,7 +286,7 @@ bool cast_force_spell(player_type *caster_ptr, mind_force_trainer_type spell)
 
         break;
     case AURA_OF_FORCE:
-        set_tim_sh_force(caster_ptr, randint1(plev / 2) + 15 + boost / 7, FALSE);
+        set_tim_sh_force(caster_ptr, randint1(plev / 2) + 15 + boost / 7, false);
         break;
     case SHOCK_POWER:
         return shock_power(caster_ptr);
@@ -332,7 +332,7 @@ bool cast_force_spell(player_type *caster_ptr, mind_force_trainer_type spell)
         fire_beam(caster_ptr, GF_MANA, dir, damroll(10 + (plev / 2) + boost * 3 / 10, 15));
         break;
     case LIGHT_SPEED:
-        set_lightspeed(caster_ptr, randint1(16) + 16 + boost / 20, FALSE);
+        set_lightspeed(caster_ptr, randint1(16) + 16 + boost / 20, false);
         break;
     default:
         msg_print(_("なに?", "Zap?"));
index 06fa03c..c27aebd 100644 (file)
@@ -43,7 +43,7 @@ bool set_resist_magic(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
     return true;
index b341f6b..e378693 100644 (file)
@@ -141,7 +141,7 @@ bool cast_mindcrafter_spell(player_type *caster_ptr, mind_mindcrafter_type spell
         if (plev > 44) {
             chg_virtue(caster_ptr, V_KNOWLEDGE, 1);
             chg_virtue(caster_ptr, V_ENLIGHTEN, 1);
-            wiz_lite(caster_ptr, FALSE);
+            wiz_lite(caster_ptr, false);
         } else if (plev > 19)
             map_area(caster_ptr, DETECT_RAD_MAP);
 
@@ -150,7 +150,7 @@ bool cast_mindcrafter_spell(player_type *caster_ptr, mind_mindcrafter_type spell
             if (plev > 14)
                 b |= detect_monsters_invis(caster_ptr, DETECT_RAD_DEFAULT);
             if (plev > 4) {
-                b |= detect_traps(caster_ptr, DETECT_RAD_DEFAULT, TRUE);
+                b |= detect_traps(caster_ptr, DETECT_RAD_DEFAULT, true);
                 b |= detect_doors(caster_ptr, DETECT_RAD_DEFAULT);
             }
         } else {
@@ -158,7 +158,7 @@ bool cast_mindcrafter_spell(player_type *caster_ptr, mind_mindcrafter_type spell
         }
 
         if ((plev > 24) && (plev < 40))
-            set_tim_esp(caster_ptr, (TIME_EFFECT)plev, FALSE);
+            set_tim_esp(caster_ptr, (TIME_EFFECT)plev, false);
 
         if (!b)
             msg_print(_("安全な気がする。", "You feel safe."));
@@ -197,17 +197,17 @@ bool cast_mindcrafter_spell(player_type *caster_ptr, mind_mindcrafter_type spell
         fire_ball(caster_ptr, GF_TELEKINESIS, dir, damroll(8 + ((plev - 5) / 4), 8), (plev > 20 ? (plev - 20) / 8 + 1 : 0));
         break;
     case CHARACTER_ARMOR:
-        set_shield(caster_ptr, (TIME_EFFECT)plev, FALSE);
+        set_shield(caster_ptr, (TIME_EFFECT)plev, false);
         if (plev > 14)
-            set_oppose_acid(caster_ptr, (TIME_EFFECT)plev, FALSE);
+            set_oppose_acid(caster_ptr, (TIME_EFFECT)plev, false);
         if (plev > 19)
-            set_oppose_fire(caster_ptr, (TIME_EFFECT)plev, FALSE);
+            set_oppose_fire(caster_ptr, (TIME_EFFECT)plev, false);
         if (plev > 24)
-            set_oppose_cold(caster_ptr, (TIME_EFFECT)plev, FALSE);
+            set_oppose_cold(caster_ptr, (TIME_EFFECT)plev, false);
         if (plev > 29)
-            set_oppose_elec(caster_ptr, (TIME_EFFECT)plev, FALSE);
+            set_oppose_elec(caster_ptr, (TIME_EFFECT)plev, false);
         if (plev > 34)
-            set_oppose_pois(caster_ptr, (TIME_EFFECT)plev, FALSE);
+            set_oppose_pois(caster_ptr, (TIME_EFFECT)plev, false);
 
         break;
     case PSYCHOMETRY:
@@ -230,14 +230,14 @@ bool cast_mindcrafter_spell(player_type *caster_ptr, mind_mindcrafter_type spell
             hp_player(caster_ptr, plev);
 
         t = 10 + randint1((plev * 3) / 2);
-        set_hero(caster_ptr, t, FALSE);
-        (void)set_fast(caster_ptr, t, FALSE);
+        set_hero(caster_ptr, t, false);
+        (void)set_fast(caster_ptr, t, false);
         break;
     case TELEKINESIS:
         if (!get_aim_dir(caster_ptr, &dir))
             return false;
 
-        fetch_item(caster_ptr, dir, plev * 15, FALSE);
+        fetch_item(caster_ptr, dir, plev * 15, false);
         break;
     case PSYCHIC_DRAIN:
         if (!get_aim_dir(caster_ptr, &dir))
index 5a428de..aebe2fe 100644 (file)
@@ -209,7 +209,7 @@ bool binding_field(player_type *caster_ptr, HIT_POINT dam)
                 && centersign * ((point_x[1] - x) * (point_y[2] - y) - (point_y[1] - y) * (point_x[2] - x)) >= 0
                 && centersign * ((point_x[2] - x) * (point_y[0] - y) - (point_y[2] - y) * (point_x[0] - x)) >= 0) {
                 if (player_has_los_bold(caster_ptr, y, x) && projectable(caster_ptr, caster_ptr->y, caster_ptr->x, y, x)) {
-                    (void)affect_monster(caster_ptr, 0, 0, y, x, dam, GF_MANA, (PROJECT_GRID | PROJECT_ITEM | PROJECT_KILL | PROJECT_JUMP), TRUE);
+                    (void)affect_monster(caster_ptr, 0, 0, y, x, dam, GF_MANA, (PROJECT_GRID | PROJECT_ITEM | PROJECT_KILL | PROJECT_JUMP), true);
                 }
             }
         }
@@ -337,7 +337,7 @@ bool set_multishadow(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
     return true;
@@ -379,7 +379,7 @@ bool set_dustrobe(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
     return true;
@@ -423,7 +423,7 @@ bool cast_mirror_spell(player_type *caster_ptr, mind_mirror_master_type spell)
         if (plev + tmp > 18)
             detect_monsters_invis(caster_ptr, DETECT_RAD_DEFAULT);
         if (plev + tmp > 28)
-            set_tim_esp(caster_ptr, (TIME_EFFECT)plev, FALSE);
+            set_tim_esp(caster_ptr, (TIME_EFFECT)plev, false);
         if (plev + tmp > 38)
             map_area(caster_ptr, DETECT_RAD_MAP);
         if (tmp == 0 && plev < 5) {
@@ -457,7 +457,7 @@ bool cast_mirror_spell(player_type *caster_ptr, mind_mirror_master_type spell)
         teleport_player(caster_ptr, plev * 5, TELEPORT_SPONTANEOUS);
         break;
     case ROBE_DUST:
-        set_dustrobe(caster_ptr, 20 + randint1(20), FALSE);
+        set_dustrobe(caster_ptr, 20 + randint1(20), false);
         break;
     case BANISHING_MIRROR:
         if (!get_aim_dir(caster_ptr, &dir))
@@ -490,12 +490,12 @@ bool cast_mirror_spell(player_type *caster_ptr, mind_mirror_master_type spell)
         break;
     case WATER_SHIELD:
         t = 20 + randint1(20);
-        set_shield(caster_ptr, t, FALSE);
+        set_shield(caster_ptr, t, false);
         if (plev > 31)
-            set_tim_reflect(caster_ptr, t, FALSE);
+            set_tim_reflect(caster_ptr, t, false);
 
         if (plev > 39)
-            set_resist_magic(caster_ptr, t, FALSE);
+            set_resist_magic(caster_ptr, t, false);
 
         break;
     case SUPER_RAY:
@@ -526,7 +526,7 @@ bool cast_mirror_spell(player_type *caster_ptr, mind_mirror_master_type spell)
     case RECALL_MIRROR:
         return recall_player(caster_ptr, randint0(21) + 15);
     case MULTI_SHADOW:
-        set_multishadow(caster_ptr, 6 + randint1(6), FALSE);
+        set_multishadow(caster_ptr, 6 + randint1(6), false);
         break;
     case BINDING_FIELD:
         if (!binding_field(caster_ptr, plev * 11 + 5))
@@ -534,7 +534,7 @@ bool cast_mirror_spell(player_type *caster_ptr, mind_mirror_master_type spell)
 
         break;
     case RUFFNOR_MIRROR:
-        (void)set_invuln(caster_ptr, randint1(4) + 4, FALSE);
+        (void)set_invuln(caster_ptr, randint1(4) + 4, false);
         break;
     default:
         msg_print(_("なに?", "Zap?"));
index 0deaca6..bbd8fb8 100644 (file)
@@ -166,7 +166,7 @@ bool rush_attack(player_type *attacker_ptr, bool *mdeath)
 
         if (!player_bold(attacker_ptr, ty, tx))
             teleport_player_to(attacker_ptr, ty, tx, TELEPORT_NONMAGICAL);
-        update_monster(attacker_ptr, floor_ptr->grid_array[ny][nx].m_idx, TRUE);
+        update_monster(attacker_ptr, floor_ptr->grid_array[ny][nx].m_idx, true);
 
         m_ptr = &floor_ptr->m_list[floor_ptr->grid_array[ny][nx].m_idx];
         if (tm_idx != floor_ptr->grid_array[ny][nx].m_idx) {
@@ -324,7 +324,7 @@ bool set_superstealth(player_type *creature_ptr, bool set)
     creature_ptr->redraw |= (PR_STATUS);
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     return true;
 }
 
@@ -346,11 +346,11 @@ bool cast_ninja_spell(player_type *caster_ptr, mind_ninja_type spell)
         break;
     case DETECT_NEAR:
         if (plev > 44)
-            wiz_lite(caster_ptr, TRUE);
+            wiz_lite(caster_ptr, true);
 
         detect_monsters_normal(caster_ptr, DETECT_RAD_DEFAULT);
         if (plev > 4) {
-            detect_traps(caster_ptr, DETECT_RAD_DEFAULT, TRUE);
+            detect_traps(caster_ptr, DETECT_RAD_DEFAULT, true);
             detect_doors(caster_ptr, DETECT_RAD_DEFAULT);
             detect_stairs(caster_ptr, DETECT_RAD_DEFAULT);
         }
@@ -387,12 +387,12 @@ bool cast_ninja_spell(player_type *caster_ptr, mind_ninja_type spell)
     case ANCIENT_KNOWLEDGE:
         return ident_spell(caster_ptr, FALSE, TV_NONE);
     case FLOATING:
-        set_tim_levitation(caster_ptr, randint1(20) + 20, FALSE);
+        set_tim_levitation(caster_ptr, randint1(20) + 20, false);
         break;
     case HIDE_FLAMES:
         fire_ball(caster_ptr, GF_FIRE, 0, 50 + plev, plev / 10 + 2);
         teleport_player(caster_ptr, 30, TELEPORT_SPONTANEOUS);
-        set_oppose_fire(caster_ptr, (TIME_EFFECT)plev, FALSE);
+        set_oppose_fire(caster_ptr, (TIME_EFFECT)plev, false);
         break;
     case NYUSIN:
         return rush_attack(caster_ptr, NULL);
@@ -443,8 +443,8 @@ bool cast_ninja_spell(player_type *caster_ptr, mind_ninja_type spell)
         create_rune_explosion(caster_ptr, caster_ptr->y, caster_ptr->x);
         break;
     case HIDE_MUD:
-        (void)set_pass_wall(caster_ptr, randint1(plev / 2) + plev / 2, FALSE);
-        set_oppose_acid(caster_ptr, (TIME_EFFECT)plev, FALSE);
+        (void)set_pass_wall(caster_ptr, randint1(plev / 2) + plev / 2, false);
+        set_oppose_acid(caster_ptr, (TIME_EFFECT)plev, false);
         break;
     case HIDE_MIST:
         fire_ball(caster_ptr, GF_POIS, 0, 75 + plev * 2 / 3, plev / 5 + 2);
@@ -469,7 +469,7 @@ bool cast_ninja_spell(player_type *caster_ptr, mind_ninja_type spell)
         break;
     }
     case ALTER_EGO:
-        set_multishadow(caster_ptr, 6 + randint1(6), FALSE);
+        set_multishadow(caster_ptr, 6 + randint1(6), false);
         break;
     default:
         msg_print(_("なに?", "Zap?"));
index 6571e26..ed38dd6 100644 (file)
@@ -262,7 +262,7 @@ static void describe_attack_evasion(player_type *target_ptr, monap_type *monap_p
     if (!monap_ptr->m_ptr->ml)
         return;
 
-    disturb(target_ptr, TRUE, TRUE);
+    disturb(target_ptr, TRUE, true);
 #ifdef JP
     if (monap_ptr->abbreviate)
         msg_format("%sかわした。", (target_ptr->special_attack & ATTACK_SUIKEN) ? "奇妙な動きで" : "");
@@ -308,7 +308,7 @@ static void gain_armor_exp(player_type *target_ptr, monap_type *monap_ptr)
  */
 static bool process_monster_attack_hit(player_type *target_ptr, monap_type *monap_ptr)
 {
-    disturb(target_ptr, TRUE, TRUE);
+    disturb(target_ptr, TRUE, true);
     if (effect_protecion_from_evil(target_ptr, monap_ptr))
         return false;
 
@@ -470,7 +470,7 @@ static void eyes_on_eyes(player_type *target_ptr, monap_type *monap_ptr)
 #endif
     project(target_ptr, 0, 0, monap_ptr->m_ptr->fy, monap_ptr->m_ptr->fx, monap_ptr->get_damage, GF_MISSILE, PROJECT_KILL);
     if (target_ptr->tim_eyeeye)
-        set_tim_eyeeye(target_ptr, target_ptr->tim_eyeeye - 5, TRUE);
+        set_tim_eyeeye(target_ptr, target_ptr->tim_eyeeye - 5, true);
 }
 
 static void thief_teleport(player_type *target_ptr, monap_type *monap_ptr)
index 836e29a..97d6ae4 100644 (file)
@@ -355,7 +355,7 @@ void switch_monster_blow_to_player(player_type *target_ptr, monap_type *monap_pt
 
         monap_ptr->obvious = true;
         msg_print(_("酸を浴びせられた!", "You are covered in acid!"));
-        monap_ptr->get_damage += acid_dam(target_ptr, monap_ptr->damage, monap_ptr->ddesc, FALSE);
+        monap_ptr->get_damage += acid_dam(target_ptr, monap_ptr->damage, monap_ptr->ddesc, false);
         update_creature(target_ptr);
         update_smart_learn(target_ptr, monap_ptr->m_idx, DRS_ACID);
         break;
@@ -366,7 +366,7 @@ void switch_monster_blow_to_player(player_type *target_ptr, monap_type *monap_pt
 
         monap_ptr->obvious = true;
         msg_print(_("電撃を浴びせられた!", "You are struck by electricity!"));
-        monap_ptr->get_damage += elec_dam(target_ptr, monap_ptr->damage, monap_ptr->ddesc, FALSE);
+        monap_ptr->get_damage += elec_dam(target_ptr, monap_ptr->damage, monap_ptr->ddesc, false);
         update_smart_learn(target_ptr, monap_ptr->m_idx, DRS_ELEC);
         break;
     }
@@ -376,7 +376,7 @@ void switch_monster_blow_to_player(player_type *target_ptr, monap_type *monap_pt
 
         monap_ptr->obvious = true;
         msg_print(_("全身が炎に包まれた!", "You are enveloped in flames!"));
-        monap_ptr->get_damage += fire_dam(target_ptr, monap_ptr->damage, monap_ptr->ddesc, FALSE);
+        monap_ptr->get_damage += fire_dam(target_ptr, monap_ptr->damage, monap_ptr->ddesc, false);
         update_smart_learn(target_ptr, monap_ptr->m_idx, DRS_FIRE);
         break;
     }
@@ -386,7 +386,7 @@ void switch_monster_blow_to_player(player_type *target_ptr, monap_type *monap_pt
 
         monap_ptr->obvious = true;
         msg_print(_("全身が冷気で覆われた!", "You are covered with frost!"));
-        monap_ptr->get_damage += cold_dam(target_ptr, monap_ptr->damage, monap_ptr->ddesc, FALSE);
+        monap_ptr->get_damage += cold_dam(target_ptr, monap_ptr->damage, monap_ptr->ddesc, false);
         update_smart_learn(target_ptr, monap_ptr->m_idx, DRS_COLD);
         break;
     }
index 544d2f4..9f9eb26 100644 (file)
@@ -153,7 +153,7 @@ static void bash_glass_door(player_type *target_ptr, turn_flags *turn_flags_ptr,
         msg_print(_("ドアを叩き開ける音がした!", "You hear a door burst open!"));
 
     if (disturb_minor)
-        disturb(target_ptr, FALSE, FALSE);
+        disturb(target_ptr, FALSE, false);
 
     turn_flags_ptr->did_bash_door = true;
     turn_flags_ptr->do_move = true;
@@ -414,7 +414,7 @@ bool process_monster_movement(player_type *target_ptr, turn_flags *turn_flags_pt
             && (disturb_move || (disturb_near && m_ptr->mflag.has(MFLAG::VIEW) && projectable(target_ptr, target_ptr->y, target_ptr->x, m_ptr->fy, m_ptr->fx))
                 || (disturb_high && ap_r_ptr->r_tkills && ap_r_ptr->level >= target_ptr->lev))) {
             if (is_hostile(m_ptr))
-                disturb(target_ptr, FALSE, TRUE);
+                disturb(target_ptr, FALSE, true);
         }
 
         bool is_takable_or_killable = !g_ptr->o_idx_list.empty();
@@ -458,7 +458,7 @@ void process_speak_sound(player_type *target_ptr, MONSTER_IDX m_idx, POSITION oy
     monster_race *ap_r_ptr = &r_info[m_ptr->ap_r_idx];
     if (m_ptr->ap_r_idx == MON_CYBER && one_in_(CYBERNOISE) && !m_ptr->ml && (m_ptr->cdis <= MAX_SIGHT)) {
         if (disturb_minor)
-            disturb(target_ptr, FALSE, FALSE);
+            disturb(target_ptr, FALSE, false);
         msg_print(_("重厚な足音が聞こえた。", "You hear heavy steps."));
     }
 
index daed9fc..88dc98e 100644 (file)
@@ -51,7 +51,7 @@ void delete_monster_idx(player_type *player_ptr, MONSTER_IDX i)
     if (monster_fear_remaining(m_ptr))
         (void)set_monster_monfear(player_ptr, i, 0);
     if (monster_invulner_remaining(m_ptr))
-        (void)set_monster_invulner(player_ptr, i, 0, FALSE);
+        (void)set_monster_invulner(player_ptr, i, 0, false);
 
     if (i == target_who)
         target_who = 0;
index 1cceb30..54af648 100644 (file)
@@ -93,7 +93,7 @@ bool runaway_monster(player_type *target_ptr, turn_flags *turn_flags_ptr, MONSTE
         msg_format(
             _("%sは傷の痛さの余りあなたの束縛から逃れようとしている。", "%^s seems to be in so much pain and tries to escape from your restriction."), m_name);
         riding_pinch++;
-        disturb(target_ptr, TRUE, TRUE);
+        disturb(target_ptr, TRUE, true);
         return false;
     }
 
index 8c65ee6..80de9f1 100644 (file)
@@ -371,7 +371,7 @@ bool place_monster_one(player_type *player_ptr, MONSTER_IDX who, POSITION y, POS
         player_ptr->update |= (PU_MON_LITE);
     else if ((r_ptr->flags7 & RF7_HAS_LD_MASK) && !monster_csleep_remaining(m_ptr))
         player_ptr->update |= (PU_MON_LITE);
-    update_monster(player_ptr, g_ptr->m_idx, TRUE);
+    update_monster(player_ptr, g_ptr->m_idx, true);
 
     real_r_ptr(m_ptr)->cur_num++;
 
index 9b666c2..3879162 100644 (file)
@@ -33,7 +33,7 @@ static void vanish_nonunique(player_type *target_ptr, MONSTER_IDX m_idx, bool se
         msg_format(_("%sは消え去った!", "%^s disappears!"), m_name);
     }
 
-    monster_death(target_ptr, m_idx, FALSE);
+    monster_death(target_ptr, m_idx, false);
     delete_monster_idx(target_ptr, m_idx);
     if (is_pet(m_ptr) && !(m_ptr->ml))
         msg_print(_("少しの間悲しい気分になった。", "You feel sad for a moment."));
@@ -67,9 +67,9 @@ static void produce_quantum_effect(player_type *target_ptr, MONSTER_IDX m_idx, b
 
     bool target = one_in_(2);
     if (target)
-        (void)monspell_to_monster(target_ptr, RF_ABILITY::BLINK, m_ptr->fy, m_ptr->fx, m_idx, m_idx, TRUE);
+        (void)monspell_to_monster(target_ptr, RF_ABILITY::BLINK, m_ptr->fy, m_ptr->fx, m_idx, m_idx, true);
     else
-        teleport_player_away(m_idx, target_ptr, 10, TRUE);
+        teleport_player_away(m_idx, target_ptr, 10, true);
 }
 
 /*!
index c2265e1..fa7f480 100644 (file)
@@ -321,7 +321,7 @@ void choose_new_monster(player_type *player_ptr, MONSTER_IDX m_idx, bool born, M
 
     m_ptr->r_idx = r_idx;
     m_ptr->ap_r_idx = r_idx;
-    update_monster(player_ptr, m_idx, FALSE);
+    update_monster(player_ptr, m_idx, false);
     lite_spot(player_ptr, m_ptr->fy, m_ptr->fx);
 
     int old_r_idx = m_ptr->r_idx;
index b4092bf..549b08c 100644 (file)
@@ -612,7 +612,7 @@ void monster_gain_exp(player_type *target_ptr, MONSTER_IDX m_idx, MONRACE_IDX s_
         m_ptr->parent_m_idx = 0;
     }
 
-    update_monster(target_ptr, m_idx, FALSE);
+    update_monster(target_ptr, m_idx, false);
     lite_spot(target_ptr, m_ptr->fy, m_ptr->fx);
 
     if (m_idx == target_ptr->riding)
@@ -678,7 +678,7 @@ bool mon_take_hit(player_type *target_ptr, MONSTER_IDX m_idx, HIT_POINT dam, boo
 
     /* Hack - Cancel any special player stealth magics. -LM- */
     if (target_ptr->special_defense & NINJA_S_STEALTH) {
-        set_superstealth(target_ptr, FALSE);
+        set_superstealth(target_ptr, false);
     }
 
     /* Genocided by chaos patron */
@@ -961,7 +961,7 @@ bool mon_take_hit(player_type *target_ptr, MONSTER_IDX m_idx, HIT_POINT dam, boo
         }
 
         /* Generate treasure */
-        monster_death(target_ptr, m_idx, TRUE);
+        monster_death(target_ptr, m_idx, true);
 
         // @todo デッドアタック扱いにしてここから削除したい.
         bool is_special_summon = m_ptr->r_idx == MON_IKETA;
index 6442cca..e28b7ab 100644 (file)
@@ -75,13 +75,13 @@ bool update_riding_monster(player_type *target_ptr, turn_flags *turn_flags_ptr,
     if (g_ptr->m_idx) {
         y_ptr->fy = oy;
         y_ptr->fx = ox;
-        update_monster(target_ptr, g_ptr->m_idx, TRUE);
+        update_monster(target_ptr, g_ptr->m_idx, true);
     }
 
     g_ptr->m_idx = m_idx;
     m_ptr->fy = ny;
     m_ptr->fx = nx;
-    update_monster(target_ptr, m_idx, TRUE);
+    update_monster(target_ptr, m_idx, true);
 
     lite_spot(target_ptr, oy, ox);
     lite_spot(target_ptr, ny, nx);
@@ -456,7 +456,7 @@ static void update_invisible_monster(player_type *subject_ptr, um_type *um_ptr,
         && (projectable(subject_ptr, um_ptr->m_ptr->fy, um_ptr->m_ptr->fx, subject_ptr->y, subject_ptr->x)
             && projectable(subject_ptr, subject_ptr->y, subject_ptr->x, um_ptr->m_ptr->fy, um_ptr->m_ptr->fx))) {
         if (disturb_pets || is_hostile(um_ptr->m_ptr))
-            disturb(subject_ptr, TRUE, TRUE);
+            disturb(subject_ptr, TRUE, true);
     }
 }
 
@@ -475,7 +475,7 @@ static void update_visible_monster(player_type *subject_ptr, um_type *um_ptr, MO
         subject_ptr->redraw |= PR_UHEALTH;
 
     if (um_ptr->do_disturb && (disturb_pets || is_hostile(um_ptr->m_ptr)))
-        disturb(subject_ptr, TRUE, TRUE);
+        disturb(subject_ptr, TRUE, true);
 }
 
 static bool update_clear_monster(player_type *subject_ptr, um_type *um_ptr)
@@ -486,7 +486,7 @@ static bool update_clear_monster(player_type *subject_ptr, um_type *um_ptr)
     if (um_ptr->m_ptr->mflag.has_not(MFLAG::VIEW)) {
         um_ptr->m_ptr->mflag.set(MFLAG::VIEW);
         if (um_ptr->do_disturb && (disturb_pets || is_hostile(um_ptr->m_ptr)))
-            disturb(subject_ptr, TRUE, TRUE);
+            disturb(subject_ptr, TRUE, true);
     }
 
     return true;
@@ -521,7 +521,7 @@ void update_monster(player_type *subject_ptr, MONSTER_IDX m_idx, bool full)
 
     um_ptr->m_ptr->mflag.reset(MFLAG::VIEW);
     if (um_ptr->do_disturb && (disturb_pets || is_hostile(um_ptr->m_ptr)))
-        disturb(subject_ptr, TRUE, TRUE);
+        disturb(subject_ptr, TRUE, true);
 }
 
 /*!
index 965ceef..5662292 100644 (file)
@@ -394,7 +394,7 @@ static errr do_get_mon_num_prep(player_type *player_ptr, const monsterrace_hook_
  */
 errr get_mon_num_prep(player_type *player_ptr, const monsterrace_hook_type hook1, const monsterrace_hook_type hook2)
 {
-    return do_get_mon_num_prep(player_ptr, hook1, hook2, TRUE);
+    return do_get_mon_num_prep(player_ptr, hook1, hook2, true);
 }
 
 /*!
@@ -405,5 +405,5 @@ errr get_mon_num_prep(player_type *player_ptr, const monsterrace_hook_type hook1
  */
 errr get_mon_num_prep_bounty(player_type *player_ptr)
 {
-    return do_get_mon_num_prep(player_ptr, NULL, NULL, FALSE);
+    return do_get_mon_num_prep(player_ptr, NULL, NULL, false);
 }
index 2d1b9eb..54dd079 100644 (file)
@@ -103,7 +103,7 @@ static MonsterSpellResult monspell_to_player_impl(player_type *target_ptr, RF_AB
     case RF_ABILITY::HAND_DOOM: return spell_RF6_HAND_DOOM(target_ptr, y, x, m_idx, 0, MONSTER_TO_PLAYER); /* RF6_HAND_DOOM */
     case RF_ABILITY::HEAL: return spell_RF6_HEAL(target_ptr, m_idx, 0, MONSTER_TO_PLAYER); /* RF6_HEAL */
     case RF_ABILITY::INVULNER: return spell_RF6_INVULNER(target_ptr, m_idx, 0, MONSTER_TO_PLAYER); /* RF6_INVULNER */
-    case RF_ABILITY::BLINK: return spell_RF6_BLINK(target_ptr, m_idx, MONSTER_TO_PLAYER, FALSE); /* RF6_BLINK */
+    case RF_ABILITY::BLINK: return spell_RF6_BLINK(target_ptr, m_idx, MONSTER_TO_PLAYER, false); /* RF6_BLINK */
     case RF_ABILITY::TPORT: return spell_RF6_TPORT(target_ptr, m_idx, MONSTER_TO_PLAYER); /* RF6_TPORT */
     case RF_ABILITY::WORLD: return spell_RF6_WORLD(target_ptr, m_idx); /* RF6_WORLD */
     case RF_ABILITY::SPECIAL: return spell_RF6_SPECIAL(target_ptr, y, x, m_idx, 0, MONSTER_TO_PLAYER);   /* RF6_SPECIAL */
index 004a76f..e76d7b6 100644 (file)
@@ -183,7 +183,7 @@ static bool check_mspell_unexploded(player_type *target_ptr, msa_type *msa_ptr)
 
     if (!spell_is_inate(msa_ptr->thrown_spell)
         && (msa_ptr->in_no_magic_dungeon || (monster_stunned_remaining(msa_ptr->m_ptr) && one_in_(2)) || (randint0(100) < fail_rate))) {
-        disturb(target_ptr, TRUE, TRUE);
+        disturb(target_ptr, TRUE, true);
         msg_format(_("%^sは呪文を唱えようとしたが失敗した。", "%^s tries to cast a spell, but fails."), msa_ptr->m_name);
         return true;
     }
index e985fe6..1a3f3df 100644 (file)
@@ -191,7 +191,7 @@ MonsterSpellResult spell_RF4_BREATH(player_type *target_ptr, int GF_TYPE, POSITI
     }
 
     if (mon_to_player || (mon_to_mon && known && see_either))
-        disturb(target_ptr, TRUE, TRUE);
+        disturb(target_ptr, TRUE, true);
 
     if (!spell_RF4_BREATH_special_message(m_ptr->r_idx, GF_TYPE, m_name)) {
         if (target_ptr->blind) {
index a7e08f7..cb2aa74 100644 (file)
@@ -39,7 +39,7 @@ static MonsterSpellResult spell_RF5_CAUSE(player_type *target_ptr, int GF_TYPE,
     monster_name(target_ptr, t_idx, t_name);
 
     if (TARGET_TYPE == MONSTER_TO_PLAYER) {
-        disturb(target_ptr, TRUE, TRUE);
+        disturb(target_ptr, TRUE, true);
         if (target_ptr->blind)
             msg_format(msg1, m_name);
         else
index 6d2d950..ecd978f 100644 (file)
  */
 static void dispel_player(player_type *creature_ptr)
 {
-    (void)set_fast(creature_ptr, 0, TRUE);
-    set_lightspeed(creature_ptr, 0, TRUE);
-    (void)set_slow(creature_ptr, 0, TRUE);
-    (void)set_shield(creature_ptr, 0, TRUE);
-    (void)set_blessed(creature_ptr, 0, TRUE);
-    (void)set_tsuyoshi(creature_ptr, 0, TRUE);
-    (void)set_hero(creature_ptr, 0, TRUE);
-    (void)set_shero(creature_ptr, 0, TRUE);
-    (void)set_protevil(creature_ptr, 0, TRUE);
-    (void)set_invuln(creature_ptr, 0, TRUE);
-    (void)set_wraith_form(creature_ptr, 0, TRUE);
-    (void)set_pass_wall(creature_ptr, 0, TRUE);
-    (void)set_tim_res_nether(creature_ptr, 0, TRUE);
-    (void)set_tim_res_time(creature_ptr, 0, TRUE);
-    (void)set_tim_reflect(creature_ptr, 0, TRUE);
-    (void)set_multishadow(creature_ptr, 0, TRUE);
-    (void)set_dustrobe(creature_ptr, 0, TRUE);
+    (void)set_fast(creature_ptr, 0, true);
+    set_lightspeed(creature_ptr, 0, true);
+    (void)set_slow(creature_ptr, 0, true);
+    (void)set_shield(creature_ptr, 0, true);
+    (void)set_blessed(creature_ptr, 0, true);
+    (void)set_tsuyoshi(creature_ptr, 0, true);
+    (void)set_hero(creature_ptr, 0, true);
+    (void)set_shero(creature_ptr, 0, true);
+    (void)set_protevil(creature_ptr, 0, true);
+    (void)set_invuln(creature_ptr, 0, true);
+    (void)set_wraith_form(creature_ptr, 0, true);
+    (void)set_pass_wall(creature_ptr, 0, true);
+    (void)set_tim_res_nether(creature_ptr, 0, true);
+    (void)set_tim_res_time(creature_ptr, 0, true);
+    (void)set_tim_reflect(creature_ptr, 0, true);
+    (void)set_multishadow(creature_ptr, 0, true);
+    (void)set_dustrobe(creature_ptr, 0, true);
 
-    (void)set_tim_invis(creature_ptr, 0, TRUE);
-    (void)set_tim_infra(creature_ptr, 0, TRUE);
-    (void)set_tim_esp(creature_ptr, 0, TRUE);
-    (void)set_tim_regen(creature_ptr, 0, TRUE);
-    (void)set_tim_stealth(creature_ptr, 0, TRUE);
-    (void)set_tim_levitation(creature_ptr, 0, TRUE);
-    (void)set_tim_sh_force(creature_ptr, 0, TRUE);
-    (void)set_tim_sh_fire(creature_ptr, 0, TRUE);
-    (void)set_tim_sh_holy(creature_ptr, 0, TRUE);
-    (void)set_tim_eyeeye(creature_ptr, 0, TRUE);
-    (void)set_magicdef(creature_ptr, 0, TRUE);
-    (void)set_resist_magic(creature_ptr, 0, TRUE);
-    (void)set_oppose_acid(creature_ptr, 0, TRUE);
-    (void)set_oppose_elec(creature_ptr, 0, TRUE);
-    (void)set_oppose_fire(creature_ptr, 0, TRUE);
-    (void)set_oppose_cold(creature_ptr, 0, TRUE);
-    (void)set_oppose_pois(creature_ptr, 0, TRUE);
-    (void)set_ultimate_res(creature_ptr, 0, TRUE);
-    (void)set_mimic(creature_ptr, 0, 0, TRUE);
+    (void)set_tim_invis(creature_ptr, 0, true);
+    (void)set_tim_infra(creature_ptr, 0, true);
+    (void)set_tim_esp(creature_ptr, 0, true);
+    (void)set_tim_regen(creature_ptr, 0, true);
+    (void)set_tim_stealth(creature_ptr, 0, true);
+    (void)set_tim_levitation(creature_ptr, 0, true);
+    (void)set_tim_sh_force(creature_ptr, 0, true);
+    (void)set_tim_sh_fire(creature_ptr, 0, true);
+    (void)set_tim_sh_holy(creature_ptr, 0, true);
+    (void)set_tim_eyeeye(creature_ptr, 0, true);
+    (void)set_magicdef(creature_ptr, 0, true);
+    (void)set_resist_magic(creature_ptr, 0, true);
+    (void)set_oppose_acid(creature_ptr, 0, true);
+    (void)set_oppose_elec(creature_ptr, 0, true);
+    (void)set_oppose_fire(creature_ptr, 0, true);
+    (void)set_oppose_cold(creature_ptr, 0, true);
+    (void)set_oppose_pois(creature_ptr, 0, true);
+    (void)set_ultimate_res(creature_ptr, 0, true);
+    (void)set_mimic(creature_ptr, 0, 0, true);
     (void)set_ele_attack(creature_ptr, 0, 0);
     (void)set_ele_immune(creature_ptr, 0, 0);
 
index 073e569..9aafd0b 100644 (file)
@@ -76,8 +76,8 @@ MonsterSpellResult spell_RF6_WORLD(player_type *target_ptr, MONSTER_IDX m_idx)
     monster_type *m_ptr = &target_ptr->current_floor_ptr->m_list[m_idx];
     GAME_TEXT m_name[MAX_NLEN];
     monster_name(target_ptr, m_idx, m_name);
-    disturb(target_ptr, TRUE, TRUE);
-    (void)set_monster_timewalk(target_ptr, randint1(2) + 2, m_ptr->r_idx, TRUE);
+    disturb(target_ptr, TRUE, true);
+    (void)set_monster_timewalk(target_ptr, randint1(2) + 2, m_ptr->r_idx, true);
 
     return MonsterSpellResult::make_valid();
 }
@@ -99,7 +99,7 @@ MonsterSpellResult spell_RF6_BLINK(player_type *target_ptr, MONSTER_IDX m_idx, i
     monster_name(target_ptr, m_idx, m_name);
 
     if (TARGET_TYPE == MONSTER_TO_PLAYER)
-        disturb(target_ptr, TRUE, TRUE);
+        disturb(target_ptr, TRUE, true);
 
     if (!is_quantum_effect && teleport_barrier(target_ptr, m_idx)) {
         if (see_monster(target_ptr, m_idx))
@@ -134,7 +134,7 @@ MonsterSpellResult spell_RF6_TPORT(player_type *target_ptr, MONSTER_IDX m_idx, i
     monster_name(target_ptr, m_idx, m_name);
 
     if (TARGET_TYPE == MONSTER_TO_PLAYER)
-        disturb(target_ptr, TRUE, TRUE);
+        disturb(target_ptr, TRUE, true);
     if (teleport_barrier(target_ptr, m_idx)) {
         if (see_monster(target_ptr, m_idx))
             msg_format(_("魔法のバリアが%^sのテレポートを邪魔した。", "Magic barrier obstructs teleporting of %^s."), m_name);
@@ -246,7 +246,7 @@ MonsterSpellResult spell_RF6_TELE_AWAY(player_type *target_ptr, MONSTER_IDX m_id
                 msg_print(_("弱い者いじめは止めるんだ!", ""));
         }
 
-        teleport_player_away(m_idx, target_ptr, 100, FALSE);
+        teleport_player_away(m_idx, target_ptr, 100, false);
         return res;
     }
 
@@ -281,7 +281,7 @@ MonsterSpellResult spell_RF6_TELE_AWAY(player_type *target_ptr, MONSTER_IDX m_id
     }
 
     if (t_idx == target_ptr->riding)
-        teleport_player_away(m_idx, target_ptr, MAX_SIGHT * 2 + 5, FALSE);
+        teleport_player_away(m_idx, target_ptr, MAX_SIGHT * 2 + 5, false);
     else
         teleport_away(target_ptr, t_idx, MAX_SIGHT * 2 + 5, TELEPORT_PASSIVE);
     set_monster_csleep(target_ptr, t_idx, 0);
@@ -419,7 +419,7 @@ MonsterSpellResult spell_RF6_TRAPS(player_type *target_ptr, POSITION y, POSITION
 {
     GAME_TEXT m_name[MAX_NLEN];
     monster_name(target_ptr, m_idx, m_name);
-    disturb(target_ptr, TRUE, TRUE);
+    disturb(target_ptr, TRUE, true);
 
     if (target_ptr->blind)
         msg_format(_("%^sが何かをつぶやいて邪悪に微笑んだ。", "%^s mumbles, and then cackles evilly."), m_name);
index bd0db47..6135ef1 100644 (file)
@@ -149,7 +149,7 @@ static MonsterSpellResult spell_RF6_SPECIAL_B(player_type *target_ptr, POSITION
     GAME_TEXT m_name[MAX_NLEN];
     monster_name(target_ptr, m_idx, m_name);
 
-    disturb(target_ptr, TRUE, TRUE);
+    disturb(target_ptr, TRUE, true);
     if (one_in_(3) || !direct) {
         simple_monspell_message(target_ptr, m_idx, t_idx, _("%^sは突然視界から消えた!", "You lose sight of %s!"),
             _("%^sは突然急上昇して視界から消えた!", "You lose sight of %s!"), TARGET_TYPE);
@@ -188,7 +188,7 @@ static MonsterSpellResult spell_RF6_SPECIAL_B(player_type *target_ptr, POSITION
             monster_desc(target_ptr, m_name_self, m_ptr, MD_PRON_VISIBLE | MD_POSSESSIVE | MD_OBJECTIVE);
             msg_format(_("攻撃が%s自身を傷つけた!", "The attack of %s has wounded %s!"), m_name, m_name_self);
             project(target_ptr, 0, 0, m_ptr->fy, m_ptr->fx, get_damage, GF_MISSILE, PROJECT_KILL);
-            set_tim_eyeeye(target_ptr, target_ptr->tim_eyeeye - 5, TRUE);
+            set_tim_eyeeye(target_ptr, target_ptr->tim_eyeeye - 5, true);
         }
     }
 
@@ -218,7 +218,7 @@ MonsterSpellResult spell_RF6_SPECIAL(player_type *target_ptr, POSITION y, POSITI
     monster_type *m_ptr = &floor_ptr->m_list[m_idx];
     monster_race *r_ptr = &r_info[m_ptr->r_idx];
 
-    disturb(target_ptr, TRUE, TRUE);
+    disturb(target_ptr, TRUE, true);
     switch (m_ptr->r_idx) {
     case MON_OHMU:
         return MonsterSpellResult::make_invalid();
index eafc464..6eac89e 100644 (file)
@@ -62,7 +62,7 @@ void spell_badstatus_message(player_type *target_ptr, MONSTER_IDX m_idx, MONSTER
     monster_name(target_ptr, t_idx, t_name);
 
     if (TARGET_TYPE == MONSTER_TO_PLAYER) {
-        disturb(target_ptr, TRUE, TRUE);
+        disturb(target_ptr, TRUE, true);
         if (target_ptr->blind)
             msg_format(msg1, m_name);
         else
@@ -120,7 +120,7 @@ MonsterSpellResult spell_RF5_DRAIN_MANA(player_type *target_ptr, POSITION y, POS
     monster_name(target_ptr, t_idx, t_name);
 
     if (TARGET_TYPE == MONSTER_TO_PLAYER) {
-        disturb(target_ptr, TRUE, TRUE);
+        disturb(target_ptr, TRUE, true);
     } else if (TARGET_TYPE == MONSTER_TO_MONSTER && see_monster(target_ptr, m_idx)) {
         /* Basic message */
         msg_format(_("%^sは精神エネルギーを%sから吸いとった。", "%^s draws psychic energy from %s."), m_name, t_name);
@@ -157,7 +157,7 @@ MonsterSpellResult spell_RF5_MIND_BLAST(player_type *target_ptr, POSITION y, POS
     monster_name(target_ptr, t_idx, t_name);
 
     if (TARGET_TYPE == MONSTER_TO_PLAYER) {
-        disturb(target_ptr, TRUE, TRUE);
+        disturb(target_ptr, TRUE, true);
         if (!seen)
             msg_print(_("何かがあなたの精神に念を放っているようだ。", "You feel something focusing on your mind."));
         else
@@ -195,7 +195,7 @@ MonsterSpellResult spell_RF5_BRAIN_SMASH(player_type *target_ptr, POSITION y, PO
     monster_name(target_ptr, t_idx, t_name);
 
     if (TARGET_TYPE == MONSTER_TO_PLAYER) {
-        disturb(target_ptr, TRUE, TRUE);
+        disturb(target_ptr, TRUE, true);
         if (!seen)
             msg_print(_("何かがあなたの精神に念を放っているようだ。", "You feel something focusing on your mind."));
         else
@@ -485,7 +485,7 @@ MonsterSpellResult spell_RF5_SLOW(MONSTER_IDX m_idx, player_type *target_ptr, MO
             _("しかし効力を跳ね返した!", "You resist the effects!"), resist, saving_throw, TARGET_TYPE);
 
         if (!resist && !saving_throw) {
-            (void)set_slow(target_ptr, target_ptr->slow + randint0(4) + 4, FALSE);
+            (void)set_slow(target_ptr, target_ptr->slow + randint0(4) + 4, false);
         }
 
         update_smart_learn(target_ptr, m_idx, DRS_FREE);
@@ -540,7 +540,7 @@ MonsterSpellResult spell_RF6_HEAL(player_type *target_ptr, MONSTER_IDX m_idx, MO
     char m_poss[10];
     monster_desc(target_ptr, m_poss, m_ptr, MD_PRON_VISIBLE | MD_POSSESSIVE);
 
-    disturb(target_ptr, TRUE, TRUE);
+    disturb(target_ptr, TRUE, true);
 
     monspell_message_base(target_ptr, m_idx, t_idx, _("%^sが何かをつぶやいた。", "%^s mumbles."),
         _("%^sは自分の傷に念を集中した。", format("%%^s concentrates on %s wounds.", m_poss)),
@@ -614,7 +614,7 @@ MonsterSpellResult spell_RF6_INVULNER(player_type *target_ptr, MONSTER_IDX m_idx
     }
 
     if (!monster_invulner_remaining(m_ptr))
-        (void)set_monster_invulner(target_ptr, m_idx, randint1(4) + 4, FALSE);
+        (void)set_monster_invulner(target_ptr, m_idx, randint1(4) + 4, false);
 
     return MonsterSpellResult::make_valid();
 }
@@ -632,7 +632,7 @@ MonsterSpellResult spell_RF6_FORGET(player_type *target_ptr, MONSTER_IDX m_idx)
     GAME_TEXT m_name[MAX_NLEN];
     monster_name(target_ptr, m_idx, m_name);
 
-    disturb(target_ptr, TRUE, TRUE);
+    disturb(target_ptr, TRUE, true);
 
     msg_format(_("%^sがあなたの記憶を消去しようとしている。", "%^s tries to blank your mind."), m_name);
 
index 2e02f8c..37d90b7 100644 (file)
@@ -81,7 +81,7 @@ static void decide_summon_kin_caster(
     }
 
     if (mon_to_player || (mon_to_mon && known && see_either))
-        disturb(target_ptr, TRUE, TRUE);
+        disturb(target_ptr, TRUE, true);
 
     if (target_ptr->blind) {
         if (mon_to_player)
@@ -120,7 +120,7 @@ MonsterSpellResult spell_RF6_S_KIN(player_type *target_ptr, POSITION y, POSITION
     monster_name(target_ptr, t_idx, t_name);
     monster_desc(target_ptr, m_poss, m_ptr, MD_PRON_VISIBLE | MD_POSSESSIVE);
 
-    disturb(target_ptr, TRUE, TRUE);
+    disturb(target_ptr, TRUE, true);
     bool known = monster_near_player(floor_ptr, m_idx, t_idx);
     decide_summon_kin_caster(target_ptr, m_idx, t_idx, target_type, m_name, m_poss, known);
     int count = 0;
@@ -648,7 +648,7 @@ MonsterSpellResult spell_RF6_S_HI_UNDEAD(player_type *target_ptr, POSITION y, PO
     GAME_TEXT m_name[MAX_NLEN];
     monster_name(target_ptr, m_idx, m_name);
 
-    disturb(target_ptr, TRUE, TRUE);
+    disturb(target_ptr, TRUE, true);
 
     floor_type *floor_ptr = target_ptr->current_floor_ptr;
     monster_type *m_ptr = &floor_ptr->m_list[m_idx];
index 8fb7a90..bc2cb7c 100644 (file)
@@ -58,7 +58,7 @@ void monspell_message_base(player_type* target_ptr, MONSTER_IDX m_idx, MONSTER_I
     monster_name(target_ptr, t_idx, t_name);
 
     if (mon_to_player || (mon_to_mon && known && see_either))
-        disturb(target_ptr, TRUE, TRUE);
+        disturb(target_ptr, TRUE, true);
 
     if (msg_flag_aux) {
         if (mon_to_player)
index 6ad04be..03ae29e 100644 (file)
@@ -119,16 +119,16 @@ void process_world_aux_mutation(player_type *creature_ptr)
         return;
 
     if (creature_ptr->muta.has(MUTA::BERS_RAGE) && one_in_(3000)) {
-        disturb(creature_ptr, FALSE, TRUE);
+        disturb(creature_ptr, FALSE, true);
         msg_print(_("ウガァァア!", "RAAAAGHH!"));
         msg_print(_("激怒の発作に襲われた!", "You feel a fit of rage coming over you!"));
-        (void)set_shero(creature_ptr, 10 + randint1(creature_ptr->lev), FALSE);
+        (void)set_shero(creature_ptr, 10 + randint1(creature_ptr->lev), false);
         (void)set_afraid(creature_ptr, 0);
     }
 
     if (creature_ptr->muta.has(MUTA::COWARDICE) && (randint1(3000) == 13)) {
         if (!has_resist_fear(creature_ptr)) {
-            disturb(creature_ptr, FALSE, TRUE);
+            disturb(creature_ptr, FALSE, true);
             msg_print(_("とても暗い... とても恐い!", "It's so dark... so scary!"));
             set_afraid(creature_ptr, creature_ptr->afraid + 13 + randint1(26));
         }
@@ -136,7 +136,7 @@ void process_world_aux_mutation(player_type *creature_ptr)
 
     if (creature_ptr->muta.has(MUTA::RTELEPORT) && (randint1(5000) == 88)) {
         if (!has_resist_nexus(creature_ptr) && creature_ptr->muta.has_not(MUTA::VTELEPORT) && !creature_ptr->anti_tele) {
-            disturb(creature_ptr, FALSE, TRUE);
+            disturb(creature_ptr, FALSE, true);
             msg_print(_("あなたの位置は突然ひじょうに不確定になった...", "Your position suddenly seems very uncertain..."));
             msg_print(NULL);
             teleport_player(creature_ptr, 40, TELEPORT_PASSIVE);
@@ -145,7 +145,7 @@ void process_world_aux_mutation(player_type *creature_ptr)
 
     if (creature_ptr->muta.has(MUTA::ALCOHOL) && (randint1(6400) == 321)) {
         if (!has_resist_conf(creature_ptr) && !has_resist_chaos(creature_ptr)) {
-            disturb(creature_ptr, FALSE, TRUE);
+            disturb(creature_ptr, FALSE, true);
             creature_ptr->redraw |= PR_EXTRA;
             msg_print(_("いひきがもーろーとひてきたきがふる...ヒック!", "You feel a SSSCHtupor cOmINg over yOu... *HIC*!"));
         }
@@ -176,14 +176,14 @@ void process_world_aux_mutation(player_type *creature_ptr)
 
     if (creature_ptr->muta.has(MUTA::HALLU) && (randint1(6400) == 42)) {
         if (!has_resist_chaos(creature_ptr)) {
-            disturb(creature_ptr, FALSE, TRUE);
+            disturb(creature_ptr, FALSE, true);
             creature_ptr->redraw |= PR_EXTRA;
             (void)set_image(creature_ptr, creature_ptr->image + randint0(50) + 20);
         }
     }
 
     if (creature_ptr->muta.has(MUTA::FLATULENT) && (randint1(3000) == 13)) {
-        disturb(creature_ptr, FALSE, TRUE);
+        disturb(creature_ptr, FALSE, true);
         msg_print(_("ブゥーーッ!おっと。", "BRRAAAP! Oops."));
         msg_print(NULL);
         fire_ball(creature_ptr, GF_POIS, 0, creature_ptr->lev, 3);
@@ -191,7 +191,7 @@ void process_world_aux_mutation(player_type *creature_ptr)
 
     if (creature_ptr->muta.has(MUTA::PROD_MANA) && !creature_ptr->anti_magic && one_in_(9000)) {
         int dire = 0;
-        disturb(creature_ptr, FALSE, TRUE);
+        disturb(creature_ptr, FALSE, true);
         msg_print(_("魔法のエネルギーが突然あなたの中に流れ込んできた!エネルギーを解放しなければならない!",
             "Magical energy flows through you! You must release it!"));
 
@@ -212,27 +212,27 @@ void process_world_aux_mutation(player_type *creature_ptr)
 
         if (summon_specific(creature_ptr, (pet ? -1 : 0), creature_ptr->y, creature_ptr->x, creature_ptr->current_floor_ptr->dun_level, SUMMON_DEMON, mode)) {
             msg_print(_("あなたはデーモンを引き寄せた!", "You have attracted a demon!"));
-            disturb(creature_ptr, FALSE, TRUE);
+            disturb(creature_ptr, FALSE, true);
         }
     }
 
     if (creature_ptr->muta.has(MUTA::SPEED_FLUX) && one_in_(6000)) {
-        disturb(creature_ptr, FALSE, TRUE);
+        disturb(creature_ptr, FALSE, true);
         if (one_in_(2)) {
             msg_print(_("精力的でなくなった気がする。", "You feel less energetic."));
 
             if (creature_ptr->fast > 0) {
-                set_fast(creature_ptr, 0, TRUE);
+                set_fast(creature_ptr, 0, true);
             } else {
-                set_slow(creature_ptr, randint1(30) + 10, FALSE);
+                set_slow(creature_ptr, randint1(30) + 10, false);
             }
         } else {
             msg_print(_("精力的になった気がする。", "You feel more energetic."));
 
             if (creature_ptr->slow > 0) {
-                set_slow(creature_ptr, 0, TRUE);
+                set_slow(creature_ptr, 0, true);
             } else {
-                set_fast(creature_ptr, randint1(30) + 10, FALSE);
+                set_fast(creature_ptr, randint1(30) + 10, false);
             }
         }
 
@@ -240,7 +240,7 @@ void process_world_aux_mutation(player_type *creature_ptr)
     }
 
     if (creature_ptr->muta.has(MUTA::BANISH_ALL) && one_in_(9000)) {
-        disturb(creature_ptr, FALSE, TRUE);
+        disturb(creature_ptr, FALSE, true);
         msg_print(_("突然ほとんど孤独になった気がする。", "You suddenly feel almost lonely."));
 
         banish_monsters(creature_ptr, 100);
@@ -295,12 +295,12 @@ void process_world_aux_mutation(player_type *creature_ptr)
 
         if (summon_specific(creature_ptr, (pet ? -1 : 0), creature_ptr->y, creature_ptr->x, creature_ptr->current_floor_ptr->dun_level, SUMMON_ANIMAL, mode)) {
             msg_print(_("動物を引き寄せた!", "You have attracted an animal!"));
-            disturb(creature_ptr, FALSE, TRUE);
+            disturb(creature_ptr, FALSE, true);
         }
     }
 
     if (creature_ptr->muta.has(MUTA::RAW_CHAOS) && !creature_ptr->anti_magic && one_in_(8000)) {
-        disturb(creature_ptr, FALSE, TRUE);
+        disturb(creature_ptr, FALSE, true);
         msg_print(_("周りの空間が歪んでいる気がする!", "You feel the world warping around you!"));
         msg_print(NULL);
         fire_ball(creature_ptr, GF_CHAOS, 0, creature_ptr->lev, 8);
@@ -312,10 +312,10 @@ void process_world_aux_mutation(player_type *creature_ptr)
     }
 
     if (creature_ptr->muta.has(MUTA::WRAITH) && !creature_ptr->anti_magic && one_in_(3000)) {
-        disturb(creature_ptr, FALSE, TRUE);
+        disturb(creature_ptr, FALSE, true);
         msg_print(_("非物質化した!", "You feel insubstantial!"));
         msg_print(NULL);
-        set_wraith_form(creature_ptr, randint1(creature_ptr->lev / 2) + (creature_ptr->lev / 2), FALSE);
+        set_wraith_form(creature_ptr, randint1(creature_ptr->lev / 2) + (creature_ptr->lev / 2), false);
     }
 
     if (creature_ptr->muta.has(MUTA::POLY_WOUND) && one_in_(3000))
@@ -356,7 +356,7 @@ void process_world_aux_mutation(player_type *creature_ptr)
         }
 
         if (!sustained) {
-            disturb(creature_ptr, FALSE, TRUE);
+            disturb(creature_ptr, FALSE, true);
             msg_print(_("自分が衰弱していくのが分かる!", "You can feel yourself wasting away!"));
             msg_print(NULL);
             (void)dec_stat(creature_ptr, which_stat, randint1(6) + 6, one_in_(3));
@@ -373,22 +373,22 @@ void process_world_aux_mutation(player_type *creature_ptr)
 
         if (summon_specific(creature_ptr, (pet ? -1 : 0), creature_ptr->y, creature_ptr->x, creature_ptr->current_floor_ptr->dun_level, SUMMON_DRAGON, mode)) {
             msg_print(_("ドラゴンを引き寄せた!", "You have attracted a dragon!"));
-            disturb(creature_ptr, FALSE, TRUE);
+            disturb(creature_ptr, FALSE, true);
         }
     }
 
     if (creature_ptr->muta.has(MUTA::WEIRD_MIND) && !creature_ptr->anti_magic && one_in_(3000)) {
         if (creature_ptr->tim_esp > 0) {
             msg_print(_("精神にもやがかかった!", "Your mind feels cloudy!"));
-            set_tim_esp(creature_ptr, 0, TRUE);
+            set_tim_esp(creature_ptr, 0, true);
         } else {
             msg_print(_("精神が広がった!", "Your mind expands!"));
-            set_tim_esp(creature_ptr, creature_ptr->lev, FALSE);
+            set_tim_esp(creature_ptr, creature_ptr->lev, false);
         }
     }
 
     if (creature_ptr->muta.has(MUTA::NAUSEA) && !creature_ptr->slow_digest && one_in_(9000)) {
-        disturb(creature_ptr, FALSE, TRUE);
+        disturb(creature_ptr, FALSE, true);
         msg_print(_("胃が痙攣し、食事を失った!", "Your stomach roils, and you lose your lunch!"));
         msg_print(NULL);
         set_food(creature_ptr, PY_FOOD_WEAK);
@@ -430,10 +430,10 @@ void process_world_aux_mutation(player_type *creature_ptr)
     }
 
     if (creature_ptr->muta.has(MUTA::INVULN) && !creature_ptr->anti_magic && one_in_(5000)) {
-        disturb(creature_ptr, FALSE, TRUE);
+        disturb(creature_ptr, FALSE, true);
         msg_print(_("無敵な気がする!", "You feel invincible!"));
         msg_print(NULL);
-        (void)set_invuln(creature_ptr, randint1(8) + 8, FALSE);
+        (void)set_invuln(creature_ptr, randint1(8) + 8, false);
     }
 
     if (creature_ptr->muta.has(MUTA::SP_TO_HP) && one_in_(2000)) {
@@ -463,7 +463,7 @@ void process_world_aux_mutation(player_type *creature_ptr)
     }
 
     if (creature_ptr->muta.has(MUTA::DISARM) && one_in_(10000)) {
-        disturb(creature_ptr, FALSE, TRUE);
+        disturb(creature_ptr, FALSE, true);
         msg_print(_("足がもつれて転んだ!", "You trip over your own feet!"));
         take_hit(creature_ptr, DAMAGE_NOESCAPE, randint1(creature_ptr->wt / 6), _("転倒", "tripping"));
         drop_weapons(creature_ptr);
index 148a11b..1ba3869 100644 (file)
@@ -64,7 +64,7 @@ bool activate_breath_fire(player_type *user_ptr, object_type *o_ptr)
 
     fire_breath(user_ptr, GF_FIRE, dir, 200, 2);
     if ((o_ptr->tval == TV_RING) && (o_ptr->sval == SV_RING_FLAMES))
-        (void)set_oppose_fire(user_ptr, randint1(20) + 20, FALSE);
+        (void)set_oppose_fire(user_ptr, randint1(20) + 20, false);
 
     return true;
 }
@@ -77,7 +77,7 @@ bool activate_breath_cold(player_type *user_ptr, object_type *o_ptr)
 
     fire_breath(user_ptr, GF_COLD, dir, 200, 2);
     if ((o_ptr->tval == TV_RING) && (o_ptr->sval == SV_RING_ICE))
-        (void)set_oppose_cold(user_ptr, randint1(20) + 20, FALSE);
+        (void)set_oppose_cold(user_ptr, randint1(20) + 20, false);
 
     return true;
 }
index 2906c2e..c4d37a2 100644 (file)
@@ -6,13 +6,13 @@
 bool activate_genocide(player_type *user_ptr)
 {
     msg_print(_("深青色に輝いている...", "It glows deep blue..."));
-    (void)symbol_genocide(user_ptr, 200, TRUE);
+    (void)symbol_genocide(user_ptr, 200, true);
     return true;
 }
 
 bool activate_mass_genocide(player_type *user_ptr)
 {
     msg_print(_("ひどく鋭い音が流れ出た...", "It lets out a long, shrill note..."));
-    (void)mass_genocide(user_ptr, 200, TRUE);
+    (void)mass_genocide(user_ptr, 200, true);
     return true;
 }
index 3c3d878..c97e466 100644 (file)
@@ -124,12 +124,12 @@ bool activate_judgement(player_type *user_ptr, concptr name)
     msg_format(_("%sは赤く明るく光った!", "The %s flashes bright red!"), name);
     chg_virtue(user_ptr, V_KNOWLEDGE, 1);
     chg_virtue(user_ptr, V_ENLIGHTEN, 1);
-    wiz_lite(user_ptr, FALSE);
+    wiz_lite(user_ptr, false);
 
     msg_format(_("%sはあなたの体力を奪った...", "The %s drains your vitality..."), name);
     take_hit(user_ptr, DAMAGE_LOSELIFE, damroll(3, 8), _("審判の宝石", "the Jewel of Judgement"));
 
-    (void)detect_traps(user_ptr, DETECT_RAD_DEFAULT, TRUE);
+    (void)detect_traps(user_ptr, DETECT_RAD_DEFAULT, true);
     (void)detect_doors(user_ptr, DETECT_RAD_DEFAULT);
     (void)detect_stairs(user_ptr, DETECT_RAD_DEFAULT);
 
@@ -146,7 +146,7 @@ bool activate_telekinesis(player_type *user_ptr, concptr name)
         return false;
 
     msg_format(_("%sを伸ばした。", "You stretched your %s."), name);
-    fetch_item(user_ptr, dir, 500, TRUE);
+    fetch_item(user_ptr, dir, 500, true);
     return true;
 }
 
@@ -317,7 +317,7 @@ bool activate_shikofumi(player_type *user_ptr)
 {
     msg_print(_("力強く四股を踏んだ。", "You stamp. (as if you are in a ring.)"));
     (void)set_afraid(user_ptr, 0);
-    (void)set_hero(user_ptr, randint1(20) + 20, FALSE);
+    (void)set_hero(user_ptr, randint1(20) + 20, false);
     (void)dispel_evil(user_ptr, user_ptr->lev * 3);
     return true;
 }
index af9f14a..9cf5b73 100644 (file)
 bool activate_resistance_elements(player_type *user_ptr)
 {
     msg_print(_("様々な色に輝いている...", "It glows many colours..."));
-    (void)set_oppose_acid(user_ptr, randint1(40) + 40, FALSE);
-    (void)set_oppose_elec(user_ptr, randint1(40) + 40, FALSE);
-    (void)set_oppose_fire(user_ptr, randint1(40) + 40, FALSE);
-    (void)set_oppose_cold(user_ptr, randint1(40) + 40, FALSE);
-    (void)set_oppose_pois(user_ptr, randint1(40) + 40, FALSE);
+    (void)set_oppose_acid(user_ptr, randint1(40) + 40, false);
+    (void)set_oppose_elec(user_ptr, randint1(40) + 40, false);
+    (void)set_oppose_fire(user_ptr, randint1(40) + 40, false);
+    (void)set_oppose_cold(user_ptr, randint1(40) + 40, false);
+    (void)set_oppose_pois(user_ptr, randint1(40) + 40, false);
     return true;
 }
 
@@ -38,7 +38,7 @@ bool activate_acid_ball_and_resistance(player_type *user_ptr, concptr name)
         return false;
 
     (void)fire_ball(user_ptr, GF_ACID, dir, 100, 2);
-    (void)set_oppose_acid(user_ptr, randint1(20) + 20, FALSE);
+    (void)set_oppose_acid(user_ptr, randint1(20) + 20, false);
 
     return true;
 }
@@ -58,7 +58,7 @@ bool activate_elec_ball_and_resistance(player_type *user_ptr, concptr name)
         return false;
 
     (void)fire_ball(user_ptr, GF_ELEC, dir, 100, 2);
-    (void)set_oppose_elec(user_ptr, randint1(20) + 20, FALSE);
+    (void)set_oppose_elec(user_ptr, randint1(20) + 20, false);
 
     return true;
 }
@@ -78,7 +78,7 @@ bool activate_fire_ball_and_resistance(player_type *user_ptr, concptr name)
         return false;
 
     (void)fire_ball(user_ptr, GF_FIRE, dir, 100, 2);
-    (void)set_oppose_fire(user_ptr, randint1(20) + 20, FALSE);
+    (void)set_oppose_fire(user_ptr, randint1(20) + 20, false);
 
     return true;
 }
@@ -98,7 +98,7 @@ bool activate_cold_ball_and_resistance(player_type *user_ptr, concptr name)
         return false;
 
     (void)fire_ball(user_ptr, GF_COLD, dir, 100, 2);
-    (void)set_oppose_cold(user_ptr, randint1(20) + 20, FALSE);
+    (void)set_oppose_cold(user_ptr, randint1(20) + 20, false);
 
     return true;
 }
@@ -118,7 +118,7 @@ bool activate_pois_ball_and_resistance(player_type *user_ptr, concptr name)
         return false;
 
     (void)fire_ball(user_ptr, GF_POIS, dir, 100, 2);
-    (void)set_oppose_pois(user_ptr, randint1(20) + 20, FALSE);
+    (void)set_oppose_pois(user_ptr, randint1(20) + 20, false);
 
     return true;
 }
@@ -132,7 +132,7 @@ bool activate_pois_ball_and_resistance(player_type *user_ptr, concptr name)
 bool activate_resistance_acid(player_type *user_ptr, concptr name)
 {
     msg_format(_("%sが黒く輝いた...", "The %s grows black."), name);
-    (void)set_oppose_acid(user_ptr, randint1(20) + 20, FALSE);
+    (void)set_oppose_acid(user_ptr, randint1(20) + 20, false);
     return true;
 }
 
@@ -145,7 +145,7 @@ bool activate_resistance_acid(player_type *user_ptr, concptr name)
 bool activate_resistance_elec(player_type *user_ptr, concptr name)
 {
     msg_format(_("%sが青く輝いた...", "The %s grows blue."), name);
-    (void)set_oppose_elec(user_ptr, randint1(20) + 20, FALSE);
+    (void)set_oppose_elec(user_ptr, randint1(20) + 20, false);
     return true;
 }
 
@@ -158,7 +158,7 @@ bool activate_resistance_elec(player_type *user_ptr, concptr name)
 bool activate_resistance_fire(player_type *user_ptr, concptr name)
 {
     msg_format(_("%sが赤く輝いた...", "The %s grows red."), name);
-    (void)set_oppose_fire(user_ptr, randint1(20) + 20, FALSE);
+    (void)set_oppose_fire(user_ptr, randint1(20) + 20, false);
     return true;
 }
 
@@ -171,7 +171,7 @@ bool activate_resistance_fire(player_type *user_ptr, concptr name)
 bool activate_resistance_cold(player_type *user_ptr, concptr name)
 {
     msg_format(_("%sが白く輝いた...", "The %s grows white."), name);
-    (void)set_oppose_cold(user_ptr, randint1(20) + 20, FALSE);
+    (void)set_oppose_cold(user_ptr, randint1(20) + 20, false);
     return true;
 }
 
@@ -184,7 +184,7 @@ bool activate_resistance_cold(player_type *user_ptr, concptr name)
 bool activate_resistance_pois(player_type *user_ptr, concptr name)
 {
     msg_format(_("%sが緑に輝いた...", "The %s grows green."), name);
-    (void)set_oppose_pois(user_ptr, randint1(20) + 20, FALSE);
+    (void)set_oppose_pois(user_ptr, randint1(20) + 20, false);
     return true;
 }
 
@@ -192,14 +192,14 @@ bool activate_ultimate_resistance(player_type *user_ptr)
 {
     TIME_EFFECT v = randint1(25) + 25;
     (void)set_afraid(user_ptr, 0);
-    (void)set_hero(user_ptr, v, FALSE);
+    (void)set_hero(user_ptr, v, false);
     (void)hp_player(user_ptr, 10);
-    (void)set_blessed(user_ptr, v, FALSE);
-    (void)set_oppose_acid(user_ptr, v, FALSE);
-    (void)set_oppose_elec(user_ptr, v, FALSE);
-    (void)set_oppose_fire(user_ptr, v, FALSE);
-    (void)set_oppose_cold(user_ptr, v, FALSE);
-    (void)set_oppose_pois(user_ptr, v, FALSE);
-    (void)set_ultimate_res(user_ptr, v, FALSE);
+    (void)set_blessed(user_ptr, v, false);
+    (void)set_oppose_acid(user_ptr, v, false);
+    (void)set_oppose_elec(user_ptr, v, false);
+    (void)set_oppose_fire(user_ptr, v, false);
+    (void)set_oppose_cold(user_ptr, v, false);
+    (void)set_oppose_pois(user_ptr, v, false);
+    (void)set_ultimate_res(user_ptr, v, false);
     return true;
 }
index d957c32..3afa8c5 100644 (file)
@@ -185,7 +185,7 @@ bool switch_activation(player_type *user_ptr, object_type **o_ptr_ptr, const act
     case ACT_CHOIR_SINGS:
         msg_print(_("天国の歌が聞こえる...", "A heavenly choir sings..."));
         (void)cure_critical_wounds(user_ptr, 777);
-        (void)set_hero(user_ptr, randint1(25) + 25, FALSE);
+        (void)set_hero(user_ptr, randint1(25) + 25, false);
         return true;
     case ACT_CURE_LW:
         return activate_cure_lw(user_ptr);
@@ -223,39 +223,39 @@ bool switch_activation(player_type *user_ptr, object_type **o_ptr_ptr, const act
         return true;
     case ACT_CURE_MANA_FULL:
         msg_format(_("%sが青白く光った...", "The %s glows palely..."), name);
-        restore_mana(user_ptr, TRUE);
+        restore_mana(user_ptr, true);
         return true;
     case ACT_ESP:
-        (void)set_tim_esp(user_ptr, randint1(30) + 25, FALSE);
+        (void)set_tim_esp(user_ptr, randint1(30) + 25, false);
         return true;
     case ACT_BERSERK:
         (void)berserk(user_ptr, randint1(25) + 25);
         return true;
     case ACT_PROT_EVIL:
         msg_format(_("%sから鋭い音が流れ出た...", "The %s lets out a shrill wail..."), name);
-        (void)set_protevil(user_ptr, randint1(25) + user_ptr->lev * 3, FALSE);
+        (void)set_protevil(user_ptr, randint1(25) + user_ptr->lev * 3, false);
         return true;
     case ACT_RESIST_ALL:
         return activate_resistance_elements(user_ptr);
     case ACT_SPEED:
         msg_print(_("明るく緑色に輝いている...", "It glows bright green..."));
-        (void)set_fast(user_ptr, randint1(20) + 20, FALSE);
+        (void)set_fast(user_ptr, randint1(20) + 20, false);
         return true;
     case ACT_XTRA_SPEED:
         msg_print(_("明るく輝いている...", "It glows brightly..."));
-        (void)set_fast(user_ptr, randint1(75) + 75, FALSE);
+        (void)set_fast(user_ptr, randint1(75) + 75, false);
         return true;
     case ACT_WRAITH:
-        set_wraith_form(user_ptr, randint1(user_ptr->lev / 2) + (user_ptr->lev / 2), FALSE);
+        set_wraith_form(user_ptr, randint1(user_ptr->lev / 2) + (user_ptr->lev / 2), false);
         return true;
     case ACT_INVULN:
-        (void)set_invuln(user_ptr, randint1(8) + 8, FALSE);
+        (void)set_invuln(user_ptr, randint1(8) + 8, false);
         return true;
     case ACT_HERO:
         (void)heroism(user_ptr, 25);
         return true;
     case ACT_HERO_SPEED:
-        (void)set_fast(user_ptr, randint1(50) + 50, FALSE);
+        (void)set_fast(user_ptr, randint1(50) + 50, false);
         (void)heroism(user_ptr, 50);
         return true;
     case ACT_ACID_BALL_AND_RESISTANCE:
@@ -352,7 +352,7 @@ bool switch_activation(player_type *user_ptr, object_type **o_ptr_ptr, const act
     case ACT_STRAIN_HASTE:
         msg_format(_("%sはあなたの体力を奪った...", "The %s drains your vitality..."), name);
         take_hit(user_ptr, DAMAGE_LOSELIFE, damroll(3, 8), _("加速した疲労", "the strain of haste"));
-        (void)set_fast(user_ptr, user_ptr->fast + 25 + randint1(25), FALSE);
+        (void)set_fast(user_ptr, user_ptr->fast + 25 + randint1(25), false);
         return true;
     case ACT_FISHING:
         return fishing(user_ptr);
index 2926934..facf8ae 100644 (file)
@@ -47,7 +47,7 @@ bool activate_escape(player_type *user_ptr)
             return true;
 
         if (autosave_l)
-            do_cmd_save_game(user_ptr, TRUE);
+            do_cmd_save_game(user_ptr, true);
 
         user_ptr->leaving = true;
         return true;
index 2e23a58..d61304c 100644 (file)
@@ -40,7 +40,7 @@ void AmuletEnchanter::apply_magic()
     enchant();
     if ((one_in_(150) && (this->power > 0) && !object_is_cursed(this->o_ptr) && (this->level > 79)) || (this->power > 2)) {
         this->o_ptr->pval = MIN(this->o_ptr->pval, 4);
-        become_random_artifact(owner_ptr, this->o_ptr, FALSE);
+        become_random_artifact(owner_ptr, this->o_ptr, false);
         return;
     }
 
@@ -103,7 +103,7 @@ void AmuletEnchanter::enchant()
     case SV_AMULET_SEARCHING:
         this->o_ptr->pval = 2 + randint1(6);
         if (this->power >= 0) {
-            add_esp_weak(this->o_ptr, FALSE);
+            add_esp_weak(this->o_ptr, false);
             break;
         }
 
@@ -114,7 +114,7 @@ void AmuletEnchanter::enchant()
     case SV_AMULET_THE_MAGI:
         this->o_ptr->pval = randint1(5) + (PARAMETER_VALUE)m_bonus(5, this->level);
         this->o_ptr->to_a = randint1(5) + (ARMOUR_CLASS)m_bonus(5, this->level);
-        add_esp_weak(this->o_ptr, FALSE);
+        add_esp_weak(this->o_ptr, false);
         break;
     case SV_AMULET_DOOM:
         set_bits(this->o_ptr->ident, IDENT_BROKEN);
index 933993d..2ad690e 100644 (file)
@@ -54,7 +54,7 @@ void apply_magic_armor(player_type *owner_ptr, object_type *o_ptr, DEPTH level,
     case TV_DRAG_ARMOR: {
         /* power > 2 is debug only */
         if (one_in_(50) || (power > 2))
-            become_random_artifact(owner_ptr, o_ptr, FALSE);
+            become_random_artifact(owner_ptr, o_ptr, false);
         break;
     }
     case TV_HARD_ARMOR:
@@ -76,13 +76,13 @@ void apply_magic_armor(player_type *owner_ptr, object_type *o_ptr, DEPTH level,
 
             /* power > 2 is debug only */
             if (one_in_(20) || (power > 2)) {
-                become_random_artifact(owner_ptr, o_ptr, FALSE);
+                become_random_artifact(owner_ptr, o_ptr, false);
                 break;
             }
 
             while (true) {
                 bool okay_flag = true;
-                o_ptr->name2 = get_random_ego(INVEN_BODY, TRUE);
+                o_ptr->name2 = get_random_ego(INVEN_BODY, true);
                 switch (o_ptr->name2) {
                 case EGO_DWARVEN:
                     if (o_ptr->tval != TV_HARD_ARMOR) {
@@ -106,7 +106,7 @@ void apply_magic_armor(player_type *owner_ptr, object_type *o_ptr, DEPTH level,
         } else if (power < -1) {
             while (true) {
                 bool okay_flag = true;
-                o_ptr->name2 = get_random_ego(INVEN_BODY, FALSE);
+                o_ptr->name2 = get_random_ego(INVEN_BODY, false);
 
                 switch (o_ptr->name2) {
                 case EGO_A_DEMON:
@@ -135,12 +135,12 @@ void apply_magic_armor(player_type *owner_ptr, object_type *o_ptr, DEPTH level,
         if (power > 1) {
             /* power > 2 is debug only */
             if (one_in_(20) || (power > 2)) {
-                become_random_artifact(owner_ptr, o_ptr, FALSE);
+                become_random_artifact(owner_ptr, o_ptr, false);
                 break;
             }
 
             while (true) {
-                o_ptr->name2 = get_random_ego(INVEN_SUB_HAND, TRUE);
+                o_ptr->name2 = get_random_ego(INVEN_SUB_HAND, true);
                 if (o_ptr->sval != SV_SMALL_METAL_SHIELD && o_ptr->sval != SV_LARGE_METAL_SHIELD && o_ptr->name2 == EGO_S_DWARVEN) {
                     continue;
                 }
@@ -170,12 +170,12 @@ void apply_magic_armor(player_type *owner_ptr, object_type *o_ptr, DEPTH level,
         if (power > 1) {
             /* power > 2 is debug only */
             if (one_in_(20) || (power > 2)) {
-                become_random_artifact(owner_ptr, o_ptr, FALSE);
+                become_random_artifact(owner_ptr, o_ptr, false);
                 break;
             }
-            o_ptr->name2 = get_random_ego(INVEN_ARMS, TRUE);
+            o_ptr->name2 = get_random_ego(INVEN_ARMS, true);
         } else if (power < -1) {
-            o_ptr->name2 = get_random_ego(INVEN_ARMS, FALSE);
+            o_ptr->name2 = get_random_ego(INVEN_ARMS, false);
         }
 
         break;
@@ -191,13 +191,13 @@ void apply_magic_armor(player_type *owner_ptr, object_type *o_ptr, DEPTH level,
         if (power > 1) {
             /* power > 2 is debug only */
             if (one_in_(20) || (power > 2)) {
-                become_random_artifact(owner_ptr, o_ptr, FALSE);
+                become_random_artifact(owner_ptr, o_ptr, false);
                 break;
             }
 
-            o_ptr->name2 = get_random_ego(INVEN_FEET, TRUE);
+            o_ptr->name2 = get_random_ego(INVEN_FEET, true);
         } else if (power < -1) {
-            o_ptr->name2 = get_random_ego(INVEN_FEET, FALSE);
+            o_ptr->name2 = get_random_ego(INVEN_FEET, false);
         }
 
         break;
@@ -206,13 +206,13 @@ void apply_magic_armor(player_type *owner_ptr, object_type *o_ptr, DEPTH level,
         if (power > 1) {
             /* power > 2 is debug only */
             if (one_in_(20) || (power > 2)) {
-                become_random_artifact(owner_ptr, o_ptr, FALSE);
+                become_random_artifact(owner_ptr, o_ptr, false);
                 break;
             }
 
             while (true) {
                 bool ok_flag = true;
-                o_ptr->name2 = get_random_ego(INVEN_HEAD, TRUE);
+                o_ptr->name2 = get_random_ego(INVEN_HEAD, true);
 
                 switch (o_ptr->name2) {
                 case EGO_TELEPATHY:
@@ -239,7 +239,7 @@ void apply_magic_armor(player_type *owner_ptr, object_type *o_ptr, DEPTH level,
         } else if (power < -1) {
             while (true) {
                 bool ok_flag = true;
-                o_ptr->name2 = get_random_ego(INVEN_HEAD, FALSE);
+                o_ptr->name2 = get_random_ego(INVEN_HEAD, false);
 
                 switch (o_ptr->name2) {
                 case EGO_H_DEMON:
@@ -266,13 +266,13 @@ void apply_magic_armor(player_type *owner_ptr, object_type *o_ptr, DEPTH level,
         if (power > 1) {
             /* power > 2 is debug only */
             if (one_in_(20) || (power > 2)) {
-                become_random_artifact(owner_ptr, o_ptr, FALSE);
+                become_random_artifact(owner_ptr, o_ptr, false);
                 break;
             }
 
             while (true) {
                 bool ok_flag = true;
-                o_ptr->name2 = get_random_ego(INVEN_HEAD, TRUE);
+                o_ptr->name2 = get_random_ego(INVEN_HEAD, true);
                 switch (o_ptr->name2) {
                 case EGO_BRILLIANCE:
                 case EGO_DARK:  
@@ -297,7 +297,7 @@ void apply_magic_armor(player_type *owner_ptr, object_type *o_ptr, DEPTH level,
         } else if (power < -1) {
             while (true) {
                 bool ok_flag = true;
-                o_ptr->name2 = get_random_ego(INVEN_HEAD, FALSE);
+                o_ptr->name2 = get_random_ego(INVEN_HEAD, false);
 
                 switch (o_ptr->name2) {
                 case EGO_ANCIENT_CURSE:
@@ -318,12 +318,12 @@ void apply_magic_armor(player_type *owner_ptr, object_type *o_ptr, DEPTH level,
         if (power > 1) {
             /* power > 2 is debug only */
             if (one_in_(20) || (power > 2)) {
-                become_random_artifact(owner_ptr, o_ptr, FALSE);
+                become_random_artifact(owner_ptr, o_ptr, false);
                 break;
             }
-            o_ptr->name2 = get_random_ego(INVEN_OUTER, TRUE);
+            o_ptr->name2 = get_random_ego(INVEN_OUTER, true);
         } else if (power < -1) {
-            o_ptr->name2 = get_random_ego(INVEN_OUTER, FALSE);
+            o_ptr->name2 = get_random_ego(INVEN_OUTER, false);
         }
 
         break;
index d8fe009..77ba6ab 100644 (file)
@@ -67,13 +67,13 @@ void apply_magic_others(player_type *owner_ptr, object_type *o_ptr, int power)
 
         /* power > 2 is debug only */
         if (power > 2) {
-            become_random_artifact(owner_ptr, o_ptr, FALSE);
+            become_random_artifact(owner_ptr, o_ptr, false);
         } else if ((power == 2) || ((power == 1) && one_in_(3))) {
             while (!o_ptr->name2) {
                 while (true) {
                     bool okay_flag = true;
 
-                    o_ptr->name2 = get_random_ego(INVEN_LITE, TRUE);
+                    o_ptr->name2 = get_random_ego(INVEN_LITE, true);
 
                     switch (o_ptr->name2) {
                     case EGO_LITE_LONG:
@@ -86,7 +86,7 @@ void apply_magic_others(player_type *owner_ptr, object_type *o_ptr, int power)
                 }
             }
         } else if (power == -2) {
-            o_ptr->name2 = get_random_ego(INVEN_LITE, FALSE);
+            o_ptr->name2 = get_random_ego(INVEN_LITE, false);
             switch (o_ptr->name2) {
             case EGO_LITE_DARKNESS:
                 o_ptr->xtra4 = 0;
index b710e0c..ecf05af 100644 (file)
@@ -40,7 +40,7 @@ void RingEnchanter::apply_magic()
     enchant();
     if ((one_in_(400) && (this->power > 0) && !object_is_cursed(this->o_ptr) && (this->level > 79)) || (this->power > 2)) {
         this->o_ptr->pval = MIN(this->o_ptr->pval, 4);
-        become_random_artifact(this->owner_ptr, this->o_ptr, FALSE);
+        become_random_artifact(this->owner_ptr, this->o_ptr, false);
         return;
     }
 
index c3c518d..bdd20a9 100644 (file)
@@ -69,7 +69,7 @@ void apply_magic_weapon(player_type *owner_ptr, object_type *o_ptr, DEPTH level,
         if (power > 1) {
             /* power > 2 is debug only */
             if (one_in_(30) || (power > 2))
-                become_random_artifact(owner_ptr, o_ptr, FALSE);
+                become_random_artifact(owner_ptr, o_ptr, false);
             else
                 o_ptr->name2 = EGO_DIGGING;
         } else if (power < -1) {
@@ -86,11 +86,11 @@ void apply_magic_weapon(player_type *owner_ptr, object_type *o_ptr, DEPTH level,
         if (power > 1) {
             /* power > 2 is debug only */
             if (one_in_(40) || (power > 2)) {
-                become_random_artifact(owner_ptr, o_ptr, FALSE);
+                become_random_artifact(owner_ptr, o_ptr, false);
                 break;
             }
             while (true) {
-                o_ptr->name2 = get_random_ego(INVEN_MAIN_HAND, TRUE);
+                o_ptr->name2 = get_random_ego(INVEN_MAIN_HAND, true);
                 if (o_ptr->name2 == EGO_SHARPNESS && o_ptr->tval != TV_SWORD)
                     continue;
                 if (o_ptr->name2 == EGO_EARTHQUAKES && o_ptr->tval != TV_HAFTED)
@@ -123,7 +123,7 @@ void apply_magic_weapon(player_type *owner_ptr, object_type *o_ptr, DEPTH level,
             if (randint0(MAX_DEPTH) < level) {
                 int n = 0;
                 while (true) {
-                    o_ptr->name2 = get_random_ego(INVEN_MAIN_HAND, FALSE);
+                    o_ptr->name2 = get_random_ego(INVEN_MAIN_HAND, false);
                     if (o_ptr->name2 == EGO_WEIRD && o_ptr->tval != TV_SWORD) {
                         continue;
                     }
@@ -147,11 +147,11 @@ void apply_magic_weapon(player_type *owner_ptr, object_type *o_ptr, DEPTH level,
         if (power > 1) {
             /* power > 2 is debug only */
             if (one_in_(20) || (power > 2)) {
-                become_random_artifact(owner_ptr, o_ptr, FALSE);
+                become_random_artifact(owner_ptr, o_ptr, false);
                 break;
             }
 
-            o_ptr->name2 = get_random_ego(INVEN_BOW, TRUE);
+            o_ptr->name2 = get_random_ego(INVEN_BOW, true);
         }
 
         break;
@@ -162,11 +162,11 @@ void apply_magic_weapon(player_type *owner_ptr, object_type *o_ptr, DEPTH level,
         if (power > 1) {
             /* power > 2 is debug only */
             if (power > 2) {
-                become_random_artifact(owner_ptr, o_ptr, FALSE);
+                become_random_artifact(owner_ptr, o_ptr, false);
                 break;
             }
 
-            o_ptr->name2 = get_random_ego(INVEN_AMMO, TRUE);
+            o_ptr->name2 = get_random_ego(INVEN_AMMO, true);
 
             while (one_in_(10L * o_ptr->dd * o_ptr->ds))
                 o_ptr->dd++;
@@ -175,7 +175,7 @@ void apply_magic_weapon(player_type *owner_ptr, object_type *o_ptr, DEPTH level,
                 o_ptr->dd = 9;
         } else if (power < -1) {
             if (randint0(MAX_DEPTH) < level) {
-                o_ptr->name2 = get_random_ego(INVEN_AMMO, FALSE);
+                o_ptr->name2 = get_random_ego(INVEN_AMMO, false);
             }
         }
 
index e6b043d..1ff9641 100644 (file)
@@ -188,9 +188,9 @@ void add_esp_weak(object_type *o_ptr, bool extra)
 void add_high_telepathy(object_type* o_ptr)
 {
     if (add_esp_strong(o_ptr))
-        add_esp_weak(o_ptr, TRUE);
+        add_esp_weak(o_ptr, true);
     else
-        add_esp_weak(o_ptr, FALSE);
+        add_esp_weak(o_ptr, false);
 }
 
 /*!
@@ -205,7 +205,7 @@ void add_low_telepathy(object_type *o_ptr)
     if (one_in_(2))
         add_esp_strong(o_ptr);
     else
-        add_esp_weak(o_ptr, FALSE);
+        add_esp_weak(o_ptr, false);
 }
 
 /*!
index 4ac882c..9dda6c2 100644 (file)
@@ -238,12 +238,12 @@ void exe_quaff_potion(player_type *creature_ptr, INVENTORY_IDX item)
             msg_print(_("身も心も弱ってきて、精気が抜けていくようだ。", "Your nerves and muscles feel weak and lifeless!"));
             take_hit(creature_ptr, DAMAGE_LOSELIFE, damroll(10, 10), _("破滅の薬", "a potion of Ruination"));
 
-            (void)dec_stat(creature_ptr, A_DEX, 25, TRUE);
-            (void)dec_stat(creature_ptr, A_WIS, 25, TRUE);
-            (void)dec_stat(creature_ptr, A_CON, 25, TRUE);
-            (void)dec_stat(creature_ptr, A_STR, 25, TRUE);
-            (void)dec_stat(creature_ptr, A_CHR, 25, TRUE);
-            (void)dec_stat(creature_ptr, A_INT, 25, TRUE);
+            (void)dec_stat(creature_ptr, A_DEX, 25, true);
+            (void)dec_stat(creature_ptr, A_WIS, 25, true);
+            (void)dec_stat(creature_ptr, A_CON, 25, true);
+            (void)dec_stat(creature_ptr, A_STR, 25, true);
+            (void)dec_stat(creature_ptr, A_CHR, 25, true);
+            (void)dec_stat(creature_ptr, A_INT, 25, true);
             ident = true;
             break;
 
@@ -366,11 +366,11 @@ void exe_quaff_potion(player_type *creature_ptr, INVENTORY_IDX item)
             break;
 
         case SV_POTION_LIFE:
-            ident = life_stream(creature_ptr, TRUE, TRUE);
+            ident = life_stream(creature_ptr, TRUE, true);
             break;
 
         case SV_POTION_RESTORE_MANA:
-            ident = restore_mana(creature_ptr, TRUE);
+            ident = restore_mana(creature_ptr, true);
             break;
 
         case SV_POTION_RESTORE_EXP:
@@ -474,7 +474,7 @@ void exe_quaff_potion(player_type *creature_ptr, INVENTORY_IDX item)
             wiz_lite(creature_ptr, false);
             (void)do_inc_stat(creature_ptr, A_INT);
             (void)do_inc_stat(creature_ptr, A_WIS);
-            (void)detect_traps(creature_ptr, DETECT_RAD_DEFAULT, TRUE);
+            (void)detect_traps(creature_ptr, DETECT_RAD_DEFAULT, true);
             (void)detect_doors(creature_ptr, DETECT_RAD_DEFAULT);
             (void)detect_stairs(creature_ptr, DETECT_RAD_DEFAULT);
             (void)detect_treasure(creature_ptr, DETECT_RAD_DEFAULT);
@@ -543,7 +543,7 @@ void exe_quaff_potion(player_type *creature_ptr, INVENTORY_IDX item)
             msg_print(_("「オクレ兄さん!」", "Brother OKURE!"));
             msg_print(NULL);
             creature_ptr->tsuyoshi = 1;
-            (void)set_tsuyoshi(creature_ptr, 0, TRUE);
+            (void)set_tsuyoshi(creature_ptr, 0, true);
             if (!has_resist_chaos(creature_ptr)) {
                 (void)set_image(creature_ptr, 50 + randint1(50));
             }
index c131fd1..37654d6 100644 (file)
@@ -395,22 +395,22 @@ void exe_read(player_type *creature_ptr, INVENTORY_IDX item, bool known)
             break;
         }
         case SV_SCROLL_GENOCIDE: {
-            (void)symbol_genocide(creature_ptr, 300, TRUE);
+            (void)symbol_genocide(creature_ptr, 300, true);
             ident = true;
             break;
         }
         case SV_SCROLL_MASS_GENOCIDE: {
-            (void)mass_genocide(creature_ptr, 300, TRUE);
+            (void)mass_genocide(creature_ptr, 300, true);
             ident = true;
             break;
         }
         case SV_SCROLL_ACQUIREMENT: {
-            acquirement(creature_ptr, creature_ptr->y, creature_ptr->x, 1, TRUE, FALSE, FALSE);
+            acquirement(creature_ptr, creature_ptr->y, creature_ptr->x, 1, TRUE, FALSE, false);
             ident = true;
             break;
         }
         case SV_SCROLL_STAR_ACQUIREMENT: {
-            acquirement(creature_ptr, creature_ptr->y, creature_ptr->x, randint1(2) + 1, TRUE, FALSE, FALSE);
+            acquirement(creature_ptr, creature_ptr->y, creature_ptr->x, randint1(2) + 1, TRUE, FALSE, false);
             ident = true;
             break;
         }
@@ -441,7 +441,7 @@ void exe_read(player_type *creature_ptr, INVENTORY_IDX item, bool known)
         case SV_SCROLL_RUMOR: {
             msg_print(_("巻物にはメッセージが書かれている:", "There is message on the scroll. It says:"));
             msg_print(NULL);
-            display_rumor(creature_ptr, TRUE);
+            display_rumor(creature_ptr, true);
             msg_print(NULL);
             msg_print(_("巻物は煙を立てて消え去った!", "The scroll disappears in a puff of smoke!"));
             ident = true;
@@ -463,12 +463,12 @@ void exe_read(player_type *creature_ptr, INVENTORY_IDX item, bool known)
         }
         case SV_SCROLL_AMUSEMENT: {
             ident = true;
-            amusement(creature_ptr, creature_ptr->y, creature_ptr->x, 1, FALSE);
+            amusement(creature_ptr, creature_ptr->y, creature_ptr->x, 1, false);
             break;
         }
         case SV_SCROLL_STAR_AMUSEMENT: {
             ident = true;
-            amusement(creature_ptr, creature_ptr->y, creature_ptr->x, randint1(2) + 1, FALSE);
+            amusement(creature_ptr, creature_ptr->y, creature_ptr->x, randint1(2) + 1, false);
             break;
         }
         }
index 370b261..c4bc9c2 100644 (file)
@@ -49,7 +49,7 @@ void notice_lite_change(player_type* creature_ptr, object_type* o_ptr)
         if (o_ptr->xtra4 == 0)
             o_ptr->xtra4++;
     } else if (o_ptr->xtra4 == 0) {
-        disturb(creature_ptr, FALSE, TRUE);
+        disturb(creature_ptr, FALSE, true);
         msg_print(_("明かりが消えてしまった!", "Your light has gone out!"));
         creature_ptr->update |= (PU_TORCH);
         creature_ptr->update |= (PU_BONUS);
@@ -57,12 +57,12 @@ void notice_lite_change(player_type* creature_ptr, object_type* o_ptr)
         if ((o_ptr->xtra4 < 50) && (!(o_ptr->xtra4 % 5))
             && (current_world_ptr->game_turn % (TURNS_PER_TICK * 2))) {
             if (disturb_minor)
-                disturb(creature_ptr, FALSE, TRUE);
+                disturb(creature_ptr, FALSE, true);
             msg_print(_("明かりが微かになってきている。", "Your light is growing faint."));
         }
     } else if ((o_ptr->xtra4 < 100) && (!(o_ptr->xtra4 % 10))) {
         if (disturb_minor)
-            disturb(creature_ptr, FALSE, TRUE);
+            disturb(creature_ptr, FALSE, true);
         msg_print(_("明かりが微かになってきている。", "Your light is growing faint."));
     }
 }
index 439de51..c0b2f5d 100644 (file)
@@ -482,7 +482,7 @@ bool process_warning(player_type *creature_ptr, POSITION xx, POSITION yy)
                 strcpy(o_name, _("体", "body")); /* Warning ability without item */
             msg_format(_("%sが鋭く震えた!", "Your %s pulsates sharply!"), o_name);
 
-            disturb(creature_ptr, FALSE, TRUE);
+            disturb(creature_ptr, FALSE, true);
             return get_check(_("本当にこのまま進むか?", "Really want to go ahead? "));
         }
     } else
@@ -500,6 +500,6 @@ bool process_warning(player_type *creature_ptr, POSITION xx, POSITION yy)
     else
         strcpy(o_name, _("体", "body")); /* Warning ability without item */
     msg_format(_("%sが鋭く震えた!", "Your %s pulsates sharply!"), o_name);
-    disturb(creature_ptr, FALSE, TRUE);
+    disturb(creature_ptr, FALSE, true);
     return get_check(_("本当にこのまま進むか?", "Really want to go ahead? "));
 }
index eacbe47..1ad1ce1 100644 (file)
@@ -90,7 +90,7 @@ static void sense_inventory_aux(player_type *creature_ptr, INVENTORY_IDX slot, b
     }
 
     if (disturb_minor)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
 
     describe_flavor(creature_ptr, o_name, o_ptr, (OD_OMIT_PREFIX | OD_NAME_ONLY));
     if (slot >= INVEN_MAIN_HAND) {
@@ -395,7 +395,7 @@ void sense_inventory2(player_type *creature_ptr)
         if ((i < INVEN_MAIN_HAND) && (0 != randint0(5)))
             continue;
 
-        sense_inventory_aux(creature_ptr, i, TRUE);
+        sense_inventory_aux(creature_ptr, i, true);
     }
 }
 
index 745af34..e49119d 100644 (file)
@@ -335,7 +335,7 @@ static void process_weapon_attack(player_type *attacker_ptr, player_attack_type
     object_type *o_ptr = &attacker_ptr->inventory_list[INVEN_MAIN_HAND + pa_ptr->hand];
     auto dd = o_ptr->dd + attacker_ptr->to_dd[pa_ptr->hand] + magical_brand_extra_dice(pa_ptr);
     pa_ptr->attack_damage = damroll(dd, o_ptr->ds + attacker_ptr->to_ds[pa_ptr->hand]);
-    pa_ptr->attack_damage = calc_attack_damage_with_slay(attacker_ptr, o_ptr, pa_ptr->attack_damage, pa_ptr->m_ptr, pa_ptr->mode, FALSE);
+    pa_ptr->attack_damage = calc_attack_damage_with_slay(attacker_ptr, o_ptr, pa_ptr->attack_damage, pa_ptr->m_ptr, pa_ptr->mode, false);
     calc_surprise_attack_damage(attacker_ptr, pa_ptr);
 
     if (does_equip_cause_earthquake(attacker_ptr, pa_ptr) || (pa_ptr->chaos_effect == CE_QUAKE) || (pa_ptr->mode == HISSATSU_QUAKE))
index 677b53b..b84b81b 100644 (file)
@@ -54,7 +54,7 @@ void starve_player(player_type *creature_ptr)
 
     if (!creature_ptr->paralyzed && (randint0(100) < 10)) {
         msg_print(_("あまりにも空腹で気絶してしまった。", "You faint from the lack of food."));
-        disturb(creature_ptr, TRUE, TRUE);
+        disturb(creature_ptr, TRUE, true);
         (void)set_paralyzed(creature_ptr, creature_ptr->paralyzed + 1 + randint0(5));
     }
 
@@ -181,7 +181,7 @@ bool set_food(player_type *creature_ptr, TIME_EFFECT v)
         }
 
         if (creature_ptr->wild_mode && (new_aux < 2)) {
-            change_wild_mode(creature_ptr, FALSE);
+            change_wild_mode(creature_ptr, false);
         }
 
         notice = true;
@@ -192,7 +192,7 @@ bool set_food(player_type *creature_ptr, TIME_EFFECT v)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     creature_ptr->redraw |= (PR_HUNGER);
     handle_stuff(creature_ptr);
index fcd6572..3217a99 100644 (file)
@@ -240,7 +240,7 @@ void gain_level_reward(player_type *creature_ptr, int chosen_reward)
             msg_format(_("%sの声がささやいた:", "The voice of %s whispers:"), chaos_patrons[creature_ptr->chaos_patron]);
             msg_print(_("「我が与えし物を賢明に使うべし。」", "'Use my gift wisely.'"));
 
-            acquirement(creature_ptr, creature_ptr->y, creature_ptr->x, 1, FALSE, FALSE, FALSE);
+            acquirement(creature_ptr, creature_ptr->y, creature_ptr->x, 1, FALSE, FALSE, false);
             reward = _("上質なアイテムを手に入れた。", "a good item");
             break;
 
@@ -249,7 +249,7 @@ void gain_level_reward(player_type *creature_ptr, int chosen_reward)
             msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[creature_ptr->chaos_patron]);
             msg_print(_("「我が与えし物を賢明に使うべし。」", "'Use my gift wisely.'"));
 
-            acquirement(creature_ptr, creature_ptr->y, creature_ptr->x, 1, TRUE, FALSE, FALSE);
+            acquirement(creature_ptr, creature_ptr->y, creature_ptr->x, 1, TRUE, FALSE, false);
             reward = _("高級品のアイテムを手に入れた。", "an excellent item");
             break;
 
@@ -265,7 +265,7 @@ void gain_level_reward(player_type *creature_ptr, int chosen_reward)
             msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[creature_ptr->chaos_patron]);
             msg_print(_("「汝の行いは貴き報いに値せり。」", "'Thy deed hath earned thee a worthy reward.'"));
 
-            acquirement(creature_ptr, creature_ptr->y, creature_ptr->x, randint1(2) + 1, FALSE, FALSE, FALSE);
+            acquirement(creature_ptr, creature_ptr->y, creature_ptr->x, randint1(2) + 1, FALSE, FALSE, false);
             reward = _("上質なアイテムを手に入れた。", "good items");
             break;
 
@@ -274,7 +274,7 @@ void gain_level_reward(player_type *creature_ptr, int chosen_reward)
             msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[creature_ptr->chaos_patron]);
             msg_print(_("「下僕よ、汝の献身への我が惜しみ無き報いを見るがよい。」", "'Behold, mortal, how generously I reward thy loyalty.'"));
 
-            acquirement(creature_ptr, creature_ptr->y, creature_ptr->x, randint1(2) + 1, TRUE, FALSE, FALSE);
+            acquirement(creature_ptr, creature_ptr->y, creature_ptr->x, randint1(2) + 1, TRUE, FALSE, false);
             reward = _("高級品のアイテムを手に入れた。", "excellent items");
             break;
 
@@ -303,7 +303,7 @@ void gain_level_reward(player_type *creature_ptr, int chosen_reward)
             msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[creature_ptr->chaos_patron]);
             msg_print(_("「汝、より強き敵を必要とせり!」", "'Thou needst worthier opponents!'"));
 
-            activate_hi_summon(creature_ptr, creature_ptr->y, creature_ptr->x, FALSE);
+            activate_hi_summon(creature_ptr, creature_ptr->y, creature_ptr->x, false);
             reward = _("モンスターを召喚された。", "summoning many hostile monsters");
             break;
 
@@ -344,7 +344,7 @@ void gain_level_reward(player_type *creature_ptr, int chosen_reward)
             msg_print(_("あなたは以前より弱くなった!", "You feel less powerful!"));
 
             for (int stat = 0; stat < A_MAX; stat++) {
-                (void)dec_stat(creature_ptr, stat, 10 + randint1(15), TRUE);
+                (void)dec_stat(creature_ptr, stat, 10 + randint1(15), true);
             }
             reward = _("全能力値が下がった。", "decreasing all stats");
             break;
@@ -430,7 +430,7 @@ void gain_level_reward(player_type *creature_ptr, int chosen_reward)
                 reward = _("禍々しい呪いをかけられた。", "cursing");
                 break;
             case 2:
-                activate_hi_summon(creature_ptr, creature_ptr->y, creature_ptr->x, FALSE);
+                activate_hi_summon(creature_ptr, creature_ptr->y, creature_ptr->x, false);
                 reward = _("モンスターを召喚された。", "summoning hostile monsters");
                 break;
             case 3:
@@ -457,7 +457,7 @@ void gain_level_reward(player_type *creature_ptr, int chosen_reward)
                 break;
             default:
                 for (int stat = 0; stat < A_MAX; stat++) {
-                    (void)dec_stat(creature_ptr, stat, 10 + randint1(15), TRUE);
+                    (void)dec_stat(creature_ptr, stat, 10 + randint1(15), true);
                 }
                 reward = _("全能力値が下がった。", "decreasing all stats");
                 break;
@@ -471,9 +471,9 @@ void gain_level_reward(player_type *creature_ptr, int chosen_reward)
 
             take_hit(creature_ptr, DAMAGE_LOSELIFE, creature_ptr->lev * 4, wrath_reason);
             for (int stat = 0; stat < A_MAX; stat++) {
-                (void)dec_stat(creature_ptr, stat, 10 + randint1(15), FALSE);
+                (void)dec_stat(creature_ptr, stat, 10 + randint1(15), false);
             }
-            activate_hi_summon(creature_ptr, creature_ptr->y, creature_ptr->x, FALSE);
+            activate_hi_summon(creature_ptr, creature_ptr->y, creature_ptr->x, false);
             (void)activate_ty_curse(creature_ptr, FALSE, &count);
             if (one_in_(2)) {
                 inventory_slot_type slot = INVEN_NONE;
@@ -497,7 +497,7 @@ void gain_level_reward(player_type *creature_ptr, int chosen_reward)
             msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[creature_ptr->chaos_patron]);
             msg_print(_("「死と破壊こそ我が喜びなり!」", "'Death and destruction! This pleaseth me!'"));
 
-            (void)destroy_area(creature_ptr, creature_ptr->y, creature_ptr->x, 25, FALSE);
+            (void)destroy_area(creature_ptr, creature_ptr->y, creature_ptr->x, 25, false);
             reward = _("ダンジョンが*破壊*された。", "*destruct*ing dungeon");
             break;
 
@@ -505,7 +505,7 @@ void gain_level_reward(player_type *creature_ptr, int chosen_reward)
 
             msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[creature_ptr->chaos_patron]);
             msg_print(_("「我、汝の敵を抹殺せん!」", "'Let me relieve thee of thine oppressors!'"));
-            (void)symbol_genocide(creature_ptr, 0, FALSE);
+            (void)symbol_genocide(creature_ptr, 0, false);
             reward = _("モンスターが抹殺された。", "genociding monsters");
             break;
 
@@ -514,7 +514,7 @@ void gain_level_reward(player_type *creature_ptr, int chosen_reward)
             msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[creature_ptr->chaos_patron]);
             msg_print(_("「我、汝の敵を抹殺せん!」", "'Let me relieve thee of thine oppressors!'"));
 
-            (void)mass_genocide(creature_ptr, 0, FALSE);
+            (void)mass_genocide(creature_ptr, 0, false);
             reward = _("モンスターが抹殺された。", "genociding nearby monsters");
             break;
 
index 43c661e..9372f9b 100644 (file)
@@ -287,7 +287,7 @@ int take_hit(player_type *creature_ptr, int damage_type, HIT_POINT damage, concp
         damage = (damage + 1) / 2;
 
     if (damage_type != DAMAGE_USELIFE) {
-        disturb(creature_ptr, TRUE, TRUE);
+        disturb(creature_ptr, TRUE, true);
         if (auto_more) {
             creature_ptr->now_damaged = true;
         }
@@ -347,7 +347,7 @@ int take_hit(player_type *creature_ptr, int damage_type, HIT_POINT damage, concp
     }
 
     if (creature_ptr->chp < 0 && !cheat_immortal) {
-        bool android = (creature_ptr->prace == RACE_ANDROID ? TRUE : FALSE);
+        bool android = (creature_ptr->prace == RACE_ANDROID ? TRUE : false);
 
         /* 死んだ時に強制終了して死を回避できなくしてみた by Habu */
         if (!cheat_save && !save_player(creature_ptr, SAVE_TYPE_CLOSE_GAME))
@@ -537,7 +537,7 @@ int take_hit(player_type *creature_ptr, int damage_type, HIT_POINT damage, concp
     }
 
     if (creature_ptr->wild_mode && !creature_ptr->leaving && (creature_ptr->chp < MAX(warning, creature_ptr->mhp / 5)))
-        change_wild_mode(creature_ptr, FALSE);
+        change_wild_mode(creature_ptr, false);
 
     return damage;
 }
@@ -564,7 +564,7 @@ static void process_aura_damage(monster_type *m_ptr, player_type *touched_ptr, b
 
     monster_desc(touched_ptr, mon_name, m_ptr, MD_WRONGDOER_NAME);
     msg_print(message);
-    dam_func(touched_ptr, aura_damage, mon_name, TRUE);
+    dam_func(touched_ptr, aura_damage, mon_name, true);
 
     if (is_original_ap_and_seen(touched_ptr, m_ptr))
         atoffset(BIT_FLAGS, r_ptr, r_flags_offset) |= aura_flag;
index a5fc44d..17385cb 100644 (file)
@@ -66,13 +66,13 @@ static void discover_hidden_things(player_type *creature_ptr, POSITION y, POSITI
     if (g_ptr->mimic && is_trap(creature_ptr, g_ptr->feat)) {
         disclose_grid(creature_ptr, y, x);
         msg_print(_("トラップを発見した。", "You have found a trap."));
-        disturb(creature_ptr, FALSE, TRUE);
+        disturb(creature_ptr, FALSE, true);
     }
 
     if (is_hidden_door(creature_ptr, g_ptr)) {
         msg_print(_("隠しドアを発見した。", "You have found a secret door."));
         disclose_grid(creature_ptr, y, x);
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     }
 
     for (const auto this_o_idx : g_ptr->o_idx_list) {
@@ -85,7 +85,7 @@ static void discover_hidden_things(player_type *creature_ptr, POSITION y, POSITI
         if (!object_is_known(o_ptr)) {
             msg_print(_("箱に仕掛けられたトラップを発見した!", "You have discovered a trap on the chest!"));
             object_known(o_ptr);
-            disturb(creature_ptr, FALSE, FALSE);
+            disturb(creature_ptr, FALSE, false);
         }
     }
 }
@@ -138,14 +138,14 @@ bool move_player_effect(player_type *creature_ptr, POSITION ny, POSITION nx, BIT
                 monster_type *om_ptr = &floor_ptr->m_list[om_idx];
                 om_ptr->fy = ny;
                 om_ptr->fx = nx;
-                update_monster(creature_ptr, om_idx, TRUE);
+                update_monster(creature_ptr, om_idx, true);
             }
 
             if (nm_idx > 0) {
                 monster_type *nm_ptr = &floor_ptr->m_list[nm_idx];
                 nm_ptr->fy = oy;
                 nm_ptr->fx = ox;
-                update_monster(creature_ptr, nm_idx, TRUE);
+                update_monster(creature_ptr, nm_idx, true);
             }
         }
 
@@ -171,9 +171,9 @@ bool move_player_effect(player_type *creature_ptr, POSITION ny, POSITION nx, BIT
 
         if (creature_ptr->pclass == CLASS_NINJA) {
             if (g_ptr->info & (CAVE_GLOW))
-                set_superstealth(creature_ptr, FALSE);
+                set_superstealth(creature_ptr, false);
             else if (creature_ptr->cur_lite <= 0)
-                set_superstealth(creature_ptr, TRUE);
+                set_superstealth(creature_ptr, true);
         }
 
         if ((creature_ptr->action == ACTION_HAYAGAKE)
@@ -205,7 +205,7 @@ 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);
+        carry(creature_ptr, (mpe_mode & MPE_DO_PICKUP) ? TRUE : false);
 
     if (!creature_ptr->running) {
         // 自動拾い/自動破壊により床上のアイテムリストが変化した可能性があるので表示を更新
@@ -215,15 +215,15 @@ bool move_player_effect(player_type *creature_ptr, POSITION ny, POSITION nx, BIT
 
     PlayerEnergy energy(creature_ptr);
     if (has_flag(f_ptr->flags, FF_STORE)) {
-        disturb(creature_ptr, FALSE, TRUE);
+        disturb(creature_ptr, FALSE, true);
         energy.reset_player_turn();
         command_new = SPECIAL_KEY_STORE;
     } else if (has_flag(f_ptr->flags, FF_BLDG)) {
-        disturb(creature_ptr, FALSE, TRUE);
+        disturb(creature_ptr, FALSE, true);
         energy.reset_player_turn();
         command_new = SPECIAL_KEY_BUILDING;
     } else if (has_flag(f_ptr->flags, FF_QUEST_ENTER)) {
-        disturb(creature_ptr, FALSE, TRUE);
+        disturb(creature_ptr, FALSE, true);
         energy.reset_player_turn();
         command_new = SPECIAL_KEY_QUEST;
     } else if (has_flag(f_ptr->flags, FF_QUEST_EXIT)) {
@@ -239,13 +239,13 @@ bool move_player_effect(player_type *creature_ptr, POSITION ny, POSITION nx, BIT
         creature_ptr->oldpy = 0;
         creature_ptr->leaving = true;
     } else if (has_flag(f_ptr->flags, FF_HIT_TRAP) && !(mpe_mode & MPE_STAYING)) {
-        disturb(creature_ptr, FALSE, TRUE);
+        disturb(creature_ptr, FALSE, true);
         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);
         }
 
-        hit_trap(creature_ptr, (mpe_mode & MPE_BREAK_TRAP) ? TRUE : FALSE);
+        hit_trap(creature_ptr, (mpe_mode & MPE_BREAK_TRAP) ? TRUE : false);
         if (!player_bold(creature_ptr, ny, nx) || creature_ptr->is_dead || creature_ptr->leaving)
             return false;
     }
@@ -257,7 +257,7 @@ bool move_player_effect(player_type *creature_ptr, POSITION ny, POSITION nx, BIT
                 msg_print(_("* 注意:この先はトラップの感知範囲外です! *", "*Leaving trap detect region!*"));
 
             if (disturb_trap_detect)
-                disturb(creature_ptr, FALSE, TRUE);
+                disturb(creature_ptr, FALSE, true);
         }
     }
 
index c40e8a2..8ed280a 100644 (file)
@@ -222,7 +222,7 @@ static void delayed_visual_update(player_type *player_ptr)
 
         lite_spot(player_ptr, y, x);
         if (g_ptr->m_idx)
-            update_monster(player_ptr, g_ptr->m_idx, FALSE);
+            update_monster(player_ptr, g_ptr->m_idx, false);
 
         reset_bits(g_ptr->info, (CAVE_NOTE | CAVE_REDRAW));
     }
@@ -285,7 +285,7 @@ WEIGHT calc_inventory_weight(player_type *creature_ptr)
  */
 static void update_bonuses(player_type *creature_ptr)
 {
-    int empty_hands_status = empty_hands(creature_ptr, TRUE);
+    int empty_hands_status = empty_hands(creature_ptr, true);
     object_type *o_ptr;
 
     /* Save the old vision stuff */
@@ -398,24 +398,24 @@ static void update_bonuses(player_type *creature_ptr)
     creature_ptr->skill_thb = calc_to_hit_shoot(creature_ptr);
     creature_ptr->skill_tht = calc_to_hit_throw(creature_ptr);
     creature_ptr->riding_ryoute = is_riding_two_hands(creature_ptr);
-    creature_ptr->to_d[0] = calc_to_damage(creature_ptr, INVEN_MAIN_HAND, TRUE);
-    creature_ptr->to_d[1] = calc_to_damage(creature_ptr, INVEN_SUB_HAND, TRUE);
-    creature_ptr->dis_to_d[0] = calc_to_damage(creature_ptr, INVEN_MAIN_HAND, FALSE);
-    creature_ptr->dis_to_d[1] = calc_to_damage(creature_ptr, INVEN_SUB_HAND, FALSE);
-    creature_ptr->to_h[0] = calc_to_hit(creature_ptr, INVEN_MAIN_HAND, TRUE);
-    creature_ptr->to_h[1] = calc_to_hit(creature_ptr, INVEN_SUB_HAND, TRUE);
-    creature_ptr->dis_to_h[0] = calc_to_hit(creature_ptr, INVEN_MAIN_HAND, FALSE);
-    creature_ptr->dis_to_h[1] = calc_to_hit(creature_ptr, INVEN_SUB_HAND, FALSE);
-    creature_ptr->to_h_b = calc_to_hit_bow(creature_ptr, TRUE);
-    creature_ptr->dis_to_h_b = calc_to_hit_bow(creature_ptr, FALSE);
+    creature_ptr->to_d[0] = calc_to_damage(creature_ptr, INVEN_MAIN_HAND, true);
+    creature_ptr->to_d[1] = calc_to_damage(creature_ptr, INVEN_SUB_HAND, true);
+    creature_ptr->dis_to_d[0] = calc_to_damage(creature_ptr, INVEN_MAIN_HAND, false);
+    creature_ptr->dis_to_d[1] = calc_to_damage(creature_ptr, INVEN_SUB_HAND, false);
+    creature_ptr->to_h[0] = calc_to_hit(creature_ptr, INVEN_MAIN_HAND, true);
+    creature_ptr->to_h[1] = calc_to_hit(creature_ptr, INVEN_SUB_HAND, true);
+    creature_ptr->dis_to_h[0] = calc_to_hit(creature_ptr, INVEN_MAIN_HAND, false);
+    creature_ptr->dis_to_h[1] = calc_to_hit(creature_ptr, INVEN_SUB_HAND, false);
+    creature_ptr->to_h_b = calc_to_hit_bow(creature_ptr, true);
+    creature_ptr->dis_to_h_b = calc_to_hit_bow(creature_ptr, false);
     creature_ptr->to_d_m = calc_to_damage_misc(creature_ptr);
     creature_ptr->to_h_m = calc_to_hit_misc(creature_ptr);
     creature_ptr->skill_dig = calc_skill_dig(creature_ptr);
     creature_ptr->to_m_chance = calc_to_magic_chance(creature_ptr);
     creature_ptr->ac = calc_base_ac(creature_ptr);
-    creature_ptr->to_a = calc_to_ac(creature_ptr, TRUE);
+    creature_ptr->to_a = calc_to_ac(creature_ptr, true);
     creature_ptr->dis_ac = calc_base_ac(creature_ptr);
-    creature_ptr->dis_to_a = calc_to_ac(creature_ptr, FALSE);
+    creature_ptr->dis_to_a = calc_to_ac(creature_ptr, false);
 
     if (old_mighty_throw != creature_ptr->mighty_throw) {
         creature_ptr->window_flags |= PW_INVEN;
@@ -2605,7 +2605,7 @@ void update_creature(player_type *creature_ptr)
     if (any_bits(creature_ptr->update, (PU_DISTANCE))) {
         reset_bits(creature_ptr->update, PU_DISTANCE);
 
-        update_monsters(creature_ptr, TRUE);
+        update_monsters(creature_ptr, true);
     }
 
     if (any_bits(creature_ptr->update, (PU_MON_LITE))) {
@@ -2620,7 +2620,7 @@ void update_creature(player_type *creature_ptr)
 
     if (any_bits(creature_ptr->update, (PU_MONSTERS))) {
         reset_bits(creature_ptr->update, PU_MONSTERS);
-        update_monsters(creature_ptr, FALSE);
+        update_monsters(creature_ptr, false);
     }
 }
 
@@ -2721,7 +2721,7 @@ void check_experience(player_type *creature_ptr)
     set_bits(creature_ptr->redraw, PR_EXP);
     handle_stuff(creature_ptr);
 
-    bool android = (creature_ptr->prace == RACE_ANDROID ? TRUE : FALSE);
+    bool android = (creature_ptr->prace == RACE_ANDROID ? TRUE : false);
     PLAYER_LEVEL old_lev = creature_ptr->lev;
     while ((creature_ptr->lev > 1) && (creature_ptr->exp < ((android ? player_exp_a : player_exp)[creature_ptr->lev - 2] * creature_ptr->expfact / 100L))) {
         creature_ptr->lev--;
@@ -2824,7 +2824,7 @@ void check_experience(player_type *creature_ptr)
     }
 
     if (old_lev != creature_ptr->lev)
-        autopick_load_pref(creature_ptr, FALSE);
+        autopick_load_pref(creature_ptr, false);
 }
 
 /*!
index 8ea0ed6..1377df8 100644 (file)
@@ -114,7 +114,7 @@ void process_player_name(player_type *creature_ptr, bool is_new_savefile)
     }
 
     if (current_world_ptr->character_generated && !streq(old_player_base, creature_ptr->base_name)) {
-        autopick_load_pref(creature_ptr, FALSE);
+        autopick_load_pref(creature_ptr, false);
     }
 }
 
index 1ac3013..df31044 100644 (file)
@@ -43,7 +43,7 @@ bool set_leveling(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
     return true;
index 7d06ca4..780a579 100644 (file)
@@ -174,7 +174,7 @@ bool switch_class_racial_execution(player_type *creature_ptr, const s32b command
         return (command != -4) || identify_fully(creature_ptr, FALSE, TV_NONE);
     case CLASS_IMITATOR:
         handle_stuff(creature_ptr);
-        return do_cmd_mane(creature_ptr, TRUE);
+        return do_cmd_mane(creature_ptr, true);
     case CLASS_BEASTMASTER:
         if (command == -3) {
             if (!get_aim_dir(creature_ptr, &dir))
@@ -250,7 +250,7 @@ bool switch_class_racial_execution(player_type *creature_ptr, const s32b command
         return identify_fully(creature_ptr, TRUE, TV_NONE);
     case CLASS_MIRROR_MASTER:
         if (command == -3) {
-            remove_all_mirrors(creature_ptr, TRUE);
+            remove_all_mirrors(creature_ptr, true);
             return true;
         }
 
@@ -292,7 +292,7 @@ bool switch_race_racial_execution(player_type *creature_ptr, const s32b command)
     switch (creature_ptr->prace) {
     case RACE_DWARF:
         msg_print(_("周囲を調べた。", "You examine your surroundings."));
-        (void)detect_traps(creature_ptr, DETECT_RAD_DEFAULT, TRUE);
+        (void)detect_traps(creature_ptr, DETECT_RAD_DEFAULT, true);
         (void)detect_doors(creature_ptr, DETECT_RAD_DEFAULT);
         (void)detect_stairs(creature_ptr, DETECT_RAD_DEFAULT);
         return true;
@@ -379,7 +379,7 @@ bool switch_race_racial_execution(player_type *creature_ptr, const s32b command)
         return true;
     case RACE_NIBELUNG:
         msg_print(_("周囲を調査した。", "You examine your surroundings."));
-        (void)detect_traps(creature_ptr, DETECT_RAD_DEFAULT, TRUE);
+        (void)detect_traps(creature_ptr, DETECT_RAD_DEFAULT, true);
         (void)detect_doors(creature_ptr, DETECT_RAD_DEFAULT);
         (void)detect_stairs(creature_ptr, DETECT_RAD_DEFAULT);
         return true;
@@ -413,7 +413,7 @@ bool switch_race_racial_execution(player_type *creature_ptr, const s32b command)
 
         return true;
     case RACE_GOLEM:
-        (void)set_shield(creature_ptr, randint1(20) + 30, FALSE);
+        (void)set_shield(creature_ptr, randint1(20) + 30, false);
         return true;
     case RACE_SKELETON:
     case RACE_ZOMBIE:
@@ -442,7 +442,7 @@ bool switch_race_racial_execution(player_type *creature_ptr, const s32b command)
     case RACE_BALROG:
         return demonic_breath(creature_ptr);
     case RACE_KUTAR:
-        (void)set_leveling(creature_ptr, randint1(20) + 30, FALSE);
+        (void)set_leveling(creature_ptr, randint1(20) + 30, false);
         return true;
     case RACE_ANDROID:
         return android_inside_weapon(creature_ptr);
index f3e62fe..42a2368 100644 (file)
@@ -201,7 +201,7 @@ concptr do_arcane_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mod
                 return info_radius(rad);
 
             if (cast) {
-                detect_traps(caster_ptr, rad, TRUE);
+                detect_traps(caster_ptr, rad, true);
                 detect_doors(caster_ptr, rad);
                 detect_stairs(caster_ptr, rad);
             }
@@ -303,7 +303,7 @@ concptr do_arcane_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mod
                 return info_duration(base, base);
 
             if (cast) {
-                set_oppose_cold(caster_ptr, randint1(base) + base, FALSE);
+                set_oppose_cold(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -322,7 +322,7 @@ concptr do_arcane_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mod
                 return info_duration(base, base);
 
             if (cast) {
-                set_oppose_fire(caster_ptr, randint1(base) + base, FALSE);
+                set_oppose_fire(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -341,7 +341,7 @@ concptr do_arcane_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mod
                 return info_duration(base, base);
 
             if (cast) {
-                set_oppose_elec(caster_ptr, randint1(base) + base, FALSE);
+                set_oppose_elec(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -360,7 +360,7 @@ concptr do_arcane_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mod
                 return info_duration(base, base);
 
             if (cast) {
-                set_oppose_acid(caster_ptr, randint1(base) + base, FALSE);
+                set_oppose_acid(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -486,7 +486,7 @@ concptr do_arcane_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mod
                 return info_duration(base, base);
 
             if (cast) {
-                set_tim_invis(caster_ptr, randint1(base) + base, FALSE);
+                set_tim_invis(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -638,10 +638,10 @@ concptr do_arcane_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mod
                 chg_virtue(caster_ptr, V_KNOWLEDGE, 1);
                 chg_virtue(caster_ptr, V_ENLIGHTEN, 1);
 
-                wiz_lite(caster_ptr, FALSE);
+                wiz_lite(caster_ptr, false);
 
                 if (!caster_ptr->telepathy) {
-                    set_tim_esp(caster_ptr, randint1(sides) + base, FALSE);
+                    set_tim_esp(caster_ptr, randint1(sides) + base, false);
                 }
             }
         }
index f4dc09a..9899dbe 100644 (file)
@@ -355,7 +355,7 @@ concptr do_chaos_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
             DICE_SID sides = 4;
 
             if (cast) {
-                destroy_area(caster_ptr, caster_ptr->y, caster_ptr->x, base + randint1(sides), FALSE);
+                destroy_area(caster_ptr, caster_ptr->y, caster_ptr->x, base + randint1(sides), false);
             }
         }
         break;
index 6782657..bc182e1 100644 (file)
@@ -49,7 +49,7 @@ concptr do_craft_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
                 return info_duration(base, base);
 
             if (cast) {
-                set_tim_infra(caster_ptr, base + randint1(base), FALSE);
+                set_tim_infra(caster_ptr, base + randint1(base), false);
             }
         }
         break;
@@ -67,7 +67,7 @@ concptr do_craft_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
                 return info_duration(base, base);
 
             if (cast) {
-                set_tim_regen(caster_ptr, base + randint1(base), FALSE);
+                set_tim_regen(caster_ptr, base + randint1(base), false);
             }
         }
         break;
@@ -99,7 +99,7 @@ concptr do_craft_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
                 return info_duration(base, base);
 
             if (cast) {
-                set_oppose_cold(caster_ptr, randint1(base) + base, FALSE);
+                set_oppose_cold(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -118,7 +118,7 @@ concptr do_craft_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
                 return info_duration(base, base);
 
             if (cast) {
-                set_oppose_fire(caster_ptr, randint1(base) + base, FALSE);
+                set_oppose_fire(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -155,7 +155,7 @@ concptr do_craft_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
                 return info_duration(base, base);
 
             if (cast) {
-                set_oppose_elec(caster_ptr, randint1(base) + base, FALSE);
+                set_oppose_elec(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -174,7 +174,7 @@ concptr do_craft_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
                 return info_duration(base, base);
 
             if (cast) {
-                set_oppose_acid(caster_ptr, randint1(base) + base, FALSE);
+                set_oppose_acid(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -192,7 +192,7 @@ concptr do_craft_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
                 return info_duration(base, base);
 
             if (cast) {
-                set_tim_invis(caster_ptr, randint1(base) + base, FALSE);
+                set_tim_invis(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -223,7 +223,7 @@ concptr do_craft_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
                 return info_duration(base, base);
 
             if (cast) {
-                set_oppose_pois(caster_ptr, randint1(base) + base, FALSE);
+                set_oppose_pois(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -274,7 +274,7 @@ concptr do_craft_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
                 return info_duration(base, sides);
 
             if (cast) {
-                set_protevil(caster_ptr, randint1(sides) + base, FALSE);
+                set_protevil(caster_ptr, randint1(sides) + base, false);
             }
         }
         break;
@@ -327,7 +327,7 @@ concptr do_craft_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
                 return info_duration(base, sides);
 
             if (cast) {
-                set_tim_esp(caster_ptr, randint1(sides) + base, FALSE);
+                set_tim_esp(caster_ptr, randint1(sides) + base, false);
             }
         }
         break;
@@ -346,7 +346,7 @@ concptr do_craft_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
                 return info_duration(base, sides);
 
             if (cast) {
-                set_shield(caster_ptr, randint1(sides) + base, FALSE);
+                set_shield(caster_ptr, randint1(sides) + base, false);
             }
         }
         break;
@@ -366,11 +366,11 @@ concptr do_craft_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
                 return info_duration(base, base);
 
             if (cast) {
-                set_oppose_acid(caster_ptr, randint1(base) + base, FALSE);
-                set_oppose_elec(caster_ptr, randint1(base) + base, FALSE);
-                set_oppose_fire(caster_ptr, randint1(base) + base, FALSE);
-                set_oppose_cold(caster_ptr, randint1(base) + base, FALSE);
-                set_oppose_pois(caster_ptr, randint1(base) + base, FALSE);
+                set_oppose_acid(caster_ptr, randint1(base) + base, false);
+                set_oppose_elec(caster_ptr, randint1(base) + base, false);
+                set_oppose_fire(caster_ptr, randint1(base) + base, false);
+                set_oppose_cold(caster_ptr, randint1(base) + base, false);
+                set_oppose_pois(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -389,7 +389,7 @@ concptr do_craft_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
                 return info_duration(base, sides);
 
             if (cast) {
-                set_fast(caster_ptr, randint1(sides) + base, FALSE);
+                set_fast(caster_ptr, randint1(sides) + base, false);
             }
         }
         break;
@@ -407,7 +407,7 @@ concptr do_craft_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
                 return info_duration(base, base);
 
             if (cast) {
-                set_pass_wall(caster_ptr, randint1(base) + base, FALSE);
+                set_pass_wall(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -456,7 +456,7 @@ concptr do_craft_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
                 return info_duration(base, base);
 
             if (cast) {
-                set_magicdef(caster_ptr, randint1(base) + base, FALSE);
+                set_magicdef(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
index 7e1ab95..14f7d9b 100644 (file)
@@ -263,7 +263,7 @@ concptr do_crusade_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mo
                 return info_duration(base, base);
 
             if (cast) {
-                set_tim_invis(caster_ptr, randint1(base) + base, FALSE);
+                set_tim_invis(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -282,7 +282,7 @@ concptr do_crusade_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mo
                 return info_duration(base, sides);
 
             if (cast) {
-                set_protevil(caster_ptr, randint1(sides) + base, FALSE);
+                set_protevil(caster_ptr, randint1(sides) + base, false);
             }
         }
         break;
@@ -381,7 +381,7 @@ concptr do_crusade_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mo
                 return info_duration(base, base);
 
             if (cast) {
-                set_tim_sh_holy(caster_ptr, randint1(base) + base, FALSE);
+                set_tim_sh_holy(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -548,7 +548,7 @@ concptr do_crusade_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mo
             DICE_SID sides = 4;
 
             if (cast) {
-                destroy_area(caster_ptr, caster_ptr->y, caster_ptr->x, base + randint1(sides), FALSE);
+                destroy_area(caster_ptr, caster_ptr->y, caster_ptr->x, base + randint1(sides), false);
             }
         }
         break;
@@ -567,7 +567,7 @@ concptr do_crusade_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mo
                 return info_duration(base, base);
 
             if (cast) {
-                set_tim_eyeeye(caster_ptr, randint1(base) + base, FALSE);
+                set_tim_eyeeye(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -653,10 +653,10 @@ concptr do_crusade_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mo
                         continue;
                     summon_specific(caster_ptr, -1, my, mx, plev, SUMMON_KNIGHTS, (PM_ALLOW_GROUP | PM_FORCE_PET | PM_HASTE));
                 }
-                set_hero(caster_ptr, randint1(base) + base, FALSE);
-                set_blessed(caster_ptr, randint1(base) + base, FALSE);
-                set_fast(caster_ptr, randint1(sp_sides) + sp_base, FALSE);
-                set_protevil(caster_ptr, randint1(base) + base, FALSE);
+                set_hero(caster_ptr, randint1(base) + base, false);
+                set_blessed(caster_ptr, randint1(base) + base, false);
+                set_fast(caster_ptr, randint1(sp_sides) + sp_base, false);
+                set_protevil(caster_ptr, randint1(base) + base, false);
                 set_afraid(caster_ptr, 0);
             }
         }
index 2576d16..5ac9f8b 100644 (file)
@@ -185,7 +185,7 @@ concptr do_death_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
                 return info_duration(base, base);
 
             if (cast) {
-                set_oppose_pois(caster_ptr, randint1(base) + base, FALSE);
+                set_oppose_pois(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -412,7 +412,7 @@ concptr do_death_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
                 return info_power(power);
 
             if (cast) {
-                symbol_genocide(caster_ptr, power, TRUE);
+                symbol_genocide(caster_ptr, power, true);
             }
         }
         break;
@@ -492,7 +492,7 @@ concptr do_death_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
 
             if (cast) {
                 (void)berserk(caster_ptr, b_base + randint1(b_base));
-                set_fast(caster_ptr, randint1(sp_sides) + sp_base, FALSE);
+                set_fast(caster_ptr, randint1(sp_sides) + sp_base, false);
             }
         }
         break;
@@ -637,7 +637,7 @@ concptr do_death_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
                 return info_duration(base, base);
 
             if (cast) {
-                set_mimic(caster_ptr, base + randint1(base), MIMIC_VAMPIRE, FALSE);
+                set_mimic(caster_ptr, base + randint1(base), MIMIC_VAMPIRE, false);
             }
         }
         break;
@@ -669,7 +669,7 @@ concptr do_death_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
                 return info_power(power);
 
             if (cast) {
-                mass_genocide(caster_ptr, power, TRUE);
+                mass_genocide(caster_ptr, power, true);
             }
         }
         break;
@@ -712,7 +712,7 @@ concptr do_death_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
                 return info_duration(base, base);
 
             if (cast) {
-                set_wraith_form(caster_ptr, randint1(base) + base, FALSE);
+                set_wraith_form(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
index 9977971..7b7e51a 100644 (file)
@@ -99,7 +99,7 @@ concptr do_daemon_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mod
                 return info_duration(base, base);
 
             if (cast) {
-                set_blessed(caster_ptr, randint1(base) + base, FALSE);
+                set_blessed(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -119,7 +119,7 @@ concptr do_daemon_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mod
                 return info_duration(base, base);
 
             if (cast) {
-                set_oppose_fire(caster_ptr, randint1(base) + base, FALSE);
+                set_oppose_fire(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -264,7 +264,7 @@ concptr do_daemon_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mod
                 return info_duration(base, base);
 
             if (cast) {
-                set_tim_res_nether(caster_ptr, randint1(base) + base, FALSE);
+                set_tim_res_nether(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -375,7 +375,7 @@ concptr do_daemon_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mod
                 return info_duration(base, sides);
 
             if (cast) {
-                set_tim_esp(caster_ptr, randint1(sides) + base, FALSE);
+                set_tim_esp(caster_ptr, randint1(sides) + base, false);
             }
         }
         break;
@@ -397,9 +397,9 @@ concptr do_daemon_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mod
             if (cast) {
                 TIME_EFFECT dur = randint1(base) + base;
 
-                set_oppose_fire(caster_ptr, dur, FALSE);
-                set_oppose_cold(caster_ptr, dur, FALSE);
-                set_tim_sh_fire(caster_ptr, dur, FALSE);
+                set_oppose_fire(caster_ptr, dur, false);
+                set_oppose_cold(caster_ptr, dur, false);
+                set_tim_sh_fire(caster_ptr, dur, false);
                 set_afraid(caster_ptr, 0);
                 break;
             }
@@ -462,7 +462,7 @@ concptr do_daemon_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mod
                 return info_duration(base, base);
 
             if (cast) {
-                set_mimic(caster_ptr, base + randint1(base), MIMIC_DEMON, FALSE);
+                set_mimic(caster_ptr, base + randint1(base), MIMIC_DEMON, false);
             }
         }
         break;
@@ -555,7 +555,7 @@ concptr do_daemon_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mod
                 return info_duration(base, base);
 
             if (cast) {
-                set_tim_res_time(caster_ptr, randint1(base) + base, FALSE);
+                set_tim_res_time(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -672,7 +672,7 @@ concptr do_daemon_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mod
                 return info_duration(base, base);
 
             if (cast) {
-                set_mimic(caster_ptr, base + randint1(base), MIMIC_DEMON_LORD, FALSE);
+                set_mimic(caster_ptr, base + randint1(base), MIMIC_DEMON_LORD, false);
             }
         }
         break;
index 943f491..a6b8a12 100644 (file)
@@ -376,7 +376,7 @@ concptr do_hissatsu_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type m
                     m_ptr->fy = ty;
                     m_ptr->fx = tx;
 
-                    update_monster(caster_ptr, m_idx, TRUE);
+                    update_monster(caster_ptr, m_idx, true);
                     lite_spot(caster_ptr, oy, ox);
                     lite_spot(caster_ptr, ty, tx);
 
@@ -755,7 +755,7 @@ concptr do_hissatsu_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type m
                 m_ptr->fy = ny;
                 m_ptr->fx = nx;
 
-                update_monster(caster_ptr, m_idx, TRUE);
+                update_monster(caster_ptr, m_idx, true);
 
                 /* Redraw the old spot */
                 lite_spot(caster_ptr, y, x);
index 593f2ea..ad9e232 100644 (file)
  */
 concptr do_life_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode)
 {
-    bool name = (mode == SPELL_NAME) ? TRUE : false;
-    bool desc = (mode == SPELL_DESC) ? TRUE : false;
-    bool info = (mode == SPELL_INFO) ? TRUE : false;
-    bool cast = (mode == SPELL_CAST) ? TRUE : false;
+    bool name = mode == SPELL_NAME;
+    bool desc = mode == SPELL_DESC;
+    bool info = mode == SPELL_INFO;
+    bool cast = mode == SPELL_CAST;
 
     DIRECTION dir;
     PLAYER_LEVEL plev = caster_ptr->lev;
@@ -68,7 +68,7 @@ concptr do_life_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode)
                 return info_duration(base, base);
 
             if (cast) {
-                set_blessed(caster_ptr, randint1(base) + base, FALSE);
+                set_blessed(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -124,7 +124,7 @@ concptr do_life_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode)
                 return info_radius(rad);
 
             if (cast) {
-                detect_traps(caster_ptr, rad, TRUE);
+                detect_traps(caster_ptr, rad, true);
                 detect_doors(caster_ptr, rad);
                 detect_stairs(caster_ptr, rad);
             }
@@ -232,8 +232,8 @@ concptr do_life_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode)
                 return info_duration(base, base);
 
             if (cast) {
-                set_oppose_cold(caster_ptr, randint1(base) + base, FALSE);
-                set_oppose_fire(caster_ptr, randint1(base) + base, FALSE);
+                set_oppose_cold(caster_ptr, randint1(base) + base, false);
+                set_oppose_fire(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -487,7 +487,7 @@ concptr do_life_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode)
                 return info_power(power);
 
             if (cast) {
-                mass_genocide_undead(caster_ptr, power, TRUE);
+                mass_genocide_undead(caster_ptr, power, true);
             }
         }
         break;
@@ -501,7 +501,7 @@ concptr do_life_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode)
 
         {
             if (cast) {
-                wiz_lite(caster_ptr, FALSE);
+                wiz_lite(caster_ptr, false);
             }
         }
         break;
@@ -563,13 +563,13 @@ concptr do_life_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode)
 
             if (cast) {
                 TIME_EFFECT v = randint1(base) + base;
-                set_fast(caster_ptr, v, FALSE);
-                set_oppose_acid(caster_ptr, v, FALSE);
-                set_oppose_elec(caster_ptr, v, FALSE);
-                set_oppose_fire(caster_ptr, v, FALSE);
-                set_oppose_cold(caster_ptr, v, FALSE);
-                set_oppose_pois(caster_ptr, v, FALSE);
-                set_ultimate_res(caster_ptr, v, FALSE);
+                set_fast(caster_ptr, v, false);
+                set_oppose_acid(caster_ptr, v, false);
+                set_oppose_elec(caster_ptr, v, false);
+                set_oppose_fire(caster_ptr, v, false);
+                set_oppose_cold(caster_ptr, v, false);
+                set_oppose_pois(caster_ptr, v, false);
+                set_ultimate_res(caster_ptr, v, false);
             }
         }
         break;
index 12a3a71..11acf77 100644 (file)
@@ -114,7 +114,7 @@ concptr do_nature_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mod
                 return info_radius(rad);
 
             if (cast) {
-                detect_traps(caster_ptr, rad, TRUE);
+                detect_traps(caster_ptr, rad, true);
                 detect_doors(caster_ptr, rad);
                 detect_stairs(caster_ptr, rad);
             }
@@ -202,9 +202,9 @@ concptr do_nature_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mod
                 return info_duration(base, base);
 
             if (cast) {
-                set_oppose_cold(caster_ptr, randint1(base) + base, FALSE);
-                set_oppose_fire(caster_ptr, randint1(base) + base, FALSE);
-                set_oppose_elec(caster_ptr, randint1(base) + base, FALSE);
+                set_oppose_cold(caster_ptr, randint1(base) + base, false);
+                set_oppose_fire(caster_ptr, randint1(base) + base, false);
+                set_oppose_elec(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -290,7 +290,7 @@ concptr do_nature_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mod
 
             if (cast) {
                 map_area(caster_ptr, rad1);
-                detect_traps(caster_ptr, rad2, TRUE);
+                detect_traps(caster_ptr, rad2, true);
                 detect_doors(caster_ptr, rad2);
                 detect_stairs(caster_ptr, rad2);
                 detect_monsters_normal(caster_ptr, rad2);
@@ -412,7 +412,7 @@ concptr do_nature_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mod
                 return info_duration(base, sides);
 
             if (cast) {
-                set_shield(caster_ptr, randint1(sides) + base, FALSE);
+                set_shield(caster_ptr, randint1(sides) + base, false);
             }
         }
         break;
@@ -432,11 +432,11 @@ concptr do_nature_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mod
                 return info_duration(base, base);
 
             if (cast) {
-                set_oppose_acid(caster_ptr, randint1(base) + base, FALSE);
-                set_oppose_elec(caster_ptr, randint1(base) + base, FALSE);
-                set_oppose_fire(caster_ptr, randint1(base) + base, FALSE);
-                set_oppose_cold(caster_ptr, randint1(base) + base, FALSE);
-                set_oppose_pois(caster_ptr, randint1(base) + base, FALSE);
+                set_oppose_acid(caster_ptr, randint1(base) + base, false);
+                set_oppose_elec(caster_ptr, randint1(base) + base, false);
+                set_oppose_fire(caster_ptr, randint1(base) + base, false);
+                set_oppose_cold(caster_ptr, randint1(base) + base, false);
+                set_oppose_pois(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
@@ -621,7 +621,7 @@ concptr do_nature_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mod
                 fire_ball(caster_ptr, GF_LITE, 0, dam, rad);
                 chg_virtue(caster_ptr, V_KNOWLEDGE, 1);
                 chg_virtue(caster_ptr, V_ENLIGHTEN, 1);
-                wiz_lite(caster_ptr, FALSE);
+                wiz_lite(caster_ptr, false);
 
                 if (player_race_life(caster_ptr) == PlayerRaceLife::UNDEAD && player_race_has_flag(caster_ptr, TR_VUL_LITE) && !has_resist_lite(caster_ptr)) {
                     msg_print(_("日光があなたの肉体を焦がした!", "The sunlight scorches your flesh!"));
index 589ca3e..6bafd66 100644 (file)
@@ -319,7 +319,7 @@ concptr do_music_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
                 int count = get_singing_count(caster_ptr);
 
                 if (count >= 19)
-                    wiz_lite(caster_ptr, FALSE);
+                    wiz_lite(caster_ptr, false);
                 if (count >= 11) {
                     map_area(caster_ptr, rad);
                     if (plev > 39 && count < 19)
@@ -341,7 +341,7 @@ concptr do_music_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
                     if (plev > 19 && count < A_MAX)
                         set_singing_count(caster_ptr, count + 1);
                 }
-                detect_traps(caster_ptr, rad, TRUE);
+                detect_traps(caster_ptr, rad, true);
                 detect_doors(caster_ptr, rad);
                 detect_stairs(caster_ptr, rad);
 
index c7951c4..6d4f74f 100644 (file)
@@ -92,7 +92,7 @@ concptr do_sorcery_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mo
                 return info_radius(rad);
 
             if (cast) {
-                detect_traps(caster_ptr, rad, TRUE);
+                detect_traps(caster_ptr, rad, true);
                 detect_doors(caster_ptr, rad);
                 detect_stairs(caster_ptr, rad);
             }
@@ -304,7 +304,7 @@ concptr do_sorcery_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mo
                 return info_duration(base, sides);
 
             if (cast) {
-                set_fast(caster_ptr, randint1(sides) + base, FALSE);
+                set_fast(caster_ptr, randint1(sides) + base, false);
             }
         }
         break;
@@ -397,7 +397,7 @@ concptr do_sorcery_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mo
                 return info_duration(base, sides);
 
             if (cast) {
-                set_tim_esp(caster_ptr, randint1(sides) + base, FALSE);
+                set_tim_esp(caster_ptr, randint1(sides) + base, false);
             }
         }
         break;
@@ -536,7 +536,7 @@ concptr do_sorcery_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mo
                 if (!get_aim_dir(caster_ptr, &dir))
                     return NULL;
 
-                fetch_item(caster_ptr, dir, weight, FALSE);
+                fetch_item(caster_ptr, dir, weight, false);
             }
         }
         break;
@@ -559,10 +559,10 @@ concptr do_sorcery_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mo
                 chg_virtue(caster_ptr, V_KNOWLEDGE, 1);
                 chg_virtue(caster_ptr, V_ENLIGHTEN, 1);
 
-                wiz_lite(caster_ptr, FALSE);
+                wiz_lite(caster_ptr, false);
 
                 if (!caster_ptr->telepathy) {
-                    set_tim_esp(caster_ptr, randint1(sides) + base, FALSE);
+                    set_tim_esp(caster_ptr, randint1(sides) + base, false);
                 }
             }
         }
@@ -633,7 +633,7 @@ concptr do_sorcery_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mo
                 return info_duration(base, base);
 
             if (cast) {
-                set_invuln(caster_ptr, randint1(base) + base, FALSE);
+                set_invuln(caster_ptr, randint1(base) + base, false);
             }
         }
         break;
index 1cbcafa..ce42798 100644 (file)
@@ -145,7 +145,7 @@ concptr do_trump_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
                 return info_duration(base, sides);
 
             if (cast) {
-                set_tim_esp(caster_ptr, randint1(sides) + base, FALSE);
+                set_tim_esp(caster_ptr, randint1(sides) + base, false);
             }
         }
         break;
@@ -206,7 +206,7 @@ concptr do_trump_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode
                 if (!get_aim_dir(caster_ptr, &dir))
                     return NULL;
 
-                fetch_item(caster_ptr, dir, weight, FALSE);
+                fetch_item(caster_ptr, dir, weight, false);
             }
         }
         break;
index 4d40c84..79b6e5c 100644 (file)
@@ -114,7 +114,7 @@ void build_cavern(player_type *player_ptr)
         int roug = randint1(8) * randint1(4);
         int cutoff = xsize / 2;
         generate_hmap(floor_ptr, y0 + 1, x0 + 1, xsize, ysize, grd, roug, cutoff);
-        done = generate_fracave(player_ptr, y0 + 1, x0 + 1, xsize, ysize, cutoff, light, FALSE);
+        done = generate_fracave(player_ptr, y0 + 1, x0 + 1, xsize, ysize, cutoff, light, false);
     }
 }
 
index 1c72fb4..2a03f06 100644 (file)
@@ -112,7 +112,7 @@ static void build_stores(player_type *player_ptr, POSITION ltcy, POSITION ltcx,
 
     for (i = 0; i < n; i++) {
         cur_ugbldg = &ugbldg[i];
-        generate_room_floor(player_ptr, ltcy + cur_ugbldg->y0 - 2, ltcx + cur_ugbldg->x0 - 2, ltcy + cur_ugbldg->y1 + 2, ltcx + cur_ugbldg->x1 + 2, FALSE);
+        generate_room_floor(player_ptr, ltcy + cur_ugbldg->y0 - 2, ltcx + cur_ugbldg->x0 - 2, ltcy + cur_ugbldg->y1 + 2, ltcx + cur_ugbldg->x1 + 2, false);
     }
 
     for (i = 0; i < n; i++) {
@@ -220,7 +220,7 @@ bool build_type16(player_type *player_ptr, dun_data_type *dd_ptr)
 
     y1 = yval - (town_hgt / 2);
     x1 = xval - (town_wid / 2);
-    generate_room_floor(player_ptr, y1 + town_hgt / 3, x1 + town_wid / 3, y1 + town_hgt * 2 / 3, x1 + town_wid * 2 / 3, FALSE);
+    generate_room_floor(player_ptr, y1 + town_hgt / 3, x1 + town_wid / 3, y1 + town_hgt * 2 / 3, x1 + town_wid * 2 / 3, false);
     build_stores(player_ptr, y1, x1, stores, n);
     msg_print_wizard(player_ptr, CHEAT_DUNGEON, _("地下街を生成しました", "Underground arcade was generated."));
     C_KILL(ugbldg, n, ugbldg_type);
index bacf4be..273622a 100644 (file)
@@ -179,7 +179,7 @@ bool build_type1(player_type *player_ptr, dun_data_type *dd_ptr)
             place_bold(player_ptr, y2 + 1, xval, GB_SOLID);
         }
 
-        place_random_door(player_ptr, yval, xval, TRUE);
+        place_random_door(player_ptr, yval, xval, true);
         if (curtain2)
             floor_ptr->grid_array[yval][xval].feat = feat_door[DOOR_CURTAIN].closed;
     }
index bc5e40e..d900bb0 100644 (file)
@@ -1117,7 +1117,7 @@ bool build_type10(player_type *player_ptr, dun_data_type *dd_ptr)
         break;
     case 4:
     case 12:
-        build_maze_vault(player_ptr, x0, y0, xsize, ysize, TRUE);
+        build_maze_vault(player_ptr, x0, y0, xsize, ysize, true);
         break;
     case 5:
     case 13:
index 386bfa3..730d09b 100644 (file)
@@ -19,13 +19,13 @@ bool activate_bladeturner(player_type *user_ptr)
     fire_breath(user_ptr, GF_MISSILE, dir, 300, 4);
     msg_print(_("鎧が様々な色に輝いた...", "Your armor glows many colours..."));
     (void)set_afraid(user_ptr, 0);
-    (void)set_hero(user_ptr, randint1(50) + 50, FALSE);
+    (void)set_hero(user_ptr, randint1(50) + 50, false);
     (void)hp_player(user_ptr, 10);
-    (void)set_blessed(user_ptr, randint1(50) + 50, FALSE);
-    (void)set_oppose_acid(user_ptr, randint1(50) + 50, FALSE);
-    (void)set_oppose_elec(user_ptr, randint1(50) + 50, FALSE);
-    (void)set_oppose_fire(user_ptr, randint1(50) + 50, FALSE);
-    (void)set_oppose_cold(user_ptr, randint1(50) + 50, FALSE);
-    (void)set_oppose_pois(user_ptr, randint1(50) + 50, FALSE);
+    (void)set_blessed(user_ptr, randint1(50) + 50, false);
+    (void)set_oppose_acid(user_ptr, randint1(50) + 50, false);
+    (void)set_oppose_elec(user_ptr, randint1(50) + 50, false);
+    (void)set_oppose_fire(user_ptr, randint1(50) + 50, false);
+    (void)set_oppose_cold(user_ptr, randint1(50) + 50, false);
+    (void)set_oppose_pois(user_ptr, randint1(50) + 50, false);
     return true;
 }
index 911b635..7987adf 100644 (file)
@@ -211,7 +211,7 @@ void chest_trap(player_type *target_ptr, POSITION y, POSITION x, OBJECT_IDX o_id
                for (i = 0; i < num; i++)
                {
                        if (randint1(100)<target_ptr->current_floor_ptr->dun_level)
-                               activate_hi_summon(target_ptr, target_ptr->y, target_ptr->x, FALSE);
+                               activate_hi_summon(target_ptr, target_ptr->y, target_ptr->x, false);
                        else
                                (void)summon_specific(target_ptr, 0, y, x, mon_level, SUMMON_NONE, (PM_ALLOW_GROUP | PM_ALLOW_UNIQUE | PM_NO_PET));
                }
index 8df8c3b..d8e448c 100644 (file)
@@ -23,12 +23,12 @@ static void exe_ring_of_power(player_type *caster_ptr, DIRECTION dir)
     case 2:
         msg_print(_("あなたは悪性のオーラに包み込まれた。", "You are surrounded by a malignant aura."));
         sound(SOUND_EVIL);
-        (void)dec_stat(caster_ptr, A_STR, 50, TRUE);
-        (void)dec_stat(caster_ptr, A_INT, 50, TRUE);
-        (void)dec_stat(caster_ptr, A_WIS, 50, TRUE);
-        (void)dec_stat(caster_ptr, A_DEX, 50, TRUE);
-        (void)dec_stat(caster_ptr, A_CON, 50, TRUE);
-        (void)dec_stat(caster_ptr, A_CHR, 50, TRUE);
+        (void)dec_stat(caster_ptr, A_STR, 50, true);
+        (void)dec_stat(caster_ptr, A_INT, 50, true);
+        (void)dec_stat(caster_ptr, A_WIS, 50, true);
+        (void)dec_stat(caster_ptr, A_DEX, 50, true);
+        (void)dec_stat(caster_ptr, A_CON, 50, true);
+        (void)dec_stat(caster_ptr, A_CHR, 50, true);
         caster_ptr->exp -= (caster_ptr->exp / 4);
         caster_ptr->max_exp -= (caster_ptr->exp / 4);
         check_experience(caster_ptr);
index 692c331..9de069e 100644 (file)
@@ -137,7 +137,7 @@ void update_lite_radius(player_type *creature_ptr)
     creature_ptr->old_lite = creature_ptr->cur_lite;
 
     if ((creature_ptr->cur_lite > 0) && (creature_ptr->special_defense & NINJA_S_STEALTH))
-        set_superstealth(creature_ptr, FALSE);
+        set_superstealth(creature_ptr, false);
 }
 
 /*
index 747b8c9..727faa2 100644 (file)
@@ -55,7 +55,7 @@ void blood_curse_to_enemy(player_type *caster_ptr, MONSTER_IDX m_idx)
                 if (m_ptr->r_idx)
                     teleport_away(caster_ptr, g_ptr->m_idx, damroll(10, 10), TELEPORT_PASSIVE);
                 if (one_in_(13))
-                    count += activate_hi_summon(caster_ptr, m_ptr->fy, m_ptr->fx, TRUE);
+                    count += activate_hi_summon(caster_ptr, m_ptr->fy, m_ptr->fx, true);
                 if (!one_in_(6))
                     break;
             }
@@ -79,7 +79,7 @@ void blood_curse_to_enemy(player_type *caster_ptr, MONSTER_IDX m_idx)
             /* Fall through */
         case 17:
         case 18:
-            count += activate_hi_summon(caster_ptr, m_ptr->fy, m_ptr->fx, TRUE);
+            count += activate_hi_summon(caster_ptr, m_ptr->fy, m_ptr->fx, true);
             if (!one_in_(6))
                 break;
             /* Fall through */
index 1ffd702..b4155e8 100644 (file)
@@ -270,7 +270,7 @@ bool earthquake(player_type *caster_ptr, POSITION cy, POSITION cx, POSITION r, M
             floor_ptr->grid_array[sy][sx].m_idx = m_idx_aux;
             m_ptr->fy = sy;
             m_ptr->fx = sx;
-            update_monster(caster_ptr, m_idx_aux, TRUE);
+            update_monster(caster_ptr, m_idx_aux, true);
             lite_spot(caster_ptr, yy, xx);
             lite_spot(caster_ptr, sy, sx);
         }
@@ -348,7 +348,7 @@ bool earthquake(player_type *caster_ptr, POSITION cy, POSITION cx, POSITION r, M
     caster_ptr->window_flags |= (PW_OVERHEAD | PW_DUNGEON);
     if (caster_ptr->special_defense & NINJA_S_STEALTH) {
         if (floor_ptr->grid_array[caster_ptr->y][caster_ptr->x].info & CAVE_GLOW)
-            set_superstealth(caster_ptr, FALSE);
+            set_superstealth(caster_ptr, false);
     }
 
     return true;
index 1110ad4..ad7d68c 100644 (file)
@@ -54,11 +54,11 @@ static int exe_curse_removal(player_type *creature_ptr, int all)
  * @param caster_ptr プレーヤーへの参照ポインタ
  * @return 解呪に成功した装備数
  */
-int remove_curse(player_type *caster_ptr) { return exe_curse_removal(caster_ptr, FALSE); }
+int remove_curse(player_type *caster_ptr) { return exe_curse_removal(caster_ptr, false); }
 
 /*!
  * @brief 装備の重い呪い解呪処理 /
  * Remove all curses
  * @return 解呪に成功した装備数
  */
-int remove_all_curse(player_type *caster_ptr) { return exe_curse_removal(caster_ptr, TRUE); }
+int remove_all_curse(player_type *caster_ptr) { return exe_curse_removal(caster_ptr, true); }
index 35caaa7..545d207 100644 (file)
@@ -110,7 +110,7 @@ bool detect_traps(player_type *caster_ptr, POSITION range, bool known)
  */
 bool detect_doors(player_type *caster_ptr, POSITION range)
 {
-    bool detect = detect_feat_flag(caster_ptr, range, FF_DOOR, TRUE);
+    bool detect = detect_feat_flag(caster_ptr, range, FF_DOOR, true);
 
     if (music_singing(caster_ptr, MUSIC_DETECT) && get_singing_count(caster_ptr) > 0)
         detect = false;
@@ -129,7 +129,7 @@ bool detect_doors(player_type *caster_ptr, POSITION range)
  */
 bool detect_stairs(player_type *caster_ptr, POSITION range)
 {
-    bool detect = detect_feat_flag(caster_ptr, range, FF_STAIRS, TRUE);
+    bool detect = detect_feat_flag(caster_ptr, range, FF_STAIRS, true);
 
     if (music_singing(caster_ptr, MUSIC_DETECT) && get_singing_count(caster_ptr) > 0)
         detect = false;
@@ -148,7 +148,7 @@ bool detect_stairs(player_type *caster_ptr, POSITION range)
  */
 bool detect_treasure(player_type *caster_ptr, POSITION range)
 {
-    bool detect = detect_feat_flag(caster_ptr, range, FF_HAS_GOLD, TRUE);
+    bool detect = detect_feat_flag(caster_ptr, range, FF_HAS_GOLD, true);
 
     if (music_singing(caster_ptr, MUSIC_DETECT) && get_singing_count(caster_ptr) > 6)
         detect = false;
@@ -332,7 +332,7 @@ bool detect_monsters_normal(player_type *caster_ptr, POSITION range)
 
         if (!(r_ptr->flags2 & RF2_INVISIBLE) || caster_ptr->see_inv) {
             m_ptr->mflag2.set({MFLAG2::MARK, MFLAG2::SHOW});
-            update_monster(caster_ptr, i, FALSE);
+            update_monster(caster_ptr, i, false);
             flag = true;
         }
     }
@@ -377,7 +377,7 @@ bool detect_monsters_invis(player_type *caster_ptr, POSITION range)
             }
 
             m_ptr->mflag2.set({MFLAG2::MARK, MFLAG2::SHOW});
-            update_monster(caster_ptr, i, FALSE);
+            update_monster(caster_ptr, i, false);
             flag = true;
         }
     }
@@ -424,7 +424,7 @@ bool detect_monsters_evil(player_type *caster_ptr, POSITION range)
             }
 
             m_ptr->mflag2.set({MFLAG2::MARK, MFLAG2::SHOW});
-            update_monster(caster_ptr, i, FALSE);
+            update_monster(caster_ptr, i, false);
             flag = true;
         }
     }
@@ -464,7 +464,7 @@ bool detect_monsters_nonliving(player_type *caster_ptr, POSITION range)
             }
 
             m_ptr->mflag2.set({MFLAG2::MARK, MFLAG2::SHOW});
-            update_monster(caster_ptr, i, FALSE);
+            update_monster(caster_ptr, i, false);
             flag = true;
         }
     }
@@ -506,7 +506,7 @@ bool detect_monsters_mind(player_type *caster_ptr, POSITION range)
             }
 
             m_ptr->mflag2.set({MFLAG2::MARK, MFLAG2::SHOW});
-            update_monster(caster_ptr, i, FALSE);
+            update_monster(caster_ptr, i, false);
             flag = true;
         }
     }
@@ -549,7 +549,7 @@ bool detect_monsters_string(player_type *caster_ptr, POSITION range, concptr Mat
             }
 
             m_ptr->mflag2.set({MFLAG2::MARK, MFLAG2::SHOW});
-            update_monster(caster_ptr, i, FALSE);
+            update_monster(caster_ptr, i, false);
             flag = true;
         }
     }
@@ -597,7 +597,7 @@ bool detect_monsters_xxx(player_type *caster_ptr, POSITION range, u32b match_fla
             }
 
             m_ptr->mflag2.set({MFLAG2::MARK, MFLAG2::SHOW});
-            update_monster(caster_ptr, i, FALSE);
+            update_monster(caster_ptr, i, false);
             flag = true;
         }
     }
index 7b71cc9..2071c47 100644 (file)
@@ -81,7 +81,7 @@ bool artifact_scroll(player_type *caster_ptr)
             }
         }
 
-        okay = become_random_artifact(caster_ptr, o_ptr, TRUE);
+        okay = become_random_artifact(caster_ptr, o_ptr, true);
     }
 
     if (!okay) {
index 51e74e4..8647aec 100644 (file)
@@ -156,7 +156,7 @@ bool fetch_monster(player_type *caster_ptr)
     m_ptr->fy = ty;
     m_ptr->fx = tx;
     (void)set_monster_csleep(caster_ptr, m_idx, 0);
-    update_monster(caster_ptr, m_idx, TRUE);
+    update_monster(caster_ptr, m_idx, true);
     lite_spot(caster_ptr, target_row, target_col);
     lite_spot(caster_ptr, ty, tx);
     if (r_info[m_ptr->r_idx].flags7 & (RF7_LITE_MASK | RF7_DARK_MASK))
index c866db1..4d2fe4c 100644 (file)
@@ -124,7 +124,7 @@ void wiz_lite(player_type *caster_ptr, bool ninja)
 
     if (caster_ptr->special_defense & NINJA_S_STEALTH) {
         if (caster_ptr->current_floor_ptr->grid_array[caster_ptr->y][caster_ptr->x].info & CAVE_GLOW)
-            set_superstealth(caster_ptr, FALSE);
+            set_superstealth(caster_ptr, false);
     }
 }
 
@@ -462,7 +462,7 @@ bool destroy_area(player_type *caster_ptr, POSITION y1, POSITION x1, POSITION r,
 
     if (caster_ptr->special_defense & NINJA_S_STEALTH) {
         if (floor_ptr->grid_array[caster_ptr->y][caster_ptr->x].info & CAVE_GLOW)
-            set_superstealth(caster_ptr, FALSE);
+            set_superstealth(caster_ptr, false);
     }
 
     return true;
index 44d8e84..38a7db5 100644 (file)
@@ -64,7 +64,7 @@ static void cave_temp_room_lite(player_type *caster_ptr, const std::vector<Pos2D
             PERCENTAGE chance = 25;
             monster_type *m_ptr = &caster_ptr->current_floor_ptr->m_list[g_ptr->m_idx];
             monster_race *r_ptr = &r_info[m_ptr->r_idx];
-            update_monster(caster_ptr, g_ptr->m_idx, FALSE);
+            update_monster(caster_ptr, g_ptr->m_idx, false);
             if (r_ptr->flags2 & (RF2_STUPID))
                 chance = 10;
             if (r_ptr->flags2 & (RF2_SMART))
@@ -139,7 +139,7 @@ static void cave_temp_room_unlite(player_type *caster_ptr, const std::vector<Pos
         }
 
         if (g_ptr->m_idx) {
-            update_monster(caster_ptr, g_ptr->m_idx, FALSE);
+            update_monster(caster_ptr, g_ptr->m_idx, false);
         }
 
         lite_spot(caster_ptr, y, x);
@@ -320,7 +320,7 @@ void lite_room(player_type *caster_ptr, const POSITION y1, const POSITION x1)
     // 超隠密状態の更新。
     if (caster_ptr->special_defense & NINJA_S_STEALTH) {
         if (floor_ptr->grid_array[caster_ptr->y][caster_ptr->x].info & CAVE_GLOW)
-            set_superstealth(caster_ptr, FALSE);
+            set_superstealth(caster_ptr, false);
     }
 }
 
index 4effc60..5194547 100644 (file)
@@ -43,7 +43,7 @@ void identify_pack(player_type *target_ptr)
             continue;
 
         identify_item(target_ptr, o_ptr);
-        autopick_alter_item(target_ptr, i, FALSE);
+        autopick_alter_item(target_ptr, i, false);
     }
 }
 
index 53613d7..cc7cc94 100644 (file)
@@ -124,7 +124,7 @@ bool activate_ty_curse(player_type *target_ptr, bool stop_ty, int *count)
                 msg_print(_("周囲の空間が歪んだ!", "Space warps about you!"));
                 teleport_player(target_ptr, damroll(10, 10), TELEPORT_PASSIVE);
                 if (randint0(13))
-                    (*count) += activate_hi_summon(target_ptr, target_ptr->y, target_ptr->x, FALSE);
+                    (*count) += activate_hi_summon(target_ptr, target_ptr->y, target_ptr->x, false);
                 if (!one_in_(6))
                     break;
             }
@@ -152,7 +152,7 @@ bool activate_ty_curse(player_type *target_ptr, bool stop_ty, int *count)
         case 4:
         case 5:
         case 6:
-            (*count) += activate_hi_summon(target_ptr, target_ptr->y, target_ptr->x, FALSE);
+            (*count) += activate_hi_summon(target_ptr, target_ptr->y, target_ptr->x, false);
             if (!one_in_(6))
                 break;
             /* Fall through */
@@ -323,7 +323,7 @@ void wild_magic(player_type *caster_ptr, int spell)
         break;
     case 36:
     case 37:
-        activate_hi_summon(caster_ptr, caster_ptr->y, caster_ptr->x, FALSE);
+        activate_hi_summon(caster_ptr, caster_ptr->y, caster_ptr->x, false);
         break;
     case 38:
         (void)summon_cyber(caster_ptr, -1, caster_ptr->y, caster_ptr->x);
@@ -466,12 +466,12 @@ void cast_wonder(player_type *caster_ptr, DIRECTION dir)
     }
 
     if (die < 106) {
-        (void)destroy_area(caster_ptr, caster_ptr->y, caster_ptr->x, 13 + randint0(5), FALSE);
+        (void)destroy_area(caster_ptr, caster_ptr->y, caster_ptr->x, 13 + randint0(5), false);
         return;
     }
 
     if (die < 108) {
-        symbol_genocide(caster_ptr, plev + 50, TRUE);
+        symbol_genocide(caster_ptr, plev + 50, true);
         return;
     }
 
index f68d03a..6cf27d1 100644 (file)
@@ -179,7 +179,7 @@ bool teleport_away(player_type *caster_ptr, MONSTER_IDX m_idx, POSITION dis, tel
     m_ptr->fx = nx;
 
     reset_target(m_ptr);
-    update_monster(caster_ptr, m_idx, TRUE);
+    update_monster(caster_ptr, m_idx, true);
     lite_spot(caster_ptr, oy, ox);
     lite_spot(caster_ptr, ny, nx);
 
@@ -252,7 +252,7 @@ void teleport_monster_to(player_type *caster_ptr, MONSTER_IDX m_idx, POSITION ty
     m_ptr->fy = ny;
     m_ptr->fx = nx;
 
-    update_monster(caster_ptr, m_idx, TRUE);
+    update_monster(caster_ptr, m_idx, true);
     lite_spot(caster_ptr, oy, ox);
     lite_spot(caster_ptr, ny, nx);
 
index 104bf66..584e917 100644 (file)
@@ -120,7 +120,7 @@ void teleport_level(player_type *creature_ptr, MONSTER_IDX m_idx)
                 exe_write_diary(creature_ptr, DIARY_TELEPORT_LEVEL, 1, NULL);
 
             if (autosave_l)
-                do_cmd_save_game(creature_ptr, TRUE);
+                do_cmd_save_game(creature_ptr, true);
 
             if (!is_in_dungeon(creature_ptr)) {
                 creature_ptr->current_floor_ptr->dun_level = d_info[creature_ptr->dungeon_idx].mindepth;
@@ -146,7 +146,7 @@ void teleport_level(player_type *creature_ptr, MONSTER_IDX m_idx)
                 exe_write_diary(creature_ptr, DIARY_TELEPORT_LEVEL, -1, NULL);
 
             if (autosave_l)
-                do_cmd_save_game(creature_ptr, TRUE);
+                do_cmd_save_game(creature_ptr, true);
 
             prepare_change_floor_mode(creature_ptr, CFM_SAVE_FLOORS | CFM_UP | CFM_RAND_PLACE | CFM_RAND_CONNECT);
 
@@ -168,7 +168,7 @@ void teleport_level(player_type *creature_ptr, MONSTER_IDX m_idx)
                 exe_write_diary(creature_ptr, DIARY_TELEPORT_LEVEL, -1, NULL);
 
             if (autosave_l)
-                do_cmd_save_game(creature_ptr, TRUE);
+                do_cmd_save_game(creature_ptr, true);
 
             prepare_change_floor_mode(creature_ptr, CFM_SAVE_FLOORS | CFM_UP | CFM_RAND_PLACE | CFM_RAND_CONNECT);
             creature_ptr->leaving = true;
@@ -186,7 +186,7 @@ void teleport_level(player_type *creature_ptr, MONSTER_IDX m_idx)
             if (record_stair)
                 exe_write_diary(creature_ptr, DIARY_TELEPORT_LEVEL, 1, NULL);
             if (autosave_l)
-                do_cmd_save_game(creature_ptr, TRUE);
+                do_cmd_save_game(creature_ptr, true);
 
             prepare_change_floor_mode(creature_ptr, CFM_SAVE_FLOORS | CFM_DOWN | CFM_RAND_PLACE | CFM_RAND_CONNECT);
             creature_ptr->leaving = true;
index 4cabeb7..838dd55 100644 (file)
@@ -87,7 +87,7 @@ bool set_ele_attack(player_type *creature_ptr, u32b attack_type, TIME_EFFECT v)
     }
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->redraw |= (PR_STATUS);
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
@@ -146,7 +146,7 @@ bool set_ele_immune(player_type *creature_ptr, u32b immune_type, TIME_EFFECT v)
     }
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->redraw |= (PR_STATUS);
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
index f19067c..6594230 100644 (file)
@@ -138,7 +138,7 @@ bool set_tim_sh_holy(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
     return true;
@@ -181,7 +181,7 @@ bool set_tim_eyeeye(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
     return true;
index ae013eb..e8bca4f 100644 (file)
@@ -43,7 +43,7 @@ bool set_tim_sh_fire(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
     return true;
index 0a88316..a8cb6ea 100644 (file)
@@ -114,7 +114,7 @@ bool set_tim_stealth(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
     return true;
index 479b331..19b0b66 100644 (file)
@@ -60,7 +60,7 @@ void cast_shuffle(player_type *caster_ptr)
         msg_print(_("なんてこった!《死》だ!", "Oh no! It's Death!"));
 
         for (i = 0; i < randint1(3); i++) {
-            activate_hi_summon(caster_ptr, caster_ptr->y, caster_ptr->x, FALSE);
+            activate_hi_summon(caster_ptr, caster_ptr->y, caster_ptr->x, false);
         }
 
         return;
@@ -119,7 +119,7 @@ void cast_shuffle(player_type *caster_ptr)
 
     if (die < 42) {
         msg_print(_("《正義》だ。", "It's Justice."));
-        set_blessed(caster_ptr, caster_ptr->lev, FALSE);
+        set_blessed(caster_ptr, caster_ptr->lev, false);
         return;
     }
 
@@ -204,7 +204,7 @@ void cast_shuffle(player_type *caster_ptr)
         msg_print(_("《太陽》だ。", "It's the Sun."));
         chg_virtue(caster_ptr, V_KNOWLEDGE, 1);
         chg_virtue(caster_ptr, V_ENLIGHTEN, 1);
-        wiz_lite(caster_ptr, FALSE);
+        wiz_lite(caster_ptr, false);
         return;
     }
 
index a792add..a67cd50 100644 (file)
@@ -286,7 +286,7 @@ bool life_stream(player_type *creature_ptr, bool message, bool virtue_change)
     (void)set_cut(creature_ptr, 0);
     (void)set_paralyzed(creature_ptr, 0);
     (void)restore_all_status(creature_ptr);
-    (void)set_shero(creature_ptr, 0, TRUE);
+    (void)set_shero(creature_ptr, 0, true);
     handle_stuff(creature_ptr);
     hp_player(creature_ptr, 5000);
 
@@ -505,12 +505,12 @@ bool cosmic_cast_off(player_type *creature_ptr, object_type **o_ptr_ptr)
     int t = 20 + randint1(20);
     (void)set_blind(creature_ptr, creature_ptr->blind + t);
     (void)set_afraid(creature_ptr, 0);
-    (void)set_tim_esp(creature_ptr, creature_ptr->tim_esp + t, FALSE);
-    (void)set_tim_regen(creature_ptr, creature_ptr->tim_regen + t, FALSE);
-    (void)set_hero(creature_ptr, creature_ptr->hero + t, FALSE);
-    (void)set_blessed(creature_ptr, creature_ptr->blessed + t, FALSE);
-    (void)set_fast(creature_ptr, creature_ptr->fast + t, FALSE);
-    (void)set_shero(creature_ptr, creature_ptr->shero + t, FALSE);
+    (void)set_tim_esp(creature_ptr, creature_ptr->tim_esp + t, false);
+    (void)set_tim_regen(creature_ptr, creature_ptr->tim_regen + t, false);
+    (void)set_hero(creature_ptr, creature_ptr->hero + t, false);
+    (void)set_blessed(creature_ptr, creature_ptr->blessed + t, false);
+    (void)set_fast(creature_ptr, creature_ptr->fast + t, false);
+    (void)set_shero(creature_ptr, creature_ptr->shero + t, false);
     if (creature_ptr->pclass == CLASS_FORCETRAINER) {
         set_current_ki(creature_ptr, TRUE, creature_ptr->lev * 5 + 190);
         msg_print(_("気が爆発寸前になった。", "Your force absorbs the explosion."));
index 108b67a..bb11615 100644 (file)
@@ -514,9 +514,9 @@ void cast_invoke_spirits(player_type *caster_ptr, DIRECTION dir)
     } else if (die < 104) {
         earthquake(caster_ptr, caster_ptr->y, caster_ptr->x, 12, 0);
     } else if (die < 106) {
-        (void)destroy_area(caster_ptr, caster_ptr->y, caster_ptr->x, 13 + randint0(5), FALSE);
+        (void)destroy_area(caster_ptr, caster_ptr->y, caster_ptr->x, 13 + randint0(5), false);
     } else if (die < 108) {
-        symbol_genocide(caster_ptr, plev + 50, TRUE);
+        symbol_genocide(caster_ptr, plev + 50, true);
     } else if (die < 110) {
         dispel_monsters(caster_ptr, 120);
     } else {
index dde2f6f..3ed1349 100644 (file)
@@ -65,7 +65,7 @@ bool set_blind(player_type *creature_ptr, TIME_EFFECT v)
     if (!notice)
         return false;
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
 
     creature_ptr->update |= (PU_UN_VIEW | PU_UN_LITE | PU_VIEW | PU_LITE | PU_MONSTERS | PU_MON_LITE);
     creature_ptr->redraw |= (PR_MAP);
@@ -116,7 +116,7 @@ bool set_confused(player_type *creature_ptr, TIME_EFFECT v)
 
             /* Sniper */
             if (creature_ptr->concent)
-                reset_concentration(creature_ptr, TRUE);
+                reset_concentration(creature_ptr, true);
 
             if (hex_spelling_any(creature_ptr))
                 stop_hex_spell_all(creature_ptr);
@@ -140,7 +140,7 @@ bool set_confused(player_type *creature_ptr, TIME_EFFECT v)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     handle_stuff(creature_ptr);
     return true;
 }
@@ -177,7 +177,7 @@ bool set_poisoned(player_type *creature_ptr, TIME_EFFECT v)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     handle_stuff(creature_ptr);
     return true;
 }
@@ -227,7 +227,7 @@ bool set_afraid(player_type *creature_ptr, TIME_EFFECT v)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     handle_stuff(creature_ptr);
     return true;
 }
@@ -249,7 +249,7 @@ bool set_paralyzed(player_type *creature_ptr, TIME_EFFECT v)
         if (!creature_ptr->paralyzed) {
             msg_print(_("体が麻痺してしまった!", "You are paralyzed!"));
             if (creature_ptr->concent)
-                reset_concentration(creature_ptr, TRUE);
+                reset_concentration(creature_ptr, true);
             if (hex_spelling_any(creature_ptr))
                 stop_hex_spell_all(creature_ptr);
 
@@ -270,7 +270,7 @@ bool set_paralyzed(player_type *creature_ptr, TIME_EFFECT v)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->redraw |= (PR_STATE);
     handle_stuff(creature_ptr);
     return true;
@@ -293,13 +293,13 @@ bool set_image(player_type *creature_ptr, TIME_EFFECT v)
         v = 0;
 
     if (v) {
-        set_tsuyoshi(creature_ptr, 0, TRUE);
+        set_tsuyoshi(creature_ptr, 0, true);
         if (!creature_ptr->image) {
             msg_print(_("ワーオ!何もかも虹色に見える!", "Oh, wow! Everything looks so cosmic now!"));
 
             /* Sniper */
             if (creature_ptr->concent)
-                reset_concentration(creature_ptr, TRUE);
+                reset_concentration(creature_ptr, true);
 
             creature_ptr->counter = false;
             notice = true;
@@ -318,7 +318,7 @@ bool set_image(player_type *creature_ptr, TIME_EFFECT v)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, TRUE);
+        disturb(creature_ptr, FALSE, true);
 
     creature_ptr->redraw |= (PR_MAP | PR_HEALTH | PR_UHEALTH);
     creature_ptr->update |= (PU_MONSTERS);
@@ -361,7 +361,7 @@ bool set_slow(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
     return true;
@@ -445,7 +445,7 @@ bool set_stun(player_type *creature_ptr, TIME_EFFECT v)
         }
 
         if (creature_ptr->concent)
-            reset_concentration(creature_ptr, TRUE);
+            reset_concentration(creature_ptr, true);
         if (hex_spelling_any(creature_ptr))
             stop_hex_spell_all(creature_ptr);
 
@@ -454,7 +454,7 @@ bool set_stun(player_type *creature_ptr, TIME_EFFECT v)
         if (new_aux == 0) {
             msg_print(_("やっと朦朧状態から回復した。", "You are no longer stunned."));
             if (disturb_state)
-                disturb(creature_ptr, FALSE, FALSE);
+                disturb(creature_ptr, FALSE, false);
         }
 
         notice = true;
@@ -466,7 +466,7 @@ bool set_stun(player_type *creature_ptr, TIME_EFFECT v)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     creature_ptr->redraw |= (PR_STUN);
     handle_stuff(creature_ptr);
@@ -565,7 +565,7 @@ bool set_cut(player_type *creature_ptr, TIME_EFFECT v)
         if (new_aux == 0) {
             msg_format(_("やっと%s。", "You are no longer %s."), creature_ptr->prace == RACE_ANDROID ? _("怪我が直った", "leaking fluid") : _("出血が止まった", "bleeding"));
             if (disturb_state)
-                disturb(creature_ptr, FALSE, FALSE);
+                disturb(creature_ptr, FALSE, false);
         }
 
         notice = true;
@@ -576,7 +576,7 @@ bool set_cut(player_type *creature_ptr, TIME_EFFECT v)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     creature_ptr->redraw |= (PR_CUT);
     handle_stuff(creature_ptr);
index d18d73f..2565f62 100644 (file)
@@ -49,7 +49,7 @@ bool set_protevil(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
 
     handle_stuff(creature_ptr);
     return true;
@@ -108,7 +108,7 @@ bool set_invuln(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
 
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
@@ -151,7 +151,7 @@ bool set_tim_regen(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
 
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
@@ -194,7 +194,7 @@ bool set_tim_reflect(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
 
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
@@ -237,7 +237,7 @@ bool set_pass_wall(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
 
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
index 9d3e3c9..365bda3 100644 (file)
@@ -91,7 +91,7 @@ void reset_tim_flags(player_type *creature_ptr)
     if (creature_ptr->riding) {
         (void)set_monster_fast(creature_ptr, creature_ptr->riding, 0);
         (void)set_monster_slow(creature_ptr, creature_ptr->riding, 0);
-        (void)set_monster_invulner(creature_ptr, creature_ptr->riding, 0, FALSE);
+        (void)set_monster_invulner(creature_ptr, creature_ptr->riding, 0, false);
     }
 
     if (creature_ptr->pclass == CLASS_BARD) {
@@ -136,7 +136,7 @@ bool set_fast(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
     return true;
@@ -178,7 +178,7 @@ bool set_shield(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
     return true;
@@ -220,7 +220,7 @@ bool set_magicdef(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
     return true;
@@ -262,7 +262,7 @@ bool set_blessed(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
     return true;
@@ -304,7 +304,7 @@ bool set_hero(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     creature_ptr->update |= (PU_HP);
     handle_stuff(creature_ptr);
@@ -341,7 +341,7 @@ bool set_mimic(player_type *creature_ptr, TIME_EFFECT v, MIMIC_RACE_IDX p, bool
         if (creature_ptr->tim_mimic) {
             msg_print(_("変身が解けた。", "You are no longer transformed."));
             if (creature_ptr->mimic_form == MIMIC_DEMON)
-                set_oppose_fire(creature_ptr, 0, TRUE);
+                set_oppose_fire(creature_ptr, 0, true);
             creature_ptr->mimic_form = 0;
             notice = true;
             p = 0;
@@ -353,7 +353,7 @@ bool set_mimic(player_type *creature_ptr, TIME_EFFECT v, MIMIC_RACE_IDX p, bool
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, TRUE);
+        disturb(creature_ptr, FALSE, true);
 
     creature_ptr->redraw |= (PR_BASIC | PR_STATUS);
     creature_ptr->update |= (PU_BONUS | PU_HP);
@@ -403,7 +403,7 @@ bool set_shero(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     creature_ptr->update |= (PU_HP);
     handle_stuff(creature_ptr);
@@ -460,7 +460,7 @@ bool set_wraith_form(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
     return true;
@@ -493,8 +493,8 @@ bool set_tsuyoshi(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         if (creature_ptr->tsuyoshi) {
             msg_print(_("肉体が急速にしぼんでいった。", "Your body has quickly shriveled."));
 
-            (void)dec_stat(creature_ptr, A_CON, 20, TRUE);
-            (void)dec_stat(creature_ptr, A_STR, 20, TRUE);
+            (void)dec_stat(creature_ptr, A_CON, 20, true);
+            (void)dec_stat(creature_ptr, A_STR, 20, true);
 
             notice = true;
             chg_virtue(creature_ptr, V_VITALITY, -3);
@@ -508,7 +508,7 @@ bool set_tsuyoshi(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     creature_ptr->update |= (PU_HP);
     handle_stuff(creature_ptr);
index aa874c4..5e9da3f 100644 (file)
@@ -45,7 +45,7 @@ bool set_oppose_acid(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
     creature_ptr->redraw |= (PR_STATUS);
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     handle_stuff(creature_ptr);
     return true;
 }
@@ -86,7 +86,7 @@ bool set_oppose_elec(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
     creature_ptr->redraw |= (PR_STATUS);
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     handle_stuff(creature_ptr);
     return true;
 }
@@ -128,7 +128,7 @@ bool set_oppose_fire(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
     creature_ptr->redraw |= (PR_STATUS);
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     handle_stuff(creature_ptr);
     return true;
 }
@@ -168,7 +168,7 @@ bool set_oppose_cold(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
     creature_ptr->redraw |= (PR_STATUS);
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     handle_stuff(creature_ptr);
     return true;
 }
@@ -209,7 +209,7 @@ bool set_oppose_pois(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
     creature_ptr->redraw |= (PR_STATUS);
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     handle_stuff(creature_ptr);
     return true;
 }
index 66965cf..0bf0997 100644 (file)
@@ -93,7 +93,7 @@ void change_race(player_type *creature_ptr, player_race_type new_race, concptr e
     handle_stuff(creature_ptr);
 
     if (old_race != creature_ptr->prace)
-        autopick_load_pref(creature_ptr, FALSE);
+        autopick_load_pref(creature_ptr, false);
 
     lite_spot(creature_ptr, creature_ptr->y, creature_ptr->x);
 }
@@ -135,7 +135,7 @@ void do_poly_self(player_type *creature_ptr)
                 tmp++;
             }
 
-            (void)dec_stat(creature_ptr, A_CHR, randint1(6), TRUE);
+            (void)dec_stat(creature_ptr, A_CHR, randint1(6), true);
 
             if (sex_msg[0]) {
                 sprintf(effect_msg, _("奇形の%s", "deformed %s "), sex_msg);
index cc24032..f547e96 100644 (file)
@@ -46,7 +46,7 @@ bool set_tim_esp(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     creature_ptr->update |= (PU_MONSTERS);
     handle_stuff(creature_ptr);
@@ -89,7 +89,7 @@ bool set_tim_invis(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     creature_ptr->update |= (PU_MONSTERS);
     handle_stuff(creature_ptr);
@@ -132,7 +132,7 @@ bool set_tim_infra(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     creature_ptr->update |= (PU_MONSTERS);
     handle_stuff(creature_ptr);
index 23a82c4..708e9ff 100644 (file)
@@ -43,7 +43,7 @@ bool set_tim_levitation(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
     return true;
@@ -81,7 +81,7 @@ bool set_ultimate_res(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
 
@@ -120,7 +120,7 @@ bool set_tim_res_nether(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
     return true;
@@ -154,7 +154,7 @@ bool set_tim_res_time(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
         return false;
 
     if (disturb_state)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
     creature_ptr->update |= (PU_BONUS);
     handle_stuff(creature_ptr);
     return true;
index fe2618a..139682d 100644 (file)
@@ -144,7 +144,7 @@ void do_cmd_store(player_type *player_ptr)
             prt(_("w/t) 装備する/はずす", "w/t) Wear/Take off equipment"), 22 + xtra_stock, 56);
 
         prt(_("コマンド:", "You may: "), 20 + xtra_stock, 0);
-        request_command(player_ptr, TRUE);
+        request_command(player_ptr, true);
         store_process_command(player_ptr);
 
         bool need_redraw_store_inv = (player_ptr->update & PU_BONUS) ? TRUE : false;
index 54e3bfc..5b4a94b 100644 (file)
@@ -47,7 +47,7 @@
  */
 static std::optional<PRICE> prompt_to_buy(player_type *player_ptr, object_type *o_ptr)
 {
-    auto price_ask = price_item(player_ptr, o_ptr, ot_ptr->inflate, FALSE);
+    auto price_ask = price_item(player_ptr, o_ptr, ot_ptr->inflate, false);
     auto is_low_price = price_ask < LOW_PRICE_THRESHOLD;
 
     if (!is_low_price)
@@ -224,7 +224,7 @@ void store_purchase(player_type *player_ptr)
         return;
     }
 
-    PRICE best = price_item(player_ptr, j_ptr, ot_ptr->inflate, FALSE);
+    PRICE best = price_item(player_ptr, j_ptr, ot_ptr->inflate, false);
     if (o_ptr->number > 1) {
         if ((cur_store_num != STORE_HOME) && (o_ptr->ident & IDENT_FIXED)) {
             msg_format(_("一つにつき $%ldです。", "That costs %ld gold per item."), (long)(best));
index b9ef996..776bb43 100644 (file)
@@ -25,7 +25,7 @@ void store_owner_says_comment(player_type *player_ptr)
        if (one_in_(RUMOR_CHANCE))
        {
                msg_print(_("店主は耳うちした:", "The shopkeeper whispers something into your ear:"));
-               display_rumor(player_ptr, TRUE);
+               display_rumor(player_ptr, true);
        }
 }
 
index 65ec64d..981e0e4 100644 (file)
@@ -51,7 +51,7 @@
  */
 static std::optional<PRICE> prompt_to_sell(player_type *player_ptr, object_type *o_ptr)
 {
-    auto price_ask = price_item(player_ptr, o_ptr, ot_ptr->inflate, TRUE);
+    auto price_ask = price_item(player_ptr, o_ptr, ot_ptr->inflate, true);
     auto is_low_price = price_ask < LOW_PRICE_THRESHOLD;
 
     if (!is_low_price)
@@ -191,7 +191,7 @@ void store_sell(player_type *owner_ptr)
             inven_item_increase(owner_ptr, item, -amt);
             inven_item_describe(owner_ptr, item);
             if (o_ptr->number > 0)
-                autopick_alter_item(owner_ptr, item, FALSE);
+                autopick_alter_item(owner_ptr, item, false);
 
             inven_item_optimize(owner_ptr, item);
             int item_pos = store_carry(owner_ptr, q_ptr);
index ee478b9..0f529e7 100644 (file)
@@ -154,9 +154,9 @@ void store_process_command(player_type *client_ptr)
         else if (client_ptr->pclass == CLASS_ELEMENTALIST)
             do_cmd_element_browse(client_ptr);
         else if (client_ptr->pclass == CLASS_SMITH)
-            do_cmd_kaji(client_ptr, TRUE);
+            do_cmd_kaji(client_ptr, true);
         else if (client_ptr->pclass == CLASS_MAGIC_EATER)
-            do_cmd_magic_eater(client_ptr, TRUE, FALSE);
+            do_cmd_magic_eater(client_ptr, TRUE, false);
         else if (client_ptr->pclass == CLASS_SNIPER)
             do_cmd_snipe_browse(client_ptr);
         else
index f06d84d..879b5a8 100644 (file)
@@ -142,7 +142,7 @@ static bool calc_vertical_projection(player_type *player_ptr, projection_path_ty
         pp_ptr->k++;
     }
 
-    calc_projection_to_target(player_ptr, pp_ptr, TRUE);
+    calc_projection_to_target(player_ptr, pp_ptr, true);
     return true;
 }
 
@@ -161,7 +161,7 @@ static bool calc_horizontal_projection(player_type *player_ptr, projection_path_
         pp_ptr->k++;
     }
 
-    calc_projection_to_target(player_ptr, pp_ptr, FALSE);
+    calc_projection_to_target(player_ptr, pp_ptr, false);
     return true;
 }
 
index a4fe1f9..90c2d57 100644 (file)
@@ -105,7 +105,7 @@ void verify_panel(player_type *creature_ptr)
     panel_row_min = prow_min;
     panel_col_min = pcol_min;
     if (disturb_panel && !center_player)
-        disturb(creature_ptr, FALSE, FALSE);
+        disturb(creature_ptr, FALSE, false);
 
     panel_bounds_center();
     creature_ptr->update |= PU_MONSTERS;
index af7e166..224f2cb 100644 (file)
@@ -1823,7 +1823,7 @@ errr term_inkey(char *ch, bool wait, bool take)
         /* Process pending events while necessary */
         while (Term->key_head == Term->key_tail) {
             /* Process events (wait for one) */
-            term_xtra(TERM_XTRA_EVENT, TRUE);
+            term_xtra(TERM_XTRA_EVENT, true);
         }
     }
 
@@ -1832,7 +1832,7 @@ errr term_inkey(char *ch, bool wait, bool take)
         /* Process pending events if necessary */
         if (Term->key_head == Term->key_tail) {
             /* Process events (do not wait) */
-            term_xtra(TERM_XTRA_EVENT, FALSE);
+            term_xtra(TERM_XTRA_EVENT, false);
         }
     }
 
index 1da3e0c..b4fb573 100644 (file)
@@ -98,13 +98,13 @@ void display_entry(player_type *player_ptr, int pos)
 
     s32b x;
     if (o_ptr->ident & IDENT_FIXED) {
-        x = price_item(player_ptr, o_ptr, ot_ptr->inflate, FALSE);
+        x = price_item(player_ptr, o_ptr, ot_ptr->inflate, false);
         (void)sprintf(out_val, _("%9ld固", "%9ld F"), (long)x);
         put_str(out_val, i + 6, 68);
         return;
     }
 
-    x = price_item(player_ptr, o_ptr, ot_ptr->inflate, FALSE);
+    x = price_item(player_ptr, o_ptr, ot_ptr->inflate, false);
     if (x >= LOW_PRICE_THRESHOLD)
         x += x / 10;
 
index 146a035..7a554f9 100644 (file)
@@ -13,7 +13,7 @@ void display_short_flavors(player_type *player_ptr, flavor_type *flavor_ptr)
     flavor_ptr->tmp_val2[0] = '\0';
     if ((abbrev_extra || abbrev_all) && object_is_fully_known(flavor_ptr->o_ptr)) {
         if (!flavor_ptr->o_ptr->inscription || !angband_strchr(quark_str(flavor_ptr->o_ptr->inscription), '%')) {
-            bool kanji = _(TRUE, FALSE);
+            bool kanji = _(TRUE, false);
             get_ability_abbreviation(player_ptr, flavor_ptr->tmp_val2, flavor_ptr->o_ptr, kanji, abbrev_all);
         }
     }
index 8279704..4eb4251 100644 (file)
@@ -265,8 +265,8 @@ void print_frame_basic(player_type *creature_ptr)
     print_sp(creature_ptr);
     print_gold(creature_ptr);
     print_depth(creature_ptr);
-    health_redraw(creature_ptr, FALSE);
-    health_redraw(creature_ptr, TRUE);
+    health_redraw(creature_ptr, false);
+    health_redraw(creature_ptr, true);
 }
 
 /*!
index 832ebad..849b545 100644 (file)
@@ -216,7 +216,7 @@ bool exe_cmd_debug(player_type *creature_ptr, char cmd)
             for (int x = 0; x < creature_ptr->current_floor_ptr->width; x++)
                 creature_ptr->current_floor_ptr->grid_array[y][x].info |= CAVE_GLOW | CAVE_MARK;
 
-        wiz_lite(creature_ptr, FALSE);
+        wiz_lite(creature_ptr, false);
         break;
     case 'w':
         wiz_lite(creature_ptr, (bool)(creature_ptr->pclass == CLASS_NINJA));
@@ -285,7 +285,7 @@ void do_cmd_debug(player_type *creature_ptr)
     while (true) {
         screen_save();
         display_debug_menu(page, max_page, page_size, max_line);
-        get_com("Debug Command: ", &cmd, FALSE);
+        get_com("Debug Command: ", &cmd, false);
         screen_load();
 
         if (exe_cmd_debug(creature_ptr, cmd))
index a448747..2f264c2 100644 (file)
@@ -69,7 +69,7 @@ void wizard_game_modifier(player_type *creature_ptr)
     display_wizard_game_modifier_menu();
 
     char cmd;
-    get_com("Player Command: ", &cmd, FALSE);
+    get_com("Player Command: ", &cmd, false);
     screen_load();
 
     switch (cmd) {
index 9f08846..3a80dbb 100644 (file)
@@ -114,7 +114,7 @@ void wizard_item_modifier(player_type *creature_ptr)
     display_wizard_sub_menu();
 
     char cmd;
-    get_com("Player Command: ", &cmd, FALSE);
+    get_com("Player Command: ", &cmd, false);
     screen_load();
 
     switch (cmd) {
@@ -133,7 +133,7 @@ void wizard_item_modifier(player_type *creature_ptr)
         if (command_arg <= 0)
             command_arg = 1;
 
-        acquirement(creature_ptr, creature_ptr->y, creature_ptr->x, command_arg, TRUE, FALSE, TRUE);
+        acquirement(creature_ptr, creature_ptr->y, creature_ptr->x, command_arg, TRUE, FALSE, true);
         break;
     case 'f':
         identify_fully(creature_ptr, FALSE, TV_NONE);
@@ -142,7 +142,7 @@ void wizard_item_modifier(player_type *creature_ptr)
         if (command_arg <= 0)
             command_arg = 1;
 
-        acquirement(creature_ptr, creature_ptr->y, creature_ptr->x, command_arg, FALSE, FALSE, TRUE);
+        acquirement(creature_ptr, creature_ptr->y, creature_ptr->x, command_arg, FALSE, FALSE, true);
         break;
     case 'i':
         (void)ident_spell(creature_ptr, FALSE, TV_NONE);
@@ -157,13 +157,13 @@ void wizard_item_modifier(player_type *creature_ptr)
         if (command_arg <= 0)
             command_arg = 1;
 
-        acquirement(creature_ptr, creature_ptr->y, creature_ptr->x, command_arg, TRUE, TRUE, TRUE);
+        acquirement(creature_ptr, creature_ptr->y, creature_ptr->x, command_arg, TRUE, TRUE, true);
         break;
     case 'U':
         wiz_modify_item_activation(creature_ptr);
         break;
     case 'w':
-        do_cmd_wishing(creature_ptr, -1, TRUE, TRUE, TRUE);
+        do_cmd_wishing(creature_ptr, -1, TRUE, TRUE, true);
         break;
     }
 }
@@ -550,7 +550,7 @@ static void wiz_reroll_item(player_type *owner_ptr, object_type *o_ptr)
             q_ptr->prep(owner_ptr, o_ptr->k_idx);
             apply_magic_to_object(owner_ptr, q_ptr, owner_ptr->current_floor_ptr->dun_level, AM_GOOD | AM_GREAT | AM_SPECIAL);
             if (!object_is_artifact(q_ptr))
-                become_random_artifact(owner_ptr, q_ptr, FALSE);
+                become_random_artifact(owner_ptr, q_ptr, false);
 
             break;
         default:
index 1514347..365f9df 100644 (file)
@@ -60,7 +60,7 @@ void wizard_player_modifier(player_type *creature_ptr)
     display_wizard_player_modifier_menu();
 
     char cmd;
-    get_com("Player Command: ", &cmd, FALSE);
+    get_com("Player Command: ", &cmd, false);
     screen_load();
 
     switch (cmd) {
index fd7cfed..3786d43 100644 (file)
@@ -97,8 +97,8 @@
  */
 void wiz_cure_all(player_type *creature_ptr)
 {
-    (void)life_stream(creature_ptr, FALSE, FALSE);
-    (void)restore_mana(creature_ptr, TRUE);
+    (void)life_stream(creature_ptr, FALSE, false);
+    (void)restore_mana(creature_ptr, true);
     (void)set_food(creature_ptr, PY_FOOD_MAX - 1);
 }
 
@@ -470,7 +470,7 @@ void wiz_jump_to_dungeon(player_type *creature_ptr)
 
     msg_format("You jump to dungeon level %d.", command_arg);
     if (autosave_l)
-        do_cmd_save_game(creature_ptr, TRUE);
+        do_cmd_save_game(creature_ptr, true);
 
     creature_ptr->current_floor_ptr->dun_level = command_arg;
     prepare_change_floor_mode(creature_ptr, CFM_RAND_PLACE);
@@ -720,8 +720,8 @@ void cheat_death(player_type *creature_ptr)
     msg_print(NULL);
 
     creature_ptr->is_dead = false;
-    (void)life_stream(creature_ptr, FALSE, FALSE);
-    (void)restore_mana(creature_ptr, TRUE);
+    (void)life_stream(creature_ptr, FALSE, false);
+    (void)restore_mana(creature_ptr, true);
     (void)recall_player(creature_ptr, 0);
     reserve_alter_reality(creature_ptr, 0);
 
index e54d320..18c6260 100644 (file)
@@ -33,14 +33,14 @@ void execute_recall(player_type *creature_ptr)
         return;
 
     if (autosave_l && (creature_ptr->word_recall == 1) && !creature_ptr->phase_out)
-        do_cmd_save_game(creature_ptr, TRUE);
+        do_cmd_save_game(creature_ptr, true);
 
     creature_ptr->word_recall--;
     creature_ptr->redraw |= (PR_STATUS);
     if (creature_ptr->word_recall != 0)
         return;
 
-    disturb(creature_ptr, FALSE, TRUE);
+    disturb(creature_ptr, FALSE, true);
     floor_type *floor_ptr = creature_ptr->current_floor_ptr;
     if (floor_ptr->dun_level || creature_ptr->current_floor_ptr->inside_quest || creature_ptr->enter_dungeon) {
         msg_print(_("上に引っ張りあげられる感じがする!", "You feel yourself yanked upwards!"));
@@ -125,14 +125,14 @@ void execute_floor_reset(player_type *creature_ptr)
         return;
 
     if (autosave_l && (creature_ptr->alter_reality == 1) && !creature_ptr->phase_out)
-        do_cmd_save_game(creature_ptr, TRUE);
+        do_cmd_save_game(creature_ptr, true);
 
     creature_ptr->alter_reality--;
     creature_ptr->redraw |= (PR_STATUS);
     if (creature_ptr->alter_reality != 0)
         return;
 
-    disturb(creature_ptr, FALSE, TRUE);
+    disturb(creature_ptr, FALSE, true);
     if (!quest_number(creature_ptr, floor_ptr->dun_level) && floor_ptr->dun_level) {
         msg_print(_("世界が変わった!", "The world changes!"));
 
index 275bffb..4308f8f 100644 (file)
@@ -120,7 +120,7 @@ void process_world(player_type *player_ptr)
 
     if (autosave_t && autosave_freq && !player_ptr->phase_out) {
         if (!(current_world_ptr->game_turn % ((s32b)autosave_freq * TURNS_PER_TICK)))
-            do_cmd_save_game(player_ptr, TRUE);
+            do_cmd_save_game(player_ptr, true);
     }
 
     if (floor_ptr->monster_noise && !ignore_unview) {
@@ -181,7 +181,7 @@ void process_world(player_type *player_ptr)
     if (!hour && !min) {
         if (min != prev_min) {
             exe_write_diary(player_ptr, DIARY_DIALY, 0, NULL);
-            determine_daily_bounty(player_ptr, FALSE);
+            determine_daily_bounty(player_ptr, false);
         }
     }
 
@@ -191,7 +191,7 @@ void process_world(player_type *player_ptr)
      */
     if (ironman_nightmare && (min != prev_min)) {
         if ((hour == 23) && !(min % 15)) {
-            disturb(player_ptr, FALSE, TRUE);
+            disturb(player_ptr, FALSE, true);
             switch (min / 15) {
             case 0:
                 msg_print(_("遠くで不気味な鐘の音が鳴った。", "You hear a distant bell toll ominously."));
@@ -212,12 +212,12 @@ void process_world(player_type *player_ptr)
         }
 
         if (!hour && !min) {
-            disturb(player_ptr, TRUE, TRUE);
+            disturb(player_ptr, TRUE, true);
             msg_print(_("遠くで鐘が何回も鳴り、死んだような静けさの中へ消えていった。", "A distant bell tolls many times, fading into an deathly silence."));
             if (player_ptr->wild_mode) {
                 player_ptr->oldpy = randint1(MAX_HGT - 2);
                 player_ptr->oldpx = randint1(MAX_WID - 2);
-                change_wild_mode(player_ptr, TRUE);
+                change_wild_mode(player_ptr, true);
                 PlayerEnergy(player_ptr).set_player_turn_energy(100);
             }