Skip to content

Commit

Permalink
applying suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
threeandthreee committed Nov 14, 2024
1 parent f991d77 commit 3ab75d5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions worlds/ladx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,14 +513,14 @@ def remove(self, state, item: Item) -> bool:
state.prog_items[self.player]["RUPEES"] -= self.rupees[item.name]
return change

# Same fill choices and weights used in LADXR.itempool.__randomizeRupees
filler_choices = ('Bomb', 'Single Arrow', '10 Arrows', 'Magic Powder', 'Medicine')
filler_weights = ( 10, 5, 10, 10, 1)

def get_filler_item_name(self) -> str:
if self.options.stabilize_item_pool:
return "Nothing"
else:
# Same fill choices and weights used in LADXR.itempool.__randomizeRupees
filler_choices = ('Bomb', 'Single Arrow', '10 Arrows', 'Magic Powder', 'Medicine')
filler_weights = ( 10, 5, 10, 10, 1)
return self.random.choices(filler_choices, filler_weights)[0]
return self.random.choices(self.filler_choices, self.filler_weights)[0]

def fill_slot_data(self):
slot_data = {}
Expand Down

0 comments on commit 3ab75d5

Please sign in to comment.