Fixed links

This commit is contained in:
Rendo 2025-07-17 11:44:10 +05:00
commit eb408a62bb
18 changed files with 40 additions and 42 deletions

View file

@ -19,7 +19,7 @@ public partial class AloeBehaviour : BaseBehaviour
{
_tree.Set("parameters/Tree/conditions/charged",_charge);
var checkPos = GetParent<Node2D>().GlobalPosition + Vector2.Right * Utility.TileWidth;
var checkPos = GetParent<Node2D>().GlobalPosition + Vector2.Right * FieldParams.TileWidth;
if(_charge && PoolContainer.Instance.TryGetEntity(checkPos, out RuntimePlantData plantData))
{
if((float)plantData.HP / (float)plantData.MaxHP < _hpTreshold)
@ -33,7 +33,7 @@ public partial class AloeBehaviour : BaseBehaviour
public void Heal()
{
var checkPos = GetParent<Node2D>().GlobalPosition + Vector2.Right * Utility.TileWidth;
var checkPos = GetParent<Node2D>().GlobalPosition + Vector2.Right * FieldParams.TileWidth;
if (PoolContainer.Instance.TryGetEntity(checkPos, out RuntimePlantData plantData))
{
plantData.Heal(1200 + 0.5f * plantData.MaxHP, GetParent());