Wire grade trail notices, dress mark factor, and truancy summons weights.
Lesson multipliers stay explicit in tests; poor marks and unexcused absences toast and may auto-summon, while illness stays excused.
This commit is contained in:
@@ -752,6 +752,36 @@ internal static class PeopleDefValidator
|
||||
$"BehaviorDef '{behavior.DefName}' lessonLateMinutes cannot be negative.");
|
||||
}
|
||||
|
||||
if (behavior.LessonDressMarkFactor is < 0f or > 1f)
|
||||
{
|
||||
throw new ContentLoadException(
|
||||
$"BehaviorDef '{behavior.DefName}' lessonDressMarkFactor must be 0–1.");
|
||||
}
|
||||
|
||||
if (behavior.PoorMarkTrailMaxAverage is < 0f or > 5f)
|
||||
{
|
||||
throw new ContentLoadException(
|
||||
$"BehaviorDef '{behavior.DefName}' poorMarkTrailMaxAverage must be 0–5.");
|
||||
}
|
||||
|
||||
if (behavior.PoorMarkTrailMinMarks < 0)
|
||||
{
|
||||
throw new ContentLoadException(
|
||||
$"BehaviorDef '{behavior.DefName}' poorMarkTrailMinMarks cannot be negative.");
|
||||
}
|
||||
|
||||
if (behavior.TruancyTrailMinCount < 0)
|
||||
{
|
||||
throw new ContentLoadException(
|
||||
$"BehaviorDef '{behavior.DefName}' truancyTrailMinCount cannot be negative.");
|
||||
}
|
||||
|
||||
if (behavior.GradeTrailSummonChance is < 0f or > 1f)
|
||||
{
|
||||
throw new ContentLoadException(
|
||||
$"BehaviorDef '{behavior.DefName}' gradeTrailSummonChance must be 0–1.");
|
||||
}
|
||||
|
||||
if (behavior.DiseaseVectorScale < 0f)
|
||||
{
|
||||
throw new ContentLoadException(
|
||||
|
||||
Reference in New Issue
Block a user