Allow using _ in startinventory argument

This commit is contained in:
2021-12-20 21:52:54 -08:00
parent 061b8975f9
commit b99fd4a820

View File

@@ -171,7 +171,7 @@ def main(args, seed=None, fish=None):
world.escape_assist[player].append('bombs') # enemized escape assumes infinite bombs available and will likely be unbeatable without it
for tok in filter(None, args.startinventory[player].split(',')):
item = ItemFactory(tok.strip(), player)
item = ItemFactory(tok.replace("_", " ").strip(), player)
if item:
world.push_precollected(item)