rollback huge hit

This commit is contained in:
Nikolay Fedorov
2026-04-23 15:28:18 +03:00
parent d5194139e8
commit 8e7ff9ae83
2 changed files with 12 additions and 7 deletions
+3
View File
@@ -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: