2 Commits

Author SHA1 Message Date
029e8de852 Log teleporter replacements instead of printing to STDOUT 2026-01-24 20:58:20 -06:00
ca9af423db Add pyproject.toml 2026-01-24 13:36:21 -06:00
3 changed files with 16 additions and 1 deletions

View File

@@ -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))

7
pyproject.toml Normal file
View File

@@ -0,0 +1,7 @@
[project]
name = "alttpr-apr-2025"
version = "1.1"
description = "April Fools 2025 Festive Randomizer"
readme = "README.md"
requires-python = ">=3.7"
dependencies = []

8
uv.lock generated Normal file
View File

@@ -0,0 +1,8 @@
version = 1
revision = 3
requires-python = ">=3.7"
[[package]]
name = "alttpr-apr-2025"
version = "1.1"
source = { virtual = "." }