mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
KDL3: Account for additional animal in pool #3874
This commit is contained in:
@@ -201,16 +201,13 @@ class KDL3World(World):
|
|||||||
else:
|
else:
|
||||||
animal_base = ["Rick Spawn", "Kine Spawn", "Coo Spawn", "Nago Spawn", "ChuChu Spawn", "Pitch Spawn"]
|
animal_base = ["Rick Spawn", "Kine Spawn", "Coo Spawn", "Nago Spawn", "ChuChu Spawn", "Pitch Spawn"]
|
||||||
animal_pool = [self.random.choice(animal_base)
|
animal_pool = [self.random.choice(animal_base)
|
||||||
for _ in range(len(animal_friend_spawns) - 9)]
|
for _ in range(len(animal_friend_spawns) - 10)]
|
||||||
# have to guarantee one of each animal
|
# have to guarantee one of each animal
|
||||||
animal_pool.extend(animal_base)
|
animal_pool.extend(animal_base)
|
||||||
if guaranteed_animal == "Kine Spawn":
|
if guaranteed_animal == "Kine Spawn":
|
||||||
animal_pool.append("Coo Spawn")
|
animal_pool.append("Coo Spawn")
|
||||||
else:
|
else:
|
||||||
animal_pool.append("Kine Spawn")
|
animal_pool.append("Kine Spawn")
|
||||||
# Weird fill hack, this forces ChuChu to be the last animal friend placed
|
|
||||||
# If Kine is ever the last animal friend placed, he will cause fill errors on closed world
|
|
||||||
animal_pool.sort()
|
|
||||||
locations = [self.multiworld.get_location(spawn, self.player) for spawn in spawns]
|
locations = [self.multiworld.get_location(spawn, self.player) for spawn in spawns]
|
||||||
items: List[Item] = [self.create_item(animal) for animal in animal_pool]
|
items: List[Item] = [self.create_item(animal) for animal in animal_pool]
|
||||||
allstate = CollectionState(self.multiworld)
|
allstate = CollectionState(self.multiworld)
|
||||||
|
Reference in New Issue
Block a user