Change where we set art, inventory and location
This commit is contained in:
parent
a1f215cc93
commit
21bd3c39bb
|
@ -57,12 +57,6 @@ class Handler(npyscreen.ButtonPress):
|
||||||
# Put the player in a blank room i forgot to finish
|
# Put the player in a blank room i forgot to finish
|
||||||
room = parse(self.parent.parentApp.mainPath / 'gamedata/world/blank_room.yaml')
|
room = parse(self.parent.parentApp.mainPath / 'gamedata/world/blank_room.yaml')
|
||||||
|
|
||||||
# This sets the footer text in the art window
|
|
||||||
try:
|
|
||||||
self.parent.update_location(room['name'])
|
|
||||||
except KeyError:
|
|
||||||
self.parent.update_location('Unknown Location')
|
|
||||||
|
|
||||||
# By now we should be situated in our room, and with our player.
|
# By now we should be situated in our room, and with our player.
|
||||||
# self.parent.parentApp.log.debug(room) # We dont need to log this, its too verbose!
|
# self.parent.parentApp.log.debug(room) # We dont need to log this, its too verbose!
|
||||||
|
|
||||||
|
@ -129,6 +123,15 @@ class Handler(npyscreen.ButtonPress):
|
||||||
# Log the command that we parsed
|
# Log the command that we parsed
|
||||||
self.parent.parentApp.log.info('Parsed command "{0}" with arguments "{1}"'.format(command, arguments))
|
self.parent.parentApp.log.info('Parsed command "{0}" with arguments "{1}"'.format(command, arguments))
|
||||||
|
|
||||||
|
"""
|
||||||
|
Do a little bit of final setup, change the art if we
|
||||||
|
need to, change the text at the bottom and update the inventory.
|
||||||
|
"""
|
||||||
|
try:
|
||||||
|
self.parent.update_location(room['name'])
|
||||||
|
except KeyError:
|
||||||
|
self.parent.update_location('Unknown Location')
|
||||||
|
|
||||||
# Make sure to re-draw the art box when we're all done (in case we updated it in logic above)
|
# Make sure to re-draw the art box when we're all done (in case we updated it in logic above)
|
||||||
self.parent.artContent.display()
|
self.parent.artContent.display()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue