Minor bug fixes, added text to all NPCs.

This commit is contained in:
LLCoolDave
2017-05-20 20:03:13 +02:00
parent d6050eb0e1
commit 0b0f43f5bf
4 changed files with 23 additions and 27 deletions

View File

@@ -62,7 +62,7 @@ class World(object):
if r_location.name == location:
self._location_cache[location] = r_location
return r_location
raise RuntimeError('No such entrance %s' % location)
raise RuntimeError('No such location %s' % location)
def find_items(self, item):
return [location for location in self.get_locations() if location.item is not None and location.item.name == item]