fixed some layering issues in beetroot scene and added a mock convo with the domovoi

This commit is contained in:
2025-12-17 00:15:42 +01:00
parent 11e24e249e
commit 4f6c5ab9c1
12 changed files with 58 additions and 20 deletions
@@ -131,9 +131,20 @@ public partial class InteractionArea2D : Node2D
public void ToggleActive()
{
GD.Print($"Toggle active {GetParent().Name}: {!_active}");
_active = !_active;
_label.Hide();
}
public void SetActiveTrue()
{
IsActive = true;
}
public void SetActiveFalse()
{
IsActive = false;
}
}
@@ -58,7 +58,7 @@ public partial class FieldBehaviour2D : Sprite2D, ISaveable
private void UpdateInteractionArea()
{
// fieldstate == tilled / watered && samen im Inventar
_canPlant = (FieldState == FieldState.Tilled || FieldState == FieldState.Watered) && _seedsActive;
_canPlant = (FieldState == FieldState.Tilled || FieldState == FieldState.Watered) && _seedsActive && !IsPlanted;
// fieldstate == tilled && watering can ausgewählt
_canWater = (FieldState == FieldState.Tilled || IsPlanted) && _wateringCanActive && WateringCanState.GetFillState() > 0;