Add lesson whispers, teacher catch chance, and after-bell teacher talk.

Whispering cuts lesson skill gain from BehaviorDef; a teacher in the room may interrupt into a discipline circle, and pedagogy scales the pupil's opinion of the teacher.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-20 10:35:31 +03:00
co-authored by Cursor
parent cb869e4977
commit f7d5e0c042
22 changed files with 1061 additions and 36 deletions
@@ -113,6 +113,8 @@ public class BehaviorDefTests
Assert.NotNull(catalog.BehaviorRules);
Assert.Equal(0, catalog.BehaviorRules.CommuteRainMinutes);
Assert.Equal(0, catalog.BehaviorRules.CommuteSnowMinutes);
Assert.Equal(0.4f, catalog.BehaviorRules.LessonWhisperSkillFactor);
Assert.Equal(0.4f, catalog.BehaviorRules.WhisperCatchChance);
}
[Theory]
@@ -16,6 +16,10 @@ public class TopicDefTests
Assert.True(catalog.Topics.Count >= 8);
Assert.True(catalog.Topics.ContainsKey("TopicStudy"));
Assert.Contains("study", catalog.Topics["TopicStudy"].Tags);
Assert.True(catalog.Topics["TopicGames"].WhisperOnLesson);
Assert.False(catalog.Topics["TopicRude"].WhisperOnLesson);
Assert.True(catalog.Topics.ContainsKey("TopicPraise"));
Assert.True(catalog.Topics.ContainsKey("TopicDiscipline"));
}
[Fact]