Remove sold items from equipment slots and loadout slots if they exist there so they no longer linger. Relase Build 7870. Game Version 0.4.2
This commit is contained in:
@@ -80,13 +80,16 @@ bool Warrior::AutoAttack(){
|
||||
}
|
||||
if(closest!=nullptr){
|
||||
closest->Hurt(int(GetAttack()*"Warrior.Auto Attack.DamageMult"_F),OnUpperLevel(),GetZ());
|
||||
float dirToEnemy=geom2d::line<float>(GetPos(),closest->GetPos()).vector().polar().y;
|
||||
SetAnimationBasedOnTargetingDirection(dirToEnemy);
|
||||
}else{
|
||||
float dirToMouse=geom2d::line<float>(GetPos(),GetWorldAimingLocation()).vector().polar().y;
|
||||
SetAnimationBasedOnTargetingDirection(dirToMouse);
|
||||
}
|
||||
attack_cooldown_timer=ATTACK_COOLDOWN-GetAttackRecoveryRateReduction();
|
||||
swordSwingTimer="Warrior.Auto Attack.SwordSwingTime"_F;
|
||||
|
||||
float dirToEnemy=geom2d::line<float>(GetPos(),closest->GetPos()).vector().polar().y;
|
||||
SetState(State::SWING_SWORD);
|
||||
SetAnimationBasedOnTargetingDirection(dirToEnemy);
|
||||
SoundEffect::PlaySFX("Warrior Auto Attack",SoundEffect::CENTERED);
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user