Phase 4b: Zeit-Persistenz, Maren, Sparring, Jack-Barlowe-QTE

- Tag/Slot/Slot-Verbrauch reisen im GameState-Save mit
  (TimeSystem.apply_save_state, gleiche Muster wie story_flags)
- Maren Vael als fuenfter Hub-NPC (grau-blaue Kapsel, Wegpunkte, Wander-KI
  und Ambient wie die anderen; zwei neue Ambient-Wechsel Maren/Wren und
  Maren/Imogen); maren_intro.json: ruhig, warm, wissend, Vater-Andeutungen
  ohne Wahrheit-1/2-Vorwegnahme, Entscheidungspunkt Klinge/Herz/neutral
- Sparring-Ring im Reiterquadranten: Slot-Verbrauch, Stat-Check gegen
  Zweitjahr (Sieg bei Kraft>=40 ODER Schnelligkeit>=40; Startwerte 35/35
  verlieren erst), Sieg-/Niederlage-Dialoge mit taktischem
  Klinge/Herz-Punkt; neues faction_standing-Options-Tag im DialogueSystem
  als erster Story-Verbraucher des FactionSystems (Ton -5/+5 bzw. -3/+3,
  Standing +3/+2 Sieg, +1 Niederlage)
- Jack-Barlowe-Hinterhalt (Kanon: WELT.md 8; Auflauern auf Tyrveil ist die
  SPEC-10-Spiel-Setzung): ab Tag 2 pro Slot-Wechsel 50% Chance, max. 1x
  taeglich; nicht abbrechbarer Droh-Dialog, dann 3 QTE-Stufen ueber
  slide/jump/sprint (Tastatur+Controller, 1,4-s-Fenster, uebriger Input
  wird waehrenddessen geschluckt); Erfolg -> Wahl-Dialog (Standing +3/+2,
  Ton -5/+5), Fehlschlag: Permadeath AN Game Over, AUS Standing -3;
  player.set_control_locked() als oeffentliche Sperre fuer die QTE-Phase
- Headless verifiziert (43 Checks): Zeit-Roundtrip, Maren-Werte, Sparring
  beide Ausgaenge und Wege inkl. Slots, QTE Erfolg/Fehlschlag AUS/AN

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
danny 2026-07-06 06:36:00 +02:00
parent ef60c96735
commit 5eb46577b9
18 changed files with 651 additions and 3 deletions

View file

@ -198,6 +198,10 @@ func _apply_option_effects(option: Dictionary) -> void:
for flag_name in flag_changes:
GameState.set_story_flag(str(flag_name), flag_changes[flag_name])
_has_applied_effects = true
var standing_shifts: Dictionary = option.get("faction_standing", {})
for faction_id in standing_shifts:
FactionSystem.adjust_standing(str(faction_id), int(standing_shifts[faction_id]))
_has_applied_effects = true
## Spielt eine zufällig gewählte Abbruch-Zeile Tyrveils, damit der

View file

@ -160,6 +160,9 @@ func to_save_dict() -> Dictionary:
"story_flags": story_flags.duplicate(),
"faction_standings": faction_standings.duplicate(),
"is_permadeath_enabled": is_permadeath_enabled,
"time_day": TimeSystem.day_count,
"time_slot": TimeSystem.current_slot,
"time_slot_used": TimeSystem.is_current_slot_used,
}
@ -190,6 +193,7 @@ func apply_save_dict(data: Dictionary) -> void:
var saved_standings: Dictionary = data.get("faction_standings", {})
for faction_id in saved_standings:
faction_standings[String(faction_id)] = clampi(int(saved_standings[faction_id]), RELATIONSHIP_MIN, RELATIONSHIP_MAX)
TimeSystem.apply_save_state(int(data.get("time_day", 1)), int(data.get("time_slot", 0)), bool(data.get("time_slot_used", false)))
blade_heart_tone_changed.emit(blade_heart_tone)
for npc_id in relationships:
relationship_changed.emit(npc_id, relationships[npc_id])

View file

@ -57,6 +57,15 @@ func advance_slot() -> void:
push_warning("advance_slot() am Abend ignoriert — Tag endet nur im Schlafsaal.")
## Stellt Tag, Slot und Slot-Verbrauch aus einem Spielstand wieder her
## (aufgerufen von GameState.apply_save_dict, damit der Tageszyklus im
## selben Spielstand mitreist). Meldet den Slot über slot_changed.
func apply_save_state(saved_day: int, saved_slot: int, is_used: bool) -> void:
day_count = maxi(1, saved_day)
_change_slot(clampi(saved_slot, DaySlot.MORNING, DaySlot.EVENING) as DaySlot)
is_current_slot_used = is_used
## Beendet den Tag über den Schlafsaal-Trigger: erhöht den Tageszähler und
## springt zurück auf den Vormittag.
func end_day() -> void: