Add health condition list, tick, and save for phase 77.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-21 11:41:25 +03:00
co-authored by Cursor
parent 76eb882285
commit 2d31a59a81
8 changed files with 440 additions and 11 deletions
+2 -1
View File
@@ -348,7 +348,7 @@ public sealed class School : IDisposable
}
}
/// <summary>Runs one fixed step of the school: calendar, yearly intake, applicant refresh, presence, actions, need decay, then apparel wear.</summary>
/// <summary>Runs one fixed step of the school: calendar, yearly intake, applicant refresh, presence, actions, need decay, apparel wear, then health conditions.</summary>
/// <returns><see langword="true"/> when the roster, applicant pool or wardrobe changed this step.</returns>
public bool Tick(double deltaTime, double gameMinutesPerRealSecond)
{
@@ -442,6 +442,7 @@ public sealed class School : IDisposable
peopleChanged |= AffinitySystem.Apply(this, talked);
}
peopleChanged |= HealthConditionSystem.Apply(this, gameMinutes);
peopleChanged |= RosterTalkDirty;
RosterTalkDirty = false;
return peopleChanged;