description requests

This commit is contained in:
Rendo 2025-07-26 03:04:32 +05:00
commit 6fbae10750
35 changed files with 359 additions and 154 deletions

View file

@ -12,6 +12,7 @@ public partial class EatBox : Area2D
[Export]
private AudioStream biteSound = ResourceLoader.Load<AudioStream>("uid://dyid55nhflwyn");
private RuntimePlantData plant;
public float Damage => _damage.GetValue();
public bool isEating = false;
@ -19,7 +20,7 @@ public partial class EatBox : Area2D
{
if (GetParent<RuntimeZombieData>().AbleToEat)
{
plant?.TakeDamage((int)_damage.GetValue(), GetParent());
plant?.TakeDamage(Damage, GetParent());
AudioSequencer.Play("bite", biteSound);
}