Remember recent quarrels, fights and reprimands on the person.

Short offense list for the pupil card and save, capped by BehaviorDef — not a discipline score.
This commit is contained in:
Leonid Pershin
2026-08-21 09:37:12 +03:00
parent 910ba4da2d
commit fdcaed0f74
22 changed files with 760 additions and 16 deletions
+15
View File
@@ -365,6 +365,12 @@ When a school was created with a pack that ships orientations, the card also car
pack those fields are null or empty — the client hides the sympathy column. The client does not
compute thresholds. There is no school-wide opinions endpoint.
`offenses` is the short recent-misconduct list on the person (quarrel / fight / reprimand). Same
order as in the world and in `people.json`. Each row has `kind`, `kindLabel` (mod locale),
`time` (UTC game clock), and optional `otherPersonId` / `otherFullName`. Empty is `[]`. Ceiling
and which kinds write live on `BehaviorDef` (`offenseMemoryMax`, `offenseMemoryKinds`), not in
the client. HTTP JSON is additive — no protocol version bump.
```json
{
"id": "f0.c0",
@@ -420,6 +426,15 @@ compute thresholds. There is no school-wide opinions endpoint.
"hasCustom": false,
"hasFullBody": false,
"customPortraitPrompt": null,
"offenses": [
{
"kind": "fight",
"kindLabel": "драка",
"time": "2012-04-03T11:20:00Z",
"otherPersonId": "f0.c1",
"otherFullName": "Иванов Кирилл Петрович"
}
],
"connections": {
"family": {
"parents": [