Pot shuffle repair
This commit is contained in:
@@ -146,7 +146,9 @@ class World(object):
|
|||||||
region.world = self
|
region.world = self
|
||||||
self._region_cache[region.player][region.name] = region
|
self._region_cache[region.player][region.name] = region
|
||||||
for exit in region.exits:
|
for exit in region.exits:
|
||||||
self._entrance_cache[(exit.name, exit.player)] = exit
|
self._entrance_cache[exit.name, exit.player] = exit
|
||||||
|
for r_location in region.locations:
|
||||||
|
self._location_cache[r_location.name, r_location.player] = r_location
|
||||||
|
|
||||||
def initialize_doors(self, doors):
|
def initialize_doors(self, doors):
|
||||||
for door in doors:
|
for door in doors:
|
||||||
|
|||||||
3
Main.py
3
Main.py
@@ -428,12 +428,13 @@ def copy_world(world):
|
|||||||
copied_shop.inventory = copy.copy(shop.inventory)
|
copied_shop.inventory = copy.copy(shop.inventory)
|
||||||
|
|
||||||
# connect copied world
|
# connect copied world
|
||||||
|
copied_locations = {(loc.name, loc.player): loc for loc in ret.get_locations()} # caches all locations
|
||||||
for region in world.regions:
|
for region in world.regions:
|
||||||
copied_region = ret.get_region(region.name, region.player)
|
copied_region = ret.get_region(region.name, region.player)
|
||||||
copied_region.is_light_world = region.is_light_world
|
copied_region.is_light_world = region.is_light_world
|
||||||
copied_region.is_dark_world = region.is_dark_world
|
copied_region.is_dark_world = region.is_dark_world
|
||||||
copied_region.dungeon = region.dungeon
|
copied_region.dungeon = region.dungeon
|
||||||
copied_region.locations = [ret.get_location(location.name, location.player) for location in region.locations]
|
copied_region.locations = [copied_locations[(location.name, location.player)] for location in region.locations]
|
||||||
for entrance in region.entrances:
|
for entrance in region.entrances:
|
||||||
ret.get_entrance(entrance.name, entrance.player).connect(copied_region)
|
ret.get_entrance(entrance.name, entrance.player).connect(copied_region)
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Big thanks to Catobat for doing all the hard work.
|
|||||||
|
|
||||||
## Experimental Item Counter
|
## Experimental Item Counter
|
||||||
|
|
||||||
New item counter modified to show total?
|
New item counter modified to show total
|
||||||
|
|
||||||
# Bug Fixes
|
# Bug Fixes
|
||||||
|
|
||||||
@@ -23,6 +23,9 @@ New item counter modified to show total?
|
|||||||
* Key logic fix
|
* Key logic fix
|
||||||
* Fix for door gen re-start
|
* Fix for door gen re-start
|
||||||
* More lenient keys in DR+Retro
|
* More lenient keys in DR+Retro
|
||||||
|
* Fix for shufflepots option
|
||||||
|
* 0.3.0.2-u
|
||||||
|
* Introduced in-room staircases/ladders
|
||||||
* 0.3.0.1-u
|
* 0.3.0.1-u
|
||||||
* Problem with lobbies on re-rolls corrected
|
* Problem with lobbies on re-rolls corrected
|
||||||
* Potential playthrough problem addressed
|
* Potential playthrough problem addressed
|
||||||
|
|||||||
Reference in New Issue
Block a user