Loch erreichbar.
Beschreibung abhängig vom Zustand der Fackel
This commit is contained in:
17
World.py
17
World.py
@@ -103,13 +103,24 @@ class World:
|
||||
|
||||
def printRaum(self):
|
||||
raum = self.aktuellerRaum
|
||||
beschreibung = self.aktuellerRaum.beschreibung
|
||||
|
||||
if self.aktuellerRaum.id == self.RAUM_LOCH:
|
||||
fackel = self.findItemImInventarById(self.ITEM_FACKEL)
|
||||
logging.debug(f'fackel={fackel}')
|
||||
if fackel != None:
|
||||
textid=f'raum-{self.RAUM_LOCH}-{fackel.zustand}'
|
||||
beschreibung = self.texte[textid].name
|
||||
|
||||
self.clearScreen()
|
||||
|
||||
if self.fehler != None and self.fehler != '':
|
||||
self.stdscr.addstr(self.fehler,curses.color_pair(1))
|
||||
|
||||
|
||||
|
||||
self.stdscr.addstr(3,0,'aktueller Raum: ' + raum.name,curses.color_pair(3))
|
||||
self.stdscr.addstr(4,0,raum.beschreibung)
|
||||
self.stdscr.addstr(4,0,beschreibung)
|
||||
self.stdscr.addstr(7,0,'Gegenstände: ' + str(raum.labelsGegenstaende()),curses.color_pair(2))
|
||||
self.stdscr.addstr(8,0,'Inventar: '+ str(self.labelsInventar()), curses.color_pair(2))
|
||||
self.stdscr.addstr(9,0,'Personen: ' + str(raum.labelsPersonen()),curses.color_pair(2))
|
||||
@@ -321,6 +332,8 @@ class World:
|
||||
|
||||
return count, entdeckt
|
||||
|
||||
def findPrevRaumId(self):
|
||||
return self.weg[-1]
|
||||
|
||||
def debug_Items(self):
|
||||
logging.debug('liste Items')
|
||||
@@ -392,6 +405,8 @@ class World:
|
||||
self.ITEM_BEIBOOT = '32'
|
||||
self.ITEM_DIAMANT = '33'
|
||||
self.ITEM_SOCKEL = '34'
|
||||
self.ITEM_PALME = '40'
|
||||
self.ITEM_LOCH = '41'
|
||||
|
||||
# Räume
|
||||
|
||||
|
Reference in New Issue
Block a user