OSDN Git Service

[Refactor] #38997 crusade() に player_type * 引数を追加. / Add player_type * argument to...
authordeskull <deskull@users.sourceforge.jp>
Wed, 1 Jan 2020 10:11:09 +0000 (19:11 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Wed, 1 Jan 2020 10:11:09 +0000 (19:11 +0900)
src/realm-crusade.c
src/spells.h
src/spells2.c

index b808049..05155db 100644 (file)
@@ -549,7 +549,7 @@ concptr do_crusade_spell(player_type *caster_ptr, SPELL_IDX spell, BIT_FLAGS mod
                                int sp_base = plev;
 
                                int i;
-                               crusade();
+                               crusade(caster_ptr);
                                for (i = 0; i < 12; i++)
                                {
                                        int attempt = 10;
index 4098f7f..3556e9d 100644 (file)
@@ -190,7 +190,7 @@ extern bool dispel_living(HIT_POINT dam);
 extern bool dispel_demons(HIT_POINT dam);
 extern bool cleansing_nova(player_type *creature_ptr, bool magic, bool powerful);
 extern bool unleash_mana_storm(player_type *creature_ptr, bool powerful);
-extern bool crusade(void);
+extern bool crusade(player_type *caster_ptr);
 extern bool turn_undead(void);
 extern void lite_room(POSITION y1, POSITION x1);
 extern bool starlight(bool magic);
index fac1778..2fc77ba 100644 (file)
@@ -958,9 +958,9 @@ bool dispel_demons(HIT_POINT dam)
  * @brief 視界内のモンスターに「聖戦」効果を与える処理
  * @return 効力があった場合TRUEを返す
  */
-bool crusade(void)
+bool crusade(player_type *caster_ptr)
 {
-       return (project_all_los(p_ptr, GF_CRUSADE, p_ptr->lev*4));
+       return (project_all_los(caster_ptr, GF_CRUSADE, caster_ptr->lev*4));
 }
 
 /*!