OSDN Git Service

[Refactor] #1571 Removed unnecessary headers in spells-object.cpp
authorHourier <66951241+Hourier@users.noreply.github.com>
Fri, 24 Sep 2021 10:13:37 +0000 (19:13 +0900)
committerHourier <66951241+Hourier@users.noreply.github.com>
Sun, 26 Sep 2021 01:14:20 +0000 (10:14 +0900)
src/object-activation/activation-switcher.cpp
src/specific-object/stone-of-lore.cpp
src/spell/spells-object.cpp

index d239147..574523a 100644 (file)
@@ -333,7 +333,6 @@ bool switch_activation(player_type *player_ptr, object_type **o_ptr_ptr, const a
     case ACT_RECHARGE_XTRA:
         return activate_recharge_extra(player_ptr, name);
     case ACT_LORE:
-        msg_print(_("石が隠された秘密を写し出した...", "The stone reveals hidden mysteries..."));
         return StoneOfLore(player_ptr).perilous_secrets();
     case ACT_SHIKOFUMI:
         return activate_shikofumi(player_ptr);
index a35d93a..690bcc8 100644 (file)
@@ -27,6 +27,7 @@ StoneOfLore::StoneOfLore(player_type *player_ptr)
  */
 bool StoneOfLore::perilous_secrets()
 {
+    msg_print(_("石が隠された秘密を写し出した...", "The stone reveals hidden mysteries..."));
     if (!ident_spell(this->player_ptr, false)) {
         return false;
     }
index 18dfed4..c0e9611 100644 (file)
@@ -6,7 +6,6 @@
 
 #include "spell/spells-object.h"
 #include "avatar/avatar.h"
-#include "core/player-redraw-types.h"
 #include "core/player-update-types.h"
 #include "core/window-redrawer.h"
 #include "flavor/flavor-describer.h"
 #include "object/object-kind.h"
 #include "perception/object-perception.h"
 #include "player-info/class-info.h"
-#include "player/player-damage.h"
 #include "racial/racial-android.h"
-#include "spell-kind/spells-perception.h"
-#include "status/bad-status-setter.h"
 #include "sv-definition/sv-other-types.h"
 #include "sv-definition/sv-scroll-types.h"
 #include "sv-definition/sv-weapon-types.h"