Refactor redundant deactivation variable to now be tied to the fade out time. Make collision checks for bullets with radii of 0 no longer occur. Add mid phase tornado. Release Build 9546.

This commit is contained in:
2024-06-02 15:51:35 -05:00
parent 15cf736be0
commit 5f0a516be5
30 changed files with 283 additions and 147 deletions
+4 -6
View File
@@ -86,15 +86,13 @@ void DaggerSlash::Update(float fElapsedTime){
}
#pragma endregion
}
bool DaggerSlash::PlayerHit(Player*player){
deactivated=true;
BulletDestroyState DaggerSlash::PlayerHit(Player*player){
game->AddEffect(std::make_unique<Effect>(pos,0,"lightning_splash_effect.png",upperLevel,player->GetSizeMult()*0.25f,0.25,vf2d{}));
player->Knockback(util::pointTo(sourceMonster.GetPos(),player->GetPos())*knockbackAmt);
return false;
return BulletDestroyState::KEEP_ALIVE;
}
bool DaggerSlash::MonsterHit(Monster&monster){
deactivated=true;
BulletDestroyState DaggerSlash::MonsterHit(Monster&monster){
game->AddEffect(std::make_unique<Effect>(pos,0,"lightning_splash_effect.png",upperLevel,monster.GetSizeMult()*0.25f,0.25,vf2d{}));
monster.Knockback(util::pointTo(sourceMonster.GetPos(),monster.GetPos())*knockbackAmt);
return false;
return BulletDestroyState::KEEP_ALIVE;
}