Added BoostAssault,BoostDefender components. Added their effects in HealthSystem,PlayerMovementSystem
This commit is contained in:
@@ -49,6 +49,9 @@ bool HealthSystem::OnPlayerDamaged(Events::PlayerDamage& e)
|
||||
{
|
||||
ComponentWrapper cHealth = e.Player["Health"];
|
||||
double& health = cHealth["Health"];
|
||||
if (e.Player.HasComponent("BoostDefender")) {
|
||||
e.Damage -= (double)e.Player["BoostDefender"]["StrengthOfEffect"];
|
||||
}
|
||||
health -= e.Damage;
|
||||
|
||||
if (health <= 0.0) {
|
||||
|
||||
Reference in New Issue
Block a user