OSDN Git Service

[Refactor] #1558 Renamed player_type::image to player_type::hallucinated
[hengbandforosx/hengbandosx.git] / src / object-use / quaff-execution.cpp
index 52e7d44..9fbfa92 100644 (file)
@@ -74,7 +74,7 @@ static bool booze(player_type *player_ptr)
         return ident;
     }
 
-    if (one_in_(2) && set_image(player_ptr, player_ptr->image + randint0(150) + 150)) {
+    if (one_in_(2) && hallucination(player_ptr, player_ptr->hallucinated + randint0(150) + 150)) {
         ident = true;
     }
 
@@ -539,7 +539,7 @@ void exe_quaff_potion(player_type *player_ptr, INVENTORY_IDX item)
             break;
 
         case SV_POTION_NEO_TSUYOSHI:
-            (void)set_image(player_ptr, 0);
+            (void)hallucination(player_ptr, 0);
             (void)set_tsuyoshi(player_ptr, player_ptr->tsuyoshi + randint1(100) + 100, false);
             ident = true;
             break;
@@ -550,7 +550,7 @@ void exe_quaff_potion(player_type *player_ptr, INVENTORY_IDX item)
             player_ptr->tsuyoshi = 1;
             (void)set_tsuyoshi(player_ptr, 0, true);
             if (!has_resist_chaos(player_ptr)) {
-                (void)set_image(player_ptr, 50 + randint1(50));
+                (void)hallucination(player_ptr, 50 + randint1(50));
             }
             ident = true;
             break;