diff --git a/worlds/meritous/__init__.py b/worlds/meritous/__init__.py index 2f59f782..3c29032a 100644 --- a/worlds/meritous/__init__.py +++ b/worlds/meritous/__init__.py @@ -68,6 +68,7 @@ class MeritousWorld(World): ] def create_item(self, name: str) -> Item: + return MeritousItem(name, self._is_progression( name), item_table[name], self.player) @@ -83,16 +84,19 @@ class MeritousWorld(World): crystal_pool = [] for _ in range(0, qty): - rand_crystals = self.world.random.randrange(0, 32) - if rand_crystals < 16: - crystal_pool += [self.create_item("Crystals x500")] - elif rand_crystals < 28: - crystal_pool += [self.create_item("Crystals x1000")] - else: - crystal_pool += [self.create_item("Crystals x2000")] + crystal_pool.append(self.create_filler()) return crystal_pool + def get_filler_item_name(self) -> str: + rand_crystals = self.world.random.randrange(0, 32) + if rand_crystals < 16: + return "Crystals x500" + elif rand_crystals < 28: + return "Crystals x1000" + else: + return "Crystals x2000" + def generate_early(self): self.goal = self.world.goal[self.player].value self.include_evolution_traps = self.world.include_evolution_traps[self.player].value