From 03ba657f4fab8708672105bc9a09217a5e295bee Mon Sep 17 00:00:00 2001 From: spinerak Date: Mon, 10 Jun 2024 18:56:46 +0200 Subject: [PATCH] return arguments instead of making a list (will :dog: later) --- worlds/yachtdice/Rules.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/worlds/yachtdice/Rules.py b/worlds/yachtdice/Rules.py index fecd2c04e3..497d9f5f86 100644 --- a/worlds/yachtdice/Rules.py +++ b/worlds/yachtdice/Rules.py @@ -110,14 +110,8 @@ def extract_progression(state, player, options): extra_points_in_logic += state.count("10 Points", player) * 10 extra_points_in_logic += state.count("100 Points", player) * 100 - return [ - categories, - number_of_dice, - number_of_rerolls, - number_of_fixed_mults * 0.1, - number_of_step_mults * 0.01, - extra_points_in_logic, - ] + return categories, number_of_dice, number_of_rerolls, number_of_fixed_mults * 0.1, number_of_step_mults * 0.01, extra_points_in_logic, + # We will store the results of this function as it is called often for the same parameters.