🚧 days are counted, plants know which day it is, but harvestables are still broken

This commit is contained in:
2025-11-28 20:25:47 +01:00
parent a1fb71119f
commit 41b30a4274
6 changed files with 41 additions and 31 deletions
@@ -41,6 +41,9 @@ public partial class PlantBehaviour2D : Node2D
set => _state = value;
}
/// <summary>
/// The day count at the day this plant was planted.
/// </summary>
public int DayPlanted { get; set; }
public int CurrentDayInCalendar
@@ -70,10 +73,10 @@ public partial class PlantBehaviour2D : Node2D
_state = growthFloor switch
{
0 => PlantState.Planted,
1 => PlantState.SmallPlant,
2 => PlantState.BigPlant,
_ => PlantState.Ready
0 => PlantState.None,
1 => PlantState.Planted,
2 => PlantState.SmallPlant,
_ => PlantState.BigPlant
};
_calledOnReady = true;