Plants flash and shovel alt

This commit is contained in:
Rendo 2025-07-23 16:07:55 +05:00
commit e4c25a1ca5
23 changed files with 451 additions and 195 deletions

View file

@ -11,10 +11,10 @@ public partial class DegradingSprite : Sprite2D
public override void _Ready()
{
armor.ArmorDamaged += OnArmorHPChanged;
armor.Damaged += OnDamaged;
}
private void OnArmorHPChanged(float hp)
private void OnDamaged()
{
float percent = armor._hp / armor.MaxHP;
for (int i = 0; i < degradationStages.Count; i++)