Documentation update

This commit is contained in:
alwaysintreble 2021-10-09 05:55:50 -05:00 committed by GitHub
parent d10cab824a
commit d3780cd9d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -104,13 +104,13 @@ class RiskOfRainWorld(World):
item = RiskOfRainItem(name, True, item_id, self.player)
return item
# generate locations based on player setting
def create_regions(world, player: int):
world.regions += [
create_region(world, player, 'Menu', None, ['Lobby']),
create_region(world, player, 'Petrichor V',
[location for location in base_location_table] +
[f"Item Pickup {i}" for i in range(1, 1 + world.total_locations[player])]) # i don't understand this line but it works
[f"Item Pickup {i}" for i in range(1, 1 + world.total_locations[player])])
]
world.get_entrance("Lobby", player).connect(world.get_region("Petrichor V", player))