Initialize region cache in initialize_regions() and make it a 2d map for more efficient player filtering

This commit is contained in:
Bonta-kun
2019-12-14 19:19:08 +01:00
parent bf7a2d79fb
commit e4fef05d53
5 changed files with 13 additions and 10 deletions

View File

@@ -307,7 +307,7 @@ def create_regions(world, player):
world.shops.append(shop)
shop.add_inventory(0, 'Bomb Upgrade (+5)', 100, 7)
shop.add_inventory(1, 'Arrow Upgrade (+5)', 100, 7)
world.intialize_regions()
world.initialize_regions()
def create_lw_region(player, name, locations=None, exits=None):
return _create_region(player, name, RegionType.LightWorld, 'Light World', locations, exits)