From eb1c96535acf0e10ea50bc32aef8ed1ad9dbb354 Mon Sep 17 00:00:00 2001 From: Silvris <58583688+Silvris@users.noreply.github.com> Date: Wed, 27 Mar 2024 22:18:26 -0500 Subject: [PATCH] add prefill items --- worlds/kdl3/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/worlds/kdl3/__init__.py b/worlds/kdl3/__init__.py index cc161382b7..5a1c70a44f 100644 --- a/worlds/kdl3/__init__.py +++ b/worlds/kdl3/__init__.py @@ -6,7 +6,7 @@ from Fill import fill_restrictive from Options import PerGameCommonOptions from worlds.AutoWorld import World, WebWorld from .Items import item_table, item_names, copy_ability_table, animal_friend_table, filler_item_weights, KDL3Item, \ - trap_item_table, copy_ability_access_table, star_item_weights, total_filler_weights + trap_item_table, copy_ability_access_table, star_item_weights, total_filler_weights, animal_friend_spawn_table from .Locations import location_table, KDL3Location, level_consumables, consumable_locations, star_locations from .Names.AnimalFriendSpawns import animal_friend_spawns from .Names.EnemyAbilities import vanilla_enemies, enemy_mapping, enemy_restrictive @@ -118,6 +118,10 @@ class KDL3World(World): return None # a valid enemy got placed by a more restrictive placement return self.random.choice(sorted([enemy for enemy in valid_enemies if enemy not in placed_enemies])) + def get_pre_fill_items(self) -> List[KDL3Item]: + return [self.create_item(item) + for item in [*copy_ability_access_table.keys(), *animal_friend_spawn_table.keys()]] + def pre_fill(self) -> None: if self.options.copy_ability_randomization: # randomize copy abilities