Add crew watches, fatigue, action stations and morale

Frigate and crewed boat stand three watches relieved every hour of game
time. Action stations make the crew more alert but tire everybody;
morale moves with kills, damage and HQ tasks. The crew's performance
raises the sonar recognition threshold, needs more lookout/periscope
contrast and slows damage-control work. A fresh crew is exactly the
calibrated crew (77/77 metrics unchanged). Damage page 3, Bridge G,
boat keys B/M, Remote Crew cards and orders, save v21 "watch" and
crew.watch.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
This commit is contained in:
Claude committed 2026-09-27 17:20:08 +00:00
1 parent de0a9e7497
commit c1946eb75f
49 files changed
+1121 -63

No files matched your search

+21
View File
@@ -834,6 +834,27 @@ SCORE_TASK = { # (done, failed, declined)
"emcon": (200, -250, -200),
}
# Crew fatigue, watches and morale (src/core/crew.py; game assumptions).
# A real watch is four hours; the game relieves the watch every hour so a
# session sees the rotation. Normal rotation keeps the duty watch fresh
# (effectiveness 1.0); action stations tire everybody.
CREW_WATCH_S = 3600.0 # duty watch relieved after this
CREW_TURNOVER_S = 60.0 # new watch settling in
CREW_TURNOVER_FACTOR = 0.85
CREW_TIRE_WATCH_S = 4.0 * 3600.0 # duty watch: fatigue 0 -> 1
CREW_TIRE_ACTION_S = 1.5 * 3600.0 # action stations: everybody
CREW_RECOVER_S = 1.5 * 3600.0 # off watch: fatigue 1 -> 0
CREW_FATIGUE_FREE = 0.25 # fatigue below this costs nothing
CREW_FATIGUE_WEIGHT = 0.6 # effectiveness lost per unit above it
CREW_ACTION_BONUS = 1.1 # alert crew at action stations
CREW_MORALE_START = 0.7
CREW_MORALE_WEIGHT = 0.2 # effectiveness per unit of morale
CREW_MORALE_FATIGUE = 0.5 # low morale tires faster
CREW_DAMAGE_STRESS = 1.5 # fatigue pace while fighting damage
CREW_EFFECT_MIN = 0.5
CREW_EFFECT_MAX = 1.15
CREW_SONAR_DB = 10.0 # dB of recognition differential per unit lost
# Missionstypen: Zeitfenster in Echtzeit-Simulationssekunden.
# Lange Einsatzfenster lassen Zeit für Aufmerksamkeits- und Suchphasen.
# win = "sink" (Ziel versenken) oder "survive" (Zeitlimit überstehen)