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:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user