Made bed interaction count up the days and verified that you can now play a full loop

This commit is contained in:
2025-12-03 18:55:45 +01:00
parent 8407ce4c1f
commit 229dd04bc1
6 changed files with 28 additions and 6 deletions
@@ -31,10 +31,14 @@ public partial class CalendarController : Node
{
if (@event.IsActionPressed("NextDayCheat"))
{
int days = _dayCounter.Payload.AsInt32();
days++;
_dayCounter.Payload = days;
GoToNextDay();
}
}
public void GoToNextDay()
{
int days = _dayCounter.Payload.AsInt32();
days++;
_dayCounter.Payload = days;
}
}
@@ -0,0 +1,11 @@
using Godot;
namespace Babushka.scripts.CSharp.Common.DayAndNight;
public partial class DayAndNightHelper : Node
{
public void IncreaseDayCount()
{
CalendarController.Instance?.GoToNextDay();
}
}
@@ -0,0 +1 @@
uid://jg4jryfus3bw