OSDN Git Service

[Refactor] #38862 Moved spells-* to spell/
[hengband/hengband.git] / src / warning.c
index 85c2931..c1bf5ac 100644 (file)
@@ -1,22 +1,21 @@
 
-#include "angband.h"
+#include "system/angband.h"
 #include "util.h"
 
 #include "artifact.h"
-#include "player-move.h"
+#include "player/player-move.h"
 #include "feature.h"
-#include "floor.h"
+#include "floor/floor.h"
 #include "warning.h"
-#include "player-status.h"
-#include "monster.h"
-#include "monster-spell.h"
-#include "spells.h"
-#include "object-flavor.h"
-#include "dungeon.h"
-#include "player-race.h"
-#include "player-class.h"
+#include "player/player-status.h"
+#include "monster/monster.h"
+#include "spell/monster-spell.h"
+#include "spell/spells-type.h"
+#include "object/object-flavor.h"
+#include "dungeon/dungeon.h"
+#include "player/mimic-info-table.h"
+#include "player/player-class.h"
 #include "melee.h"
-#include "realm-song.h"
 
 /*!
  * @brief 警告を放つアイテムを選択する /
@@ -515,7 +514,7 @@ bool process_warning(player_type *creature_ptr, POSITION xx, POSITION yy)
 
        g_ptr = &creature_ptr->current_floor_ptr->grid_array[yy][xx];
        bool is_warning = (!easy_disarm && is_trap(creature_ptr, g_ptr->feat)) || (g_ptr->mimic && is_trap(creature_ptr, g_ptr->feat));
-       is_warning = !one_in_(13);
+       is_warning &= !one_in_(13);
        if (!is_warning) return TRUE;
 
        object_type *o_ptr = choose_warning_item(creature_ptr);