game: Party-Erstellung als Einstieg — Roster, Figurenmaske, UI-Probe

This commit is contained in:
torsten 2026-11-17 14:36:39 +01:00
parent b47c392e85
commit f8d8f56b86
16 changed files with 707 additions and 17 deletions

View file

@ -15,8 +15,9 @@ var flags: Dictionary = {}
var log_lines: Array[String] = []
func _ready() -> void:
if party.is_empty():
_neue_party()
# Die Party entsteht in der Erstellung (docs/charaktererstellung.md).
# `party_schnellstart()` füllt sie für den Direktstart ohne Erstellung.
pass
## Vier Figuren, wie in docs/systeme.md §11 durchgerechnet.
func _neue_party() -> void:
@ -61,6 +62,11 @@ func party_entfernen(id: String) -> bool:
func party_bereit() -> bool:
return party.size() >= 1 and party.size() <= PARTY_MAX
## Die vier Papierprobe-Figuren als Schnellstart (Titelschirm/Erstellung).
func party_schnellstart() -> void:
_neue_party()
func _naechste_pc_id() -> String:
var belegt := {}
for figur in party:
@ -86,6 +92,7 @@ func neue_figur(id: String, vorgabe: Dictionary) -> Dictionary:
return {
"id": id, "name": vorgabe["name"],
"race": vorgabe["race"], "class": vorgabe["class"],
"portrait": str(vorgabe.get("portrait", "")),
"level": 1, "xp": 0,
"attributes": attrs,
"hp": {"current": hp_max, "max": hp_max},