game: Krypta als erste Dungeon-Karte — Dunkelheit, Fackellicht, Übergang mit Ankunft

This commit is contained in:
torsten 2026-11-17 16:59:51 +01:00
parent ee177c6b35
commit a3f84ff352
12 changed files with 404 additions and 36 deletions

View file

@ -105,6 +105,14 @@ class Pruefer:
self.melde(datei, pfad, f"{wert} < {regel['min']}")
if "max" in regel and wert > regel["max"]:
self.melde(datei, pfad, f"{wert} > {regel['max']}")
elif typ == "float":
if not isinstance(wert, (int, float)) or isinstance(wert, bool):
self.melde(datei, pfad, "keine Zahl")
else:
if "min" in regel and wert < regel["min"]:
self.melde(datei, pfad, f"{wert} < {regel['min']}")
if "max" in regel and wert > regel["max"]:
self.melde(datei, pfad, f"{wert} > {regel['max']}")
elif typ == "asset":
self.pruefe_asset(datei, pfad, wert, regel)
elif typ == "list":