Definition der Konstanten für Gegenstände.

Adjektivliste.
This commit is contained in:
Olli Graf
2022-02-06 15:57:44 +01:00
parent a496f98199
commit f1dbb69004
6 changed files with 60 additions and 4 deletions

View File

@@ -62,7 +62,13 @@ class WorldParser():
command = Befehl(name,id,key)
self.world.befehle[id] = command
# Adjektive
for adj in root.findall('adjektive/adjektiv'):
name = adj.attrib['name']
id = adj.attrib['id']
key = adj.attrib['key']
self.world.adjektive.append(name)
# Sortouts
for sortout in root.findall('sortouts/sortout'):
name = sortout.attrib['name']