OSDN Git Service

[Refactor] #38997 fire_breath() に player_type * 引数を追加. / Add player_type * argument...
authordeskull <deskull@users.sourceforge.jp>
Sat, 14 Dec 2019 07:41:49 +0000 (16:41 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Sat, 14 Dec 2019 07:41:49 +0000 (16:41 +0900)
src/cmd/cmd-activate.c
src/cmd/cmd-mane.c
src/cmd/cmd-zapwand.c
src/mspells3.c
src/mutation.c
src/spells.h
src/spells2.c

index 36b896f..5d5609a 100644 (file)
@@ -680,7 +680,7 @@ static bool activate_dragon_breath(player_type *user_ptr, object_type *o_ptr)
 
        t = randint0(n);
        msg_format(_("あなたは%sのブレスを吐いた。", "You breathe %s."), name[t]);
-       fire_breath(type[t], dir, 250, 4);
+       fire_breath(user_ptr, type[t], dir, 250, 4);
 
        return TRUE;
 }
@@ -930,7 +930,7 @@ bool activate_artifact(player_type *user_ptr, object_type *o_ptr)
        {
                if (!get_aim_dir(&dir)) return FALSE;
                msg_print(_("あなたはエレメントのブレスを吐いた。", "You breathe the elements."));
-               fire_breath(GF_MISSILE, dir, 300, 4);
+               fire_breath(user_ptr, GF_MISSILE, dir, 300, 4);
                break;
        }
 
@@ -1024,7 +1024,7 @@ bool activate_artifact(player_type *user_ptr, object_type *o_ptr)
        {
                if (!get_aim_dir(&dir)) return FALSE;
                msg_print(_("あなたはエレメントのブレスを吐いた。", "You breathe the elements."));
-               fire_breath(GF_MISSILE, dir, 300, 4);
+               fire_breath(user_ptr, GF_MISSILE, dir, 300, 4);
                msg_print(_("鎧が様々な色に輝いた...", "Your armor glows many colours..."));
                (void)set_afraid(user_ptr, 0);
                (void)set_hero(user_ptr, randint1(50) + 50, FALSE);
@@ -1041,7 +1041,7 @@ bool activate_artifact(player_type *user_ptr, object_type *o_ptr)
        case ACT_BR_FIRE:
        {
                if (!get_aim_dir(&dir)) return FALSE;
-               fire_breath(GF_FIRE, dir, 200, 2);
+               fire_breath(user_ptr, GF_FIRE, dir, 200, 2);
                if ((o_ptr->tval == TV_RING) && (o_ptr->sval == SV_RING_FLAMES))
                {
                        (void)set_oppose_fire(user_ptr, randint1(20) + 20, FALSE);
@@ -1052,7 +1052,7 @@ bool activate_artifact(player_type *user_ptr, object_type *o_ptr)
        case ACT_BR_COLD:
        {
                if (!get_aim_dir(&dir)) return FALSE;
-               fire_breath(GF_COLD, dir, 200, 2);
+               fire_breath(user_ptr, GF_COLD, dir, 200, 2);
                if ((o_ptr->tval == TV_RING) && (o_ptr->sval == SV_RING_ICE))
                {
                        (void)set_oppose_cold(user_ptr, randint1(20) + 20, FALSE);
index 3305430..49dac74 100644 (file)
@@ -323,124 +323,124 @@ static bool use_mane(player_type *caster_ptr, int spell)
        case MS_BR_ACID:
                if (!get_aim_dir(&dir)) return FALSE;
                else msg_print(_("酸のブレスを吐いた。", "You breathe acid."));
-               fire_breath(GF_ACID, dir, damage, (plev > 35 ? 3 : 2));
+               fire_breath(caster_ptr, GF_ACID, dir, damage, (plev > 35 ? 3 : 2));
                break;
 
        case MS_BR_ELEC:
                if (!get_aim_dir(&dir)) return FALSE;
                else msg_print(_("稲妻のブレスを吐いた。", "You breathe lightning."));
-               fire_breath(GF_ELEC, dir, damage, (plev > 35 ? 3 : 2));
+               fire_breath(caster_ptr, GF_ELEC, dir, damage, (plev > 35 ? 3 : 2));
                break;
 
        case MS_BR_FIRE:
                if (!get_aim_dir(&dir)) return FALSE;
                else msg_print(_("火炎のブレスを吐いた。", "You breathe fire."));
-               fire_breath(GF_FIRE, dir, damage, (plev > 35 ? 3 : 2));
+               fire_breath(caster_ptr, GF_FIRE, dir, damage, (plev > 35 ? 3 : 2));
                break;
 
        case MS_BR_COLD:
                if (!get_aim_dir(&dir)) return FALSE;
                else msg_print(_("冷気のブレスを吐いた。", "You breathe frost."));
-               fire_breath(GF_COLD, dir, damage, (plev > 35 ? 3 : 2));
+               fire_breath(caster_ptr, GF_COLD, dir, damage, (plev > 35 ? 3 : 2));
                break;
 
        case MS_BR_POIS:
                if (!get_aim_dir(&dir)) return FALSE;
                else msg_print(_("ガスのブレスを吐いた。", "You breathe gas."));
-               fire_breath(GF_POIS, dir, damage, (plev > 35 ? 3 : 2));
+               fire_breath(caster_ptr, GF_POIS, dir, damage, (plev > 35 ? 3 : 2));
                break;
 
        case MS_BR_NETHER:
                if (!get_aim_dir(&dir)) return FALSE;
                else msg_print(_("地獄のブレスを吐いた。", "You breathe nether."));
-               fire_breath(GF_NETHER, dir, damage, (plev > 35 ? 3 : 2));
+               fire_breath(caster_ptr, GF_NETHER, dir, damage, (plev > 35 ? 3 : 2));
                break;
 
        case MS_BR_LITE:
                if (!get_aim_dir(&dir)) return FALSE;
                else msg_print(_("閃光のブレスを吐いた。", "You breathe light."));
-               fire_breath(GF_LITE, dir, damage, (plev > 35 ? 3 : 2));
+               fire_breath(caster_ptr, GF_LITE, dir, damage, (plev > 35 ? 3 : 2));
                break;
 
        case MS_BR_DARK:
                if (!get_aim_dir(&dir)) return FALSE;
                else msg_print(_("暗黒のブレスを吐いた。", "You breathe darkness."));
-               fire_breath(GF_DARK, dir, damage, (plev > 35 ? 3 : 2));
+               fire_breath(caster_ptr, GF_DARK, dir, damage, (plev > 35 ? 3 : 2));
                break;
 
        case MS_BR_CONF:
                if (!get_aim_dir(&dir)) return FALSE;
                else msg_print(_("混乱のブレスを吐いた。", "You breathe confusion."));
-               fire_breath(GF_CONFUSION, dir, damage, (plev > 35 ? 3 : 2));
+               fire_breath(caster_ptr, GF_CONFUSION, dir, damage, (plev > 35 ? 3 : 2));
                break;
 
        case MS_BR_SOUND:
                if (!get_aim_dir(&dir)) return FALSE;
                else msg_print(_("轟音のブレスを吐いた。", "You breathe sound."));
-               fire_breath(GF_SOUND, dir, damage, (plev > 35 ? 3 : 2));
+               fire_breath(caster_ptr, GF_SOUND, dir, damage, (plev > 35 ? 3 : 2));
                break;
 
        case MS_BR_CHAOS:
                if (!get_aim_dir(&dir)) return FALSE;
                else msg_print(_("カオスのブレスを吐いた。", "You breathe chaos."));
-               fire_breath(GF_CHAOS, dir, damage, (plev > 35 ? 3 : 2));
+               fire_breath(caster_ptr, GF_CHAOS, dir, damage, (plev > 35 ? 3 : 2));
                break;
 
        case MS_BR_DISEN:
                if (!get_aim_dir(&dir)) return FALSE;
                else msg_print(_("劣化のブレスを吐いた。", "You breathe disenchantment."));
-               fire_breath(GF_DISENCHANT, dir, damage, (plev > 35 ? 3 : 2));
+               fire_breath(caster_ptr, GF_DISENCHANT, dir, damage, (plev > 35 ? 3 : 2));
                break;
 
        case MS_BR_NEXUS:
                if (!get_aim_dir(&dir)) return FALSE;
                else msg_print(_("因果混乱のブレスを吐いた。", "You breathe nexus."));
-                       fire_breath(GF_NEXUS, dir, damage, (plev > 35 ? 3 : 2));
+                       fire_breath(caster_ptr, GF_NEXUS, dir, damage, (plev > 35 ? 3 : 2));
                break;
 
        case MS_BR_TIME:
                if (!get_aim_dir(&dir)) return FALSE;
                else msg_print(_("時間逆転のブレスを吐いた。", "You breathe time."));
-               fire_breath(GF_TIME, dir, damage, (plev > 35 ? 3 : 2));
+               fire_breath(caster_ptr, GF_TIME, dir, damage, (plev > 35 ? 3 : 2));
                break;
 
        case MS_BR_INERTIA:
                if (!get_aim_dir(&dir)) return FALSE;
                else msg_print(_("遅鈍のブレスを吐いた。", "You breathe inertia."));
-                       fire_breath(GF_INERTIAL, dir, damage, (plev > 35 ? 3 : 2));
+                       fire_breath(caster_ptr, GF_INERTIAL, dir, damage, (plev > 35 ? 3 : 2));
                break;
 
        case MS_BR_GRAVITY:
                if (!get_aim_dir(&dir)) return FALSE;
                else msg_print(_("重力のブレスを吐いた。", "You breathe gravity."));         
-               fire_breath(GF_GRAVITY, dir, damage, (plev > 35 ? 3 : 2));
+               fire_breath(caster_ptr, GF_GRAVITY, dir, damage, (plev > 35 ? 3 : 2));
                break;
 
        case MS_BR_SHARDS:
                if (!get_aim_dir(&dir)) return FALSE;
                else msg_print(_("破片のブレスを吐いた。", "You breathe shards."));
-               fire_breath(GF_SHARDS, dir, damage, (plev > 35 ? 3 : 2));
+               fire_breath(caster_ptr, GF_SHARDS, dir, damage, (plev > 35 ? 3 : 2));
                break;
 
        case MS_BR_PLASMA:
                if (!get_aim_dir(&dir)) return FALSE;
                else msg_print(_("プラズマのブレスを吐いた。", "You breathe plasma."));
                
-               fire_breath(GF_PLASMA, dir, damage, (plev > 35 ? 3 : 2));
+               fire_breath(caster_ptr, GF_PLASMA, dir, damage, (plev > 35 ? 3 : 2));
                break;
 
        case MS_BR_FORCE:
                if (!get_aim_dir(&dir)) return FALSE;
                else msg_print(_("フォースのブレスを吐いた。", "You breathe force."));
                
-               fire_breath(GF_FORCE, dir, damage, (plev > 35 ? 3 : 2));
+               fire_breath(caster_ptr, GF_FORCE, dir, damage, (plev > 35 ? 3 : 2));
                break;
 
        case MS_BR_MANA:
                if (!get_aim_dir(&dir)) return FALSE;
                else msg_print(_("魔力のブレスを吐いた。", "You breathe mana."));
                
-               fire_breath(GF_MANA, dir, damage, (plev > 35 ? 3 : 2));
+               fire_breath(caster_ptr, GF_MANA, dir, damage, (plev > 35 ? 3 : 2));
                break;
 
        case MS_BALL_NUKE:
@@ -454,7 +454,7 @@ static bool use_mane(player_type *caster_ptr, int spell)
                if (!get_aim_dir(&dir)) return FALSE;
                else msg_print(_("放射性廃棄物のブレスを吐いた。", "You breathe toxic waste."));
                
-               fire_breath(GF_NUKE, dir, damage, (plev > 35 ? 3 : 2));
+               fire_breath(caster_ptr, GF_NUKE, dir, damage, (plev > 35 ? 3 : 2));
                break;
 
        case MS_BALL_CHAOS:
@@ -467,7 +467,7 @@ static bool use_mane(player_type *caster_ptr, int spell)
                if (!get_aim_dir(&dir)) return FALSE;
                else msg_print(_("分解のブレスを吐いた。", "You breathe disintegration."));
                
-               fire_breath(GF_DISINTEGRATE, dir, damage, (plev > 35 ? 3 : 2));
+               fire_breath(caster_ptr, GF_DISINTEGRATE, dir, damage, (plev > 35 ? 3 : 2));
                break;
        case MS_BALL_ACID:
                if (!get_aim_dir(&dir)) return FALSE;
index 332ee95..ad03660 100644 (file)
@@ -225,14 +225,14 @@ bool wand_effect(player_type *creature_ptr, OBJECT_SUBTYPE_VALUE sval, DIRECTION
 
                case SV_WAND_DRAGON_FIRE:
                {
-                       fire_breath(GF_FIRE, dir, (powerful ? 300 : 200), 3);
+                       fire_breath(creature_ptr, GF_FIRE, dir, (powerful ? 300 : 200), 3);
                        ident = TRUE;
                        break;
                }
 
                case SV_WAND_DRAGON_COLD:
                {
-                       fire_breath(GF_COLD, dir, (powerful ? 270 : 180), 3);
+                       fire_breath(creature_ptr, GF_COLD, dir, (powerful ? 270 : 180), 3);
                        ident = TRUE;
                        break;
                }
@@ -268,7 +268,7 @@ bool wand_effect(player_type *creature_ptr, OBJECT_SUBTYPE_VALUE sval, DIRECTION
 
                        if (powerful) dam = (dam * 3) / 2;
 
-                       fire_breath(typ, dir, dam, 3);
+                       fire_breath(creature_ptr, typ, dir, dam, 3);
 
                        ident = TRUE;
                        break;
index 2e9bd21..cc0a1f0 100644 (file)
@@ -895,140 +895,140 @@ static bool cast_learned_spell(int spell, bool success)
 
         msg_print(_("酸のブレスを吐いた。", "You breathe acid."));
         damage = monspell_bluemage_damage((MS_BR_ACID), plev, DAM_ROLL);
-               fire_breath(GF_ACID, dir, damage, (plev > 40 ? 3 : 2));
+               fire_breath(p_ptr, GF_ACID, dir, damage, (plev > 40 ? 3 : 2));
                break;
        case MS_BR_ELEC:
                if (!get_aim_dir(&dir)) return FALSE;
 
         msg_print(_("稲妻のブレスを吐いた。", "You breathe lightning."));
         damage = monspell_bluemage_damage((MS_BR_ELEC), plev, DAM_ROLL);
-               fire_breath(GF_ELEC, dir, damage, (plev > 40 ? 3 : 2));
+               fire_breath(p_ptr, GF_ELEC, dir, damage, (plev > 40 ? 3 : 2));
                break;
        case MS_BR_FIRE:
                if (!get_aim_dir(&dir)) return FALSE;
 
         msg_print(_("火炎のブレスを吐いた。", "You breathe fire."));
         damage = monspell_bluemage_damage((MS_BR_FIRE), plev, DAM_ROLL);
-               fire_breath(GF_FIRE, dir, damage, (plev > 40 ? 3 : 2));
+               fire_breath(p_ptr, GF_FIRE, dir, damage, (plev > 40 ? 3 : 2));
                break;
        case MS_BR_COLD:
         if (!get_aim_dir(&dir)) return FALSE;
 
         msg_print(_("冷気のブレスを吐いた。", "You breathe frost."));
         damage = monspell_bluemage_damage((MS_BR_COLD), plev, DAM_ROLL);
-               fire_breath(GF_COLD, dir, damage, (plev > 40 ? 3 : 2));
+               fire_breath(p_ptr, GF_COLD, dir, damage, (plev > 40 ? 3 : 2));
                break;
        case MS_BR_POIS:
         if (!get_aim_dir(&dir)) return FALSE;
 
         msg_print(_("ガスのブレスを吐いた。", "You breathe gas."));
         damage = monspell_bluemage_damage((MS_BR_POIS), plev, DAM_ROLL);
-               fire_breath(GF_POIS, dir, damage, (plev > 40 ? 3 : 2));
+               fire_breath(p_ptr, GF_POIS, dir, damage, (plev > 40 ? 3 : 2));
                break;
        case MS_BR_NETHER:
         if (!get_aim_dir(&dir)) return FALSE;
 
         msg_print(_("地獄のブレスを吐いた。", "You breathe nether."));
         damage = monspell_bluemage_damage((MS_BR_NETHER), plev, DAM_ROLL);
-               fire_breath(GF_NETHER, dir, damage, (plev > 40 ? 3 : 2));
+               fire_breath(p_ptr, GF_NETHER, dir, damage, (plev > 40 ? 3 : 2));
                break;
        case MS_BR_LITE:
                if (!get_aim_dir(&dir)) return FALSE;
 
         msg_print(_("閃光のブレスを吐いた。", "You breathe light."));
         damage = monspell_bluemage_damage((MS_BR_LITE), plev, DAM_ROLL);
-               fire_breath(GF_LITE, dir, damage, (plev > 40 ? 3 : 2));
+               fire_breath(p_ptr, GF_LITE, dir, damage, (plev > 40 ? 3 : 2));
                break;
        case MS_BR_DARK:
                if (!get_aim_dir(&dir)) return FALSE;
 
         msg_print(_("暗黒のブレスを吐いた。", "You breathe darkness."));
         damage = monspell_bluemage_damage((MS_BR_DARK), plev, DAM_ROLL);
-               fire_breath(GF_DARK, dir, damage, (plev > 40 ? 3 : 2));
+               fire_breath(p_ptr, GF_DARK, dir, damage, (plev > 40 ? 3 : 2));
                break;
        case MS_BR_CONF:
                if (!get_aim_dir(&dir)) return FALSE;
 
         msg_print(_("混乱のブレスを吐いた。", "You breathe confusion."));
         damage = monspell_bluemage_damage((MS_BR_CONF), plev, DAM_ROLL);
-               fire_breath(GF_CONFUSION, dir, damage, (plev > 40 ? 3 : 2));
+               fire_breath(p_ptr, GF_CONFUSION, dir, damage, (plev > 40 ? 3 : 2));
                break;
        case MS_BR_SOUND:
                if (!get_aim_dir(&dir)) return FALSE;
 
         msg_print(_("轟音のブレスを吐いた。", "You breathe sound."));
         damage = monspell_bluemage_damage((MS_BR_SOUND), plev, DAM_ROLL);
-               fire_breath(GF_SOUND, dir, damage, (plev > 40 ? 3 : 2));
+               fire_breath(p_ptr, GF_SOUND, dir, damage, (plev > 40 ? 3 : 2));
                break;
        case MS_BR_CHAOS:
                if (!get_aim_dir(&dir)) return FALSE;
 
         msg_print(_("カオスのブレスを吐いた。", "You breathe chaos."));
         damage = monspell_bluemage_damage((MS_BR_CHAOS), plev, DAM_ROLL);
-               fire_breath(GF_CHAOS, dir, damage, (plev > 40 ? 3 : 2));
+               fire_breath(p_ptr, GF_CHAOS, dir, damage, (plev > 40 ? 3 : 2));
                break;
        case MS_BR_DISEN:
                if (!get_aim_dir(&dir)) return FALSE;
 
         msg_print(_("劣化のブレスを吐いた。", "You breathe disenchantment."));
         damage = monspell_bluemage_damage((MS_BR_DISEN), plev, DAM_ROLL);
-               fire_breath(GF_DISENCHANT, dir, damage, (plev > 40 ? 3 : 2));
+               fire_breath(p_ptr, GF_DISENCHANT, dir, damage, (plev > 40 ? 3 : 2));
                break;
        case MS_BR_NEXUS:
                if (!get_aim_dir(&dir)) return FALSE;
 
         msg_print(_("因果混乱のブレスを吐いた。", "You breathe nexus."));
         damage = monspell_bluemage_damage((MS_BR_NEXUS), plev, DAM_ROLL);
-               fire_breath(GF_NEXUS, dir, damage, (plev > 40 ? 3 : 2));
+               fire_breath(p_ptr, GF_NEXUS, dir, damage, (plev > 40 ? 3 : 2));
                break;
        case MS_BR_TIME:
                if (!get_aim_dir(&dir)) return FALSE;
 
         msg_print(_("時間逆転のブレスを吐いた。", "You breathe time."));
         damage = monspell_bluemage_damage((MS_BR_TIME), plev, DAM_ROLL);
-               fire_breath(GF_TIME, dir, damage, (plev > 40 ? 3 : 2));
+               fire_breath(p_ptr, GF_TIME, dir, damage, (plev > 40 ? 3 : 2));
                break;
        case MS_BR_INERTIA:
                if (!get_aim_dir(&dir)) return FALSE;
 
         msg_print(_("遅鈍のブレスを吐いた。", "You breathe inertia."));
         damage = monspell_bluemage_damage((MS_BR_INERTIA), plev, DAM_ROLL);
-               fire_breath(GF_INERTIAL, dir, damage, (plev > 40 ? 3 : 2));
+               fire_breath(p_ptr, GF_INERTIAL, dir, damage, (plev > 40 ? 3 : 2));
                break;
        case MS_BR_GRAVITY:
                if (!get_aim_dir(&dir)) return FALSE;
 
         msg_print(_("重力のブレスを吐いた。", "You breathe gravity."));
         damage = monspell_bluemage_damage((MS_BR_GRAVITY), plev, DAM_ROLL);
-               fire_breath(GF_GRAVITY, dir, damage, (plev > 40 ? 3 : 2));
+               fire_breath(p_ptr, GF_GRAVITY, dir, damage, (plev > 40 ? 3 : 2));
                break;
        case MS_BR_SHARDS:
         if (!get_aim_dir(&dir)) return FALSE;
 
         msg_print(_("破片のブレスを吐いた。", "You breathe shards."));
         damage = monspell_bluemage_damage((MS_BR_SHARDS), plev, DAM_ROLL);
-               fire_breath(GF_SHARDS, dir, damage, (plev > 40 ? 3 : 2));
+               fire_breath(p_ptr, GF_SHARDS, dir, damage, (plev > 40 ? 3 : 2));
                break;
        case MS_BR_PLASMA:
         if (!get_aim_dir(&dir)) return FALSE;
 
         msg_print(_("プラズマのブレスを吐いた。", "You breathe plasma."));
         damage = monspell_bluemage_damage((MS_BR_PLASMA), plev, DAM_ROLL);
-               fire_breath(GF_PLASMA, dir, damage, (plev > 40 ? 3 : 2));
+               fire_breath(p_ptr, GF_PLASMA, dir, damage, (plev > 40 ? 3 : 2));
                break;
        case MS_BR_FORCE:
         if (!get_aim_dir(&dir)) return FALSE;
 
         msg_print(_("フォースのブレスを吐いた。", "You breathe force."));
         damage = monspell_bluemage_damage((MS_BR_FORCE), plev, DAM_ROLL);
-               fire_breath(GF_FORCE, dir, damage, (plev > 40 ? 3 : 2));
+               fire_breath(p_ptr, GF_FORCE, dir, damage, (plev > 40 ? 3 : 2));
                break;
        case MS_BR_MANA:
                if (!get_aim_dir(&dir)) return FALSE;
 
         msg_print(_("魔力のブレスを吐いた。", "You breathe mana."));
         damage = monspell_bluemage_damage((MS_BR_MANA), plev, DAM_ROLL);
-               fire_breath(GF_MANA, dir, damage, (plev > 40 ? 3 : 2));
+               fire_breath(p_ptr, GF_MANA, dir, damage, (plev > 40 ? 3 : 2));
                break;
        case MS_BALL_NUKE:
                if (!get_aim_dir(&dir)) return FALSE;
@@ -1042,7 +1042,7 @@ static bool cast_learned_spell(int spell, bool success)
 
         msg_print(_("放射性廃棄物のブレスを吐いた。", "You breathe toxic waste."));
         damage = monspell_bluemage_damage((MS_BR_NUKE), plev, DAM_ROLL);
-               fire_breath(GF_NUKE, dir, damage, (plev > 40 ? 3 : 2));
+               fire_breath(p_ptr, GF_NUKE, dir, damage, (plev > 40 ? 3 : 2));
                break;
        case MS_BALL_CHAOS:
                if (!get_aim_dir(&dir)) return FALSE;
@@ -1056,7 +1056,7 @@ static bool cast_learned_spell(int spell, bool success)
 
         msg_print(_("分解のブレスを吐いた。", "You breathe disintegration."));
         damage = monspell_bluemage_damage((MS_BR_DISI), plev, DAM_ROLL);
-               fire_breath(GF_DISINTEGRATE, dir, damage, (plev > 40 ? 3 : 2));
+               fire_breath(p_ptr, GF_DISINTEGRATE, dir, damage, (plev > 40 ? 3 : 2));
                break;
        case MS_BALL_ACID:
                if (!get_aim_dir(&dir)) return FALSE;
index d42749d..bd04f4c 100644 (file)
@@ -2104,7 +2104,7 @@ bool exe_mutation_power(player_type *creature_ptr, int power)
                        if (!get_aim_dir(&dir)) return FALSE;
                        stop_mouth();
                        msg_print(_("あなたは火炎のブレスを吐いた...", "You breathe fire..."));
-                       fire_breath(GF_FIRE, dir, lvl * 2, 1 + (lvl / 20));
+                       fire_breath(creature_ptr, GF_FIRE, dir, lvl * 2, 1 + (lvl / 20));
                        break;
 
                case MUT1_HYPN_GAZE:
index 983d012..3973414 100644 (file)
@@ -198,7 +198,7 @@ extern void unlite_room(POSITION y1, POSITION x1);
 extern bool lite_area(HIT_POINT dam, POSITION rad);
 extern bool unlite_area(HIT_POINT dam, POSITION rad);
 extern bool fire_ball(player_type *caster_ptr, EFFECT_ID typ, DIRECTION dir, HIT_POINT dam, POSITION rad);
-extern bool fire_breath(EFFECT_ID typ, DIRECTION dir, HIT_POINT dam, POSITION rad);
+extern bool fire_breath(player_type *caster_ptr, EFFECT_ID typ, DIRECTION dir, HIT_POINT dam, POSITION rad);
 extern bool fire_rocket(EFFECT_ID typ, DIRECTION dir, HIT_POINT dam, POSITION rad);
 extern bool fire_ball_hide(EFFECT_ID typ, DIRECTION dir, HIT_POINT dam, POSITION rad);
 extern bool fire_meteor(MONSTER_IDX who, EFFECT_ID typ, POSITION x, POSITION y, HIT_POINT dam, POSITION rad);
index fba6ea3..f8404e7 100644 (file)
@@ -1962,9 +1962,9 @@ bool fire_ball(player_type *caster_ptr, EFFECT_ID typ, DIRECTION dir, HIT_POINT
 * Affect grids, objects, and monsters
 * </pre>
 */
-bool fire_breath(EFFECT_ID typ, DIRECTION dir, HIT_POINT dam, POSITION rad)
+bool fire_breath(player_type *caster_ptr, EFFECT_ID typ, DIRECTION dir, HIT_POINT dam, POSITION rad)
 {
-       return fire_ball(p_ptr, typ, dir, dam, -rad);
+       return fire_ball(caster_ptr, typ, dir, dam, -rad);
 }
 
 
@@ -4157,7 +4157,7 @@ bool draconian_breath(player_type *creature_ptr)
        stop_mouth();
        msg_format(_("あなたは%sのブレスを吐いた。", "You breathe %s."), Type_desc);
 
-       fire_breath(Type, dir, creature_ptr->lev * 2, (creature_ptr->lev / 15) + 1);
+       fire_breath(creature_ptr, Type, dir, creature_ptr->lev * 2, (creature_ptr->lev / 15) + 1);
        return TRUE;
 }
 
@@ -4310,7 +4310,7 @@ bool demonic_breath(player_type *creature_ptr)
        if (!get_aim_dir(&dir)) return FALSE;
        stop_mouth();
        msg_format(_("あなたは%sのブレスを吐いた。", "You breathe %s."), ((type == GF_NETHER) ? _("地獄", "nether") : _("火炎", "fire")));
-       fire_breath(type, dir, creature_ptr->lev * 3, (creature_ptr->lev / 15) + 1);
+       fire_breath(creature_ptr, type, dir, creature_ptr->lev * 3, (creature_ptr->lev / 15) + 1);
        return TRUE;
 }