diff options
author | Treeki <treeki@gmail.com> | 2013-04-08 00:23:39 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-04-08 00:34:35 +0200 |
commit | 940154c20216e3398e78a6040b3e4028e681cf61 (patch) | |
tree | 9d82b13a4071ec634e616cdcc018c177ba5ec928 /src/bossBridgeBowser.cpp | |
parent | fb93fa93f2c756a5254f1b418abbc179fca4e59d (diff) | |
download | kamek-940154c20216e3398e78a6040b3e4028e681cf61.tar.gz kamek-940154c20216e3398e78a6040b3e4028e681cf61.zip |
a few final boss fixes
Diffstat (limited to 'src/bossBridgeBowser.cpp')
-rw-r--r-- | src/bossBridgeBowser.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bossBridgeBowser.cpp b/src/bossBridgeBowser.cpp index d4bda5d..0abcf21 100644 --- a/src/bossBridgeBowser.cpp +++ b/src/bossBridgeBowser.cpp @@ -14,7 +14,7 @@ extern "C" void *BowserDamageNormal(dEn_c *); extern "C" void *BowserDamageKill(dEn_c *); extern "C" void *BowserDamageEnd(dEn_c *); -int HP = 2; +int BridgeBowserHP = 2; int lastBomb = 0; extern bool HackyBombDropVariable; @@ -31,10 +31,10 @@ void BowserDoomSpriteCollision(dEn_c *bowser, ActivePhysics *apThis, ActivePhysi // void * bowserClass = (void*)(((u32)bowser) + 0x5F8); // int HP = *(int*)(((u32)bowserClass) + 4); - OSReport("HP: %d", HP); + OSReport("HP: %d", BridgeBowserHP); - if (HP <= 0) { - HP = 0; + if (BridgeBowserHP <= 0) { + BridgeBowserHP = 0; *(int*)(((u32)bowser) + 0x540) = 0x28; @@ -54,7 +54,7 @@ void BowserDoomSpriteCollision(dEn_c *bowser, ActivePhysics *apThis, ActivePhysi BowserClass->doStateChange(&daBossKoopa_c::StateID_Fall); dFlagMgr_c::instance->set(3, 0, true, false, false); - HP = 2; + BridgeBowserHP = 2; } else { @@ -63,7 +63,7 @@ void BowserDoomSpriteCollision(dEn_c *bowser, ActivePhysics *apThis, ActivePhysi BowserDamageAnmClr(bowser); BowserDamageNormal(bowser); - HP -= 1; + BridgeBowserHP -= 1; } lastBomb = apOther->owner->id; @@ -95,4 +95,4 @@ void BowserDoomEnd(dStageActor_c *Controller) { void BowserStartEnd(dStageActor_c *Controller) { dFlagMgr_c::instance->set(1, 0, true, false, false); -}
\ No newline at end of file +} |