Some fixes sent by Catobat
This commit is contained in:
@@ -1730,7 +1730,7 @@ class DoorTypePool:
|
||||
|
||||
def chaos_shuffle(self, counts):
|
||||
weights = [1, 2, 4, 3, 2, 1]
|
||||
return [random.choices(self.get_choices(counts[i]), weights=weights) for i, c in enumerate(counts)]
|
||||
return [random.choices(self.get_choices(counts[i]), weights=weights)[0] for i, c in enumerate(counts)]
|
||||
|
||||
@staticmethod
|
||||
def get_choices(number):
|
||||
@@ -2316,7 +2316,7 @@ def find_big_key_candidates(builder, start_regions, used, world, player):
|
||||
else:
|
||||
r_set = builder.master_sector.region_set()
|
||||
for r in r_set:
|
||||
for ext in r.exits:
|
||||
for ext in world.get_region(r, player).exits:
|
||||
if ext.door:
|
||||
d = ext.door
|
||||
if d.bigKey and d.type in [DoorType.Normal, DoorType.Interior]:
|
||||
|
||||
2
Rom.py
2
Rom.py
@@ -753,7 +753,7 @@ def patch_rom(world, rom, player, team, enemized, is_mystery=False):
|
||||
dr_flags |= DROptions.DarkWorld_Spawns
|
||||
if world.logic[player] != 'nologic':
|
||||
dr_flags |= DROptions.Fix_EG
|
||||
if world.door_type_mode in ['big', 'chaos']:
|
||||
if world.door_type_mode[player] in ['big', 'all', 'chaos']:
|
||||
dr_flags |= DROptions.BigKeyDoor_Shuffle
|
||||
|
||||
my_locations = world.get_filled_locations(player)
|
||||
|
||||
Reference in New Issue
Block a user