OSDN Git Service

[Refactor] #1558 Renamed player_type::image to player_type::hallucinated
[hengbandforosx/hengbandosx.git] / src / effect / effect-player-spirit.cpp
index 4ca89db..72f8a45 100644 (file)
@@ -82,7 +82,7 @@ void effect_player_mind_blast(player_type *player_ptr, effect_player_type *ep_pt
     }
 
     if (!has_resist_chaos(player_ptr) && one_in_(3)) {
-        (void)set_image(player_ptr, player_ptr->image + randint0(250) + 150);
+        (void)hallucination(player_ptr, player_ptr->hallucinated + randint0(250) + 150);
     }
 
     player_ptr->csp -= 50;
@@ -138,6 +138,6 @@ void effect_player_brain_smash(player_type *player_ptr, effect_player_type *ep_p
         (void)do_dec_stat(player_ptr, A_WIS);
 
     if (!has_resist_chaos(player_ptr)) {
-        (void)set_image(player_ptr, player_ptr->image + randint0(250) + 150);
+        (void)hallucination(player_ptr, player_ptr->hallucinated + randint0(250) + 150);
     }
 }