fixed some layering issues in beetroot scene and added a mock convo with the domovoi
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user