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

@ -6,7 +6,7 @@ namespace Newlon.Components.Plants;
// Shoot component of some plants
public partial class Shooter : Node2D
{
[Export] protected PackedScene _projectile;
[Export] public PackedScene _projectile { get; protected set;}
[Export] protected Timer _timer;
protected RuntimePlantData _plantData;

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);
}

View file

@ -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;
}