mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Meritous get_filler_item_name
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user