From 3ab75d5711547b65c6ed5a42d5a7934fe8204f73 Mon Sep 17 00:00:00 2001 From: threeandthreee Date: Thu, 14 Nov 2024 12:58:55 -0500 Subject: [PATCH] applying suggestions --- worlds/ladx/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/worlds/ladx/__init__.py b/worlds/ladx/__init__.py index a6020c2071bc..aa7604e00596 100644 --- a/worlds/ladx/__init__.py +++ b/worlds/ladx/__init__.py @@ -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 = {}