Meritous get_filler_item_name
This commit is contained in:
parent
55d8c8c928
commit
0a63bd0fc6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue