🐛 fixed dayplanted confusion on plants
This commit is contained in:
@@ -44,7 +44,11 @@ public partial class PlantBehaviour2D : Node2D
|
||||
/// <summary>
|
||||
/// The day count at the day this plant was planted.
|
||||
/// </summary>
|
||||
public int DayPlanted { get; set; }
|
||||
public int DayPlanted
|
||||
{
|
||||
get => _dayPlanted;
|
||||
set => _dayPlanted = value;
|
||||
}
|
||||
|
||||
public int CurrentDayInCalendar
|
||||
{
|
||||
@@ -65,6 +69,7 @@ public partial class PlantBehaviour2D : Node2D
|
||||
private void DaysGrowingChanged()
|
||||
{
|
||||
int _daysGrowing = _currentDay - _dayPlanted;
|
||||
GD.Print($"Plant {Name} is growing for {_daysGrowing}. Day Planted was {_dayPlanted} and the current day is {_currentDay}.");
|
||||
int lifecycle = _lifecycle.Payload.AsInt32();
|
||||
Debug.Assert(lifecycle > 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user