summaryrefslogtreecommitdiff
path: root/src/shyguy.cpp
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2013-05-06 13:05:08 -0500
committerColin Noga <Tempus@chronometry.ca>2013-05-06 13:05:08 -0500
commitddf59798f00a957ddd8538be5cd3d5b1c308b561 (patch)
treed03e260c960c08ad5d998fdc2f06cd9efe9a19af /src/shyguy.cpp
parenta990b07cb580eb8847621b4f4b4ac9797b0b5c26 (diff)
downloadkamek-ddf59798f00a957ddd8538be5cd3d5b1c308b561.tar.gz
kamek-ddf59798f00a957ddd8538be5cd3d5b1c308b561.zip
Fixed shy guy coins, shy guy respawning, star coin spent counter on file select, and music house hammer delivery
Diffstat (limited to 'src/shyguy.cpp')
-rw-r--r--src/shyguy.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/shyguy.cpp b/src/shyguy.cpp
index 1e89a8a..5a5dc8d 100644
--- a/src/shyguy.cpp
+++ b/src/shyguy.cpp
@@ -154,7 +154,6 @@ daShyGuy *daShyGuy::build() {
extern "C" int SmoothRotation(short* rot, u16 amt, int unk2);
// extern "C" void addToList(StandOnTopCollider *self);
-
CREATE_STATE(daShyGuy, Walk);
CREATE_STATE(daShyGuy, Turn);
CREATE_STATE(daShyGuy, RealWalk);
@@ -297,6 +296,7 @@ daShyGuy *daShyGuy::build() {
return this->collisionCatD_Drill(apThis, apOther);
}
bool daShyGuy::collisionCat13_Hammer(ActivePhysics *apThis, ActivePhysics *apOther) {
+ StageE4::instance->spawnCoinJump(pos, 0, 2, 0);
return this->collisionCatD_Drill(apThis, apOther);
}
@@ -324,8 +324,8 @@ daShyGuy *daShyGuy::build() {
stateVar = &StateID_FireKnockBack;
}
else {
+ StageE4::instance->spawnCoinJump(pos, 0, 1, 0);
doStateChange(&StateID_DieSmoke);
- this->_vf14C();
}
}
else { // Ballooneers
@@ -335,8 +335,8 @@ daShyGuy *daShyGuy::build() {
if (this->damage > 1) {
nw4r::snd::SoundHandle handle;
PlaySoundWithFunctionB4(SoundRelatedClass, &handle, SE_EMY_DOWN, 1);
+ StageE4::instance->spawnCoinJump(pos, 0, 1, 0);
doStateChange(&StateID_DieSmoke);
- this->_vf14C();
}
else {
nw4r::snd::SoundHandle handle;
@@ -457,6 +457,7 @@ int daShyGuy::onCreate() {
allocator.link(-1, GameHeaps[0], 0, 0x20);
+ this->deleteForever = 1;
// Balloon Specifics
if (type == 6 || type == 7 || type == 8) {