game: Krypta als erste Dungeon-Karte — Dunkelheit, Fackellicht, Übergang mit Ankunft
This commit is contained in:
parent
ee177c6b35
commit
a3f84ff352
12 changed files with 404 additions and 36 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue