Add lesson attendance from presence (present/late/absent).
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -87,7 +87,11 @@ internal static class LessonLearningSystem
|
||||
if (!TeacherStandingIn(places, lesson.TeacherId, lesson.RoomId))
|
||||
{
|
||||
school.TryLogLessonOnce(personId, PersonLogTypes.LessonNoTeacher, lesson.Subject);
|
||||
TryWriteAbsentTeacherMark(school, person, lesson, rules);
|
||||
if (!AttendanceSystem.IsLateForMark(school, rules, lesson.Period))
|
||||
{
|
||||
TryWriteAbsentTeacherMark(school, person, lesson, rules);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -174,6 +178,11 @@ internal static class LessonLearningSystem
|
||||
float warmth,
|
||||
float textbookFactor)
|
||||
{
|
||||
if (AttendanceSystem.IsLateForMark(school, rules, lesson.Period))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!school.TryClaimLessonMark(person.Id, school.Clock.Time.Date, lesson.Period))
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user