rollback huge hit
This commit is contained in:
@@ -236,6 +236,9 @@ func take_damage(amount: int, attacker_toughness: int = 0) -> void:
|
||||
var diff := shield_tier - attacker_toughness
|
||||
var mod: float = 0.15 if diff >= 2 else (0.30 if diff == 1 else 0.50)
|
||||
amount = int(amount * mod)
|
||||
|
||||
health = min(health - amount, max_health)
|
||||
emit_signal("health_changed", health, max_health)
|
||||
_squish_effect()
|
||||
|
||||
func heal(amount: int) -> void:
|
||||
|
||||
Reference in New Issue
Block a user