summaryrefslogtreecommitdiff
path: root/src/shyguy.cpp
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2013-05-07 16:23:03 -0500
committerColin Noga <Tempus@chronometry.ca>2013-05-07 16:23:03 -0500
commit42ca4c9312543cf6333526a0047a4e4cad5a5cc5 (patch)
tree2996c03af0e6b2e2f876c8d6e3adc003882a7e7f /src/shyguy.cpp
parent2ca07a57482d095c15c1c47368ac04565f18d676 (diff)
downloadkamek-42ca4c9312543cf6333526a0047a4e4cad5a5cc5.tar.gz
kamek-42ca4c9312543cf6333526a0047a4e4cad5a5cc5.zip
rc3 shy guy and shy guy bos fixes
Diffstat (limited to '')
-rw-r--r--src/shyguy.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/shyguy.cpp b/src/shyguy.cpp
index 5a5dc8d..8f6d6f3 100644
--- a/src/shyguy.cpp
+++ b/src/shyguy.cpp
@@ -230,7 +230,7 @@ daShyGuy *daShyGuy::build() {
if (this->isDown == 0) {
hitType = usedForDeterminingStatePress_or_playerCollision(this, apThis, apOther, 2);
}
- else { // Shy Guy is in throwy mode
+ else { // Shy Guy is in downed mode
hitType = usedForDeterminingStatePress_or_playerCollision(this, apThis, apOther, 0);
}
@@ -238,10 +238,13 @@ daShyGuy *daShyGuy::build() {
apOther->someFlagByte |= 2;
if (this->isDown == 0) {
this->playEnemyDownSound1();
- doStateChange(stateVar);
+ if (damage >= 1) {
+ doStateChange(deathState); }
+ else {
+ doStateChange(stateVar); }
damage++;
}
- else { // Shy Guy is in throwy mode - kill it with fire
+ else { // Shy Guy is in downed mode - kill it with fire
this->playEnemyDownSound1();
doStateChange(deathState);
}
@@ -250,10 +253,13 @@ daShyGuy *daShyGuy::build() {
apOther->someFlagByte |= 2;
if (this->isDown == 0) {
this->playEnemyDownSound1();
- doStateChange(stateVar);
+ if (damage >= 1) {
+ doStateChange(deathState); }
+ else {
+ doStateChange(stateVar); }
damage++;
}
- else { // Shy Guy is in throwy mode - kill it with fire
+ else { // Shy Guy is in downed mode - kill it with fire
this->playEnemyDownSound1();
doStateChange(deathState);
}