Phase 4a: Unterrichts-Stationen, FactionSystem, Permadeath-Toggle

- training_station.gd: drei Stationen (Kampftraining -> Kraft,
  Landnavigation -> Schnelligkeit im Reiterquadranten; Geschichte & RSC
  -> Verstand im Klassenraum), je +2 auf den Stat (an STAT_MAX geklemmt),
  Rueckmeldung per Sprechblase, Doppel-Eingabe-Schutz
- TimeSystem.try_spend_slot(): erster echter Verbraucher von
  advance_slot() - Vormittag/Nachmittag ruecken vor, der Abend wird als
  verbraucht markiert und blockiert weitere Aktivitaeten bis zum
  Schlafsaal; Slot-Freigabe bei Slot-Wechsel/Reset
- FactionSystem als Fassade ueber neues gespeichertes
  GameState.faction_standings (-100..100, Signal
  faction_standing_changed), Fraktions-ID gezeichnete; Story-Logik folgt
  in 4b/4c
- Permadeath-Toggle im Hauptmenue (fokus-navigierbar, Text synchron);
  GameState.reset() laesst is_permadeath_enabled bewusst unangetastet
  (Menue-Option), Save/Load stellt den Zustand wieder her
- Debug-Overlay: Gezeichnete-Standing sichtbar, F9/F10 verschieben es
  testweise (reine Overlay-Debug-Hilfe ohne Input-Action)
- Headless verifiziert (29 Checks): Slot-Kette Vormittag->Nachmittag->
  Abend->blockiert->Schlafen, Stat-Zuwaechse aller drei Stationen,
  Faction-Signal + Save/Load-Roundtrip, Toggle inkl. Reset- und
  Persistenz-Semantik

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
danny 2026-07-05 17:01:53 +02:00
parent 2ee3c3f782
commit ef60c96735
10 changed files with 345 additions and 10 deletions

View file

@ -1,9 +1,11 @@
[gd_scene load_steps=26 format=3]
[gd_scene load_steps=31 format=3]
[ext_resource type="Script" path="res://scripts/gameplay/hub_room.gd" id="1_room"]
[ext_resource type="PackedScene" path="res://scenes/player.tscn" id="2_player"]
[ext_resource type="PackedScene" path="res://scenes/ui/debug_overlay.tscn" id="3_debug"]
[ext_resource type="Script" path="res://scripts/gameplay/zone_trigger.gd" id="4_zone"]
[ext_resource type="Script" path="res://scripts/gameplay/training_station.gd" id="5_station"]
[ext_resource type="PackedScene" path="res://scenes/ui/speech_bubble.tscn" id="6_bubble"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_sky"]
sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
@ -61,6 +63,19 @@ size = Vector3(2.5, 1, 0.8)
material = SubResource("StandardMaterial3D_desk")
size = Vector3(2.5, 1, 0.8)
[sub_resource type="BoxShape3D" id="BoxShape3D_station"]
size = Vector3(1.2, 1.2, 1.2)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_history"]
albedo_color = Color(0.75, 0.7, 0.5, 1)
[sub_resource type="BoxMesh" id="BoxMesh_history"]
material = SubResource("StandardMaterial3D_history")
size = Vector3(1.2, 1.2, 1.2)
[sub_resource type="SphereShape3D" id="SphereShape3D_interact"]
radius = 2.5
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_trigger"]
transparency = 1
albedo_color = Color(0.3, 0.8, 1, 0.35)
@ -201,6 +216,48 @@ shape = SubResource("BoxShape3D_teacher_desk")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Desks/TeacherDesk"]
mesh = SubResource("BoxMesh_teacher_desk")
[node name="HistoryStation" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, -3.5)
script = ExtResource("5_station")
station_name = "Geschichte & RSC"
stat_name = "intellect"
success_line = "Trockener Stoff. Aber Wissen wiegt nichts im Gepäck."
[node name="CollisionShape3D" type="CollisionShape3D" parent="HistoryStation"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.6, 0)
shape = SubResource("BoxShape3D_station")
[node name="MeshInstance3D" type="MeshInstance3D" parent="HistoryStation"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.6, 0)
mesh = SubResource("BoxMesh_history")
[node name="NameLabel" type="Label3D" parent="HistoryStation"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
billboard = 1
text = "Geschichte & RSC"
font_size = 56
outline_size = 14
[node name="PromptLabel" type="Label3D" parent="HistoryStation"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.6, 0)
visible = false
modulate = Color(1, 0.9, 0.5, 1)
billboard = 1
text = "E / (A) — Üben"
font_size = 40
outline_size = 12
[node name="InteractionArea" type="Area3D" parent="HistoryStation"]
collision_layer = 0
collision_mask = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="HistoryStation/InteractionArea"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
shape = SubResource("SphereShape3D_interact")
[node name="SpeechBubble" parent="HistoryStation" instance=ExtResource("6_bubble")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.6, 0)
[node name="Triggers" type="Node3D" parent="."]
[node name="TriggerRiderQuadrant" type="Area3D" parent="Triggers"]