diff --git a/World.py b/World.py index 55bf597..52f8c22 100644 --- a/World.py +++ b/World.py @@ -419,7 +419,17 @@ class World: self.RAUM_BOOT = '25' self.RAUM_KABINE = '26' self.RAUM_BOOT2 = '27' - self.RAUM_INSEL = '28' + self.RAUM_BEIBOOT = '28' + self.RAUM_INSEL = '30' + self.RAUM_LOCH = '31' + self.RAUM_BOOT3 = '32' + self.RAUM_KLIPPE = '33' + self.RAUM_WASSER = '34' + self.RAUM_STRAND = '35' + self.RAUM_WALD = '36' + self.RAUM_STATUE = '37' + self.RAUM_KOPF = '38' + diff --git a/WorldParser.py b/WorldParser.py index b9c5644..1a9a856 100644 --- a/WorldParser.py +++ b/WorldParser.py @@ -26,6 +26,8 @@ class WorldParser(): id = item.attrib['id'] name = item.attrib['name'] beschreibung = '' + if id in self.world.raumliste: + raise ValueError(f'doppelte RaumId {id}') # Beschreibung for text in item.iter(): if text != None and text.text != None: @@ -55,8 +57,6 @@ class WorldParser(): self.world.raumliste[id] = raum startr = root.find('startraum') - print(startr) - print(startr.attrib['id']) startraum = self.world.sucheRaum(startr.attrib['id']) self.world.aktuellerRaum = startraum print('Startraum gefunden.') diff --git a/map.txt b/map.txt index 8e0348c..600dfa0 100644 --- a/map.txt +++ b/map.txt @@ -34,22 +34,27 @@ | | V - Pfad<--> Pfad - ^ - | - | - V - Tal<---> Tunnel <--->Hafen<-->Boot - ^ ^ \ - | | Kabine - | | / - V V / - Baum <--> Baumhaus Boot - ^ - | - V + Pfad<--> Pfad Kopf + ^ ^ + | | + | | + V V + Tal<---> Tunnel <--->Hafen<-->Boot Statue<-------------->Mauer + ^ ^ \ ^ ^ + | | Kabine | | + Boot2 | | | + | | / | | + V V / V V + Baum <--> Baumhaus Klippe<-->Strand<--> Wald Grabkammer + | | + | Boot3 + V / Beiboot<--> Insel - + ^ + | + | + V + Loch diff --git a/world.xml b/world.xml index 4490036..1501494 100644 --- a/world.xml +++ b/world.xml @@ -182,6 +182,77 @@ Du stehst an Deck des Segelboots. Vor dem Bug liegt eine kleine Insel. + + + + Im Beiboot + + + + + + Du stehst an Deck des Segelboots. Vor dem Bug liegt eine kleine Insel. + + + + + + Du stehst an Deck des Segelboots. Vor dem Bug liegt eine kleine Insel. + + + + + + Du stehst an Deck des Segelboots. Vor dem Bug liegt eine kleine Insel. + + + + + + Das Boot liegt vor einer Klippe. Neben dieser ist ein Kiesstrand zu erkennen. + + + + + + Du treibst im Wasser. Glücklicherweise hast du deine Rettungsweste an. + + + + + + Das Strand ist mit unzähligen Kieselsteinen übersäht. Im Osten sind Baumwipfel eines Waldes zu erkennen. + + + + + + Ein alter, dichter Laubwald. + + + + + + + Du stehst vor einer etwa 10m hohen Statue + + + + + Nach einer kleinen Kletterpartie stehst du stehst auf dem Kopf der Statue. + + + + + Du stehst vor einer Mauer. + + + + + + Das Grab des Azteken. Du bist am Ziel. + +