From e2f056734b3e7e69fa1882e7510edf09582359b4 Mon Sep 17 00:00:00 2001 From: spinerak Date: Mon, 10 Jun 2024 18:57:58 +0200 Subject: [PATCH] Instead of turning it into a tuple, you can just make a tuple literal --- worlds/yachtdice/Rules.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/worlds/yachtdice/Rules.py b/worlds/yachtdice/Rules.py index 497d9f5f86..b1630849f8 100644 --- a/worlds/yachtdice/Rules.py +++ b/worlds/yachtdice/Rules.py @@ -124,15 +124,13 @@ def dice_simulation_strings(categories, num_dice, num_rolls, fixed_mult, step_mu """ Function that returns the feasible score in logic based on items obtained. """ - tup = tuple( - [ - tuple(sorted([c.name + str(c.quantity) for c in categories])), - num_dice, - num_rolls, - fixed_mult, - step_mult, - diff, - ] + tup = ( + tuple(sorted([c.name + str(c.quantity) for c in categories])), + num_dice, + num_rolls, + fixed_mult, + step_mult, + diff, ) # identifier # if already computed, return the result