Log teleporter replacements instead of printing to STDOUT
This commit is contained in:
@@ -219,7 +219,7 @@ class World(object):
|
|||||||
else:
|
else:
|
||||||
if item.name == 'Teleporter':
|
if item.name == 'Teleporter':
|
||||||
from Items import ItemFactory
|
from Items import ItemFactory
|
||||||
print('Cannot assign item %s to location %s, replacing with red rupee.' % (item, location))
|
logging.getLogger('').info('Cannot assign item %s to location %s, replacing with red rupee.' % (item, location))
|
||||||
self.push_item(location, ItemFactory('Rupees (20)', item.player), collect)
|
self.push_item(location, ItemFactory('Rupees (20)', item.player), collect)
|
||||||
else:
|
else:
|
||||||
raise RuntimeError('Cannot assign item %s to location %s.' % (item, location))
|
raise RuntimeError('Cannot assign item %s to location %s.' % (item, location))
|
||||||
|
|||||||
Reference in New Issue
Block a user