game: Bewusstlos und getötet getrennt — Marken je Größe

This commit is contained in:
torsten 2026-11-17 16:08:17 +01:00
parent ea2944331b
commit b15fa65012
47 changed files with 736 additions and 15 deletions

View file

@ -63,6 +63,15 @@ func _ready() -> void:
ok("Angriff tötet und entfernt die Belegung",
not bool(e[monster_idx]["alive"]))
# Bewusstlos vs. getötet: Partei bekommt Zz und neutralen Marker, steht auf.
k.call("_todesfall", partei_idx)
var pdown: Dictionary = e[partei_idx]
ok("Bewusstlos: Zz und Marker", pdown.has("zz") and pdown.has("pool"))
k.call("_wieder_aufstehen", pdown)
ok("Aufstehen: Zz/Marker weg, 1 TP", not pdown.has("zz")
and not pdown.has("pool") and bool(pdown["alive"])
and int(pdown["hp"]) == 1)
var gold_vorher := Game.gold
for i in e.size():
if e[i]["team"] == "monster" and bool(e[i]["alive"]):