Scale lesson gain by warmth the same way hunger already did.

The bar was live and drove dressing; a frozen pupil in class still learned as if it were May.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-20 09:06:50 +03:00
co-authored by Cursor
parent aaf539cacc
commit 274814aecd
10 changed files with 117 additions and 24 deletions
@@ -84,6 +84,12 @@ internal static class LessonLearningSystem
}
var hunger = needs.Values.GetValueOrDefault("Hunger", 1f);
var warmth = needs.Values.GetValueOrDefault("Warmth", 1f);
if (warmth < rules.NeedThreshold)
{
school.TryLogLessonOnce(personId, PersonLogTypes.LessonCold, lesson.Subject);
}
IReadOnlyDictionary<string, float> taught = teacherSkills.TryGetValue(lesson.TeacherId, out var found)
? found
: new Dictionary<string, float>(StringComparer.Ordinal);
@@ -108,7 +114,8 @@ internal static class LessonLearningSystem
hours,
hunger,
TraitOffset(catalog, traits, share.Skill),
teacherSkill);
teacherSkill,
warmth);
}
});
}