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:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user