Add lesson attendance from presence (present/late/absent).
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -722,6 +722,17 @@ internal static class PeopleDefValidator
|
||||
previous = floor;
|
||||
}
|
||||
}
|
||||
|
||||
if (behavior.AttendanceMax < 0)
|
||||
{
|
||||
throw new ContentLoadException($"BehaviorDef '{behavior.DefName}' attendanceMax cannot be negative.");
|
||||
}
|
||||
|
||||
if (behavior.LessonLateMinutes < 0f)
|
||||
{
|
||||
throw new ContentLoadException(
|
||||
$"BehaviorDef '{behavior.DefName}' lessonLateMinutes cannot be negative.");
|
||||
}
|
||||
}
|
||||
|
||||
private static void ValidateTopic(TopicDef topic, DefCatalog catalog)
|
||||
|
||||
Reference in New Issue
Block a user