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:
parent
2ee3c3f782
commit
ef60c96735
10 changed files with 345 additions and 10 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=34 format=3]
|
||||
[gd_scene load_steps=40 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"]
|
||||
|
|
@ -7,6 +7,7 @@
|
|||
[ext_resource type="Script" path="res://scripts/gameplay/zone_trigger.gd" id="5_zone"]
|
||||
[ext_resource type="PackedScene" path="res://scenes/ui/speech_bubble.tscn" id="6_bubble"]
|
||||
[ext_resource type="Script" path="res://scripts/gameplay/ambient_chatter.gd" id="7_chatter"]
|
||||
[ext_resource type="Script" path="res://scripts/gameplay/training_station.gd" id="8_station"]
|
||||
|
||||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_sky"]
|
||||
sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
|
||||
|
|
@ -93,6 +94,23 @@ height = 1.8
|
|||
[sub_resource type="SphereShape3D" id="SphereShape3D_interact"]
|
||||
radius = 2.5
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_station"]
|
||||
size = Vector3(1.2, 1.2, 1.2)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_combat"]
|
||||
albedo_color = Color(0.7, 0.32, 0.25, 1)
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_combat"]
|
||||
material = SubResource("StandardMaterial3D_combat")
|
||||
size = Vector3(1.2, 1.2, 1.2)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_navigation"]
|
||||
albedo_color = Color(0.3, 0.6, 0.6, 1)
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_navigation"]
|
||||
material = SubResource("StandardMaterial3D_navigation")
|
||||
size = Vector3(1.2, 1.2, 1.2)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_trigger"]
|
||||
transparency = 1
|
||||
albedo_color = Color(0.3, 0.8, 1, 0.35)
|
||||
|
|
@ -445,6 +463,90 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, -10)
|
|||
[node name="AmbientChatter" type="Node" parent="."]
|
||||
script = ExtResource("7_chatter")
|
||||
|
||||
[node name="CombatStation" type="StaticBody3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -14, 0, 12)
|
||||
script = ExtResource("8_station")
|
||||
station_name = "Kampftraining"
|
||||
stat_name = "strength"
|
||||
success_line = "Die Schultern brennen. Gut so."
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="CombatStation"]
|
||||
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="CombatStation"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.6, 0)
|
||||
mesh = SubResource("BoxMesh_combat")
|
||||
|
||||
[node name="NameLabel" type="Label3D" parent="CombatStation"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
|
||||
billboard = 1
|
||||
text = "Kampftraining"
|
||||
font_size = 56
|
||||
outline_size = 14
|
||||
|
||||
[node name="PromptLabel" type="Label3D" parent="CombatStation"]
|
||||
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="CombatStation"]
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="CombatStation/InteractionArea"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
shape = SubResource("SphereShape3D_interact")
|
||||
|
||||
[node name="SpeechBubble" parent="CombatStation" instance=ExtResource("6_bubble")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.6, 0)
|
||||
|
||||
[node name="NavigationStation" type="StaticBody3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16, 0, 10)
|
||||
script = ExtResource("8_station")
|
||||
station_name = "Landnavigation"
|
||||
stat_name = "agility"
|
||||
success_line = "Karte, Gelände, Wind — es fügt sich zusammen."
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="NavigationStation"]
|
||||
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="NavigationStation"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.6, 0)
|
||||
mesh = SubResource("BoxMesh_navigation")
|
||||
|
||||
[node name="NameLabel" type="Label3D" parent="NavigationStation"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
|
||||
billboard = 1
|
||||
text = "Landnavigation"
|
||||
font_size = 56
|
||||
outline_size = 14
|
||||
|
||||
[node name="PromptLabel" type="Label3D" parent="NavigationStation"]
|
||||
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="NavigationStation"]
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="NavigationStation/InteractionArea"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
shape = SubResource("SphereShape3D_interact")
|
||||
|
||||
[node name="SpeechBubble" parent="NavigationStation" instance=ExtResource("6_bubble")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.6, 0)
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("2_player")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, 8)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue