description requests
This commit is contained in:
parent
de2e8b1e50
commit
6fbae10750
35 changed files with 359 additions and 154 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ public partial class ZombieMover : Node
|
|||
{
|
||||
[Export]
|
||||
private FloatModifiers _speed;
|
||||
public float Speed => _speed.GetValue();
|
||||
[Export]
|
||||
private float _speedControlMult;
|
||||
private Node2D _zombie;
|
||||
|
|
@ -21,7 +22,7 @@ public partial class ZombieMover : Node
|
|||
* (float)delta
|
||||
* FieldParams.TileWidth
|
||||
* GetParent<RuntimeZombieData>().LocalTimescale
|
||||
* _speed.GetValue()
|
||||
* Speed
|
||||
* _speedControlMult;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue