ruff 🐶

This commit is contained in:
spinerak
2024-07-20 23:19:38 +02:00
parent 36c1c8d340
commit 676dfd4343
3 changed files with 3567 additions and 9 deletions
File diff suppressed because one or more lines are too long
+8 -3
View File
@@ -96,7 +96,6 @@ class YachtDiceWorld(World):
else: else:
raise Exception(f"[Yacht Dice] Unknown MinimalNumberOfDiceAndRolls options {opt_dice_and_rolls}") raise Exception(f"[Yacht Dice] Unknown MinimalNumberOfDiceAndRolls options {opt_dice_and_rolls}")
# amount of dice and roll fragments needed to get a dice or roll # amount of dice and roll fragments needed to get a dice or roll
self.frags_per_dice = self.options.number_of_dice_fragments_per_dice.value self.frags_per_dice = self.options.number_of_dice_fragments_per_dice.value
self.frags_per_roll = self.options.number_of_roll_fragments_per_roll.value self.frags_per_roll = self.options.number_of_roll_fragments_per_roll.value
@@ -180,7 +179,6 @@ class YachtDiceWorld(World):
self.itempool.append("Roll") self.itempool.append("Roll")
num_of_rolls_to_add -= 1 num_of_rolls_to_add -= 1
# if one fragment per dice, just add "Dice" objects # if one fragment per dice, just add "Dice" objects
if num_of_dice_to_add > 0: if num_of_dice_to_add > 0:
if self.frags_per_dice == 1: if self.frags_per_dice == 1:
@@ -447,7 +445,14 @@ class YachtDiceWorld(World):
def create_regions(self): def create_regions(self):
# call the ini_locations function, that generates locations based on the inputs. # call the ini_locations function, that generates locations based on the inputs.
location_table = ini_locations(self.goal_score, self.max_score, self.number_of_locations, self.difficulty, self.skip_early_locations, self.multiworld.players) location_table = ini_locations(
self.goal_score,
self.max_score,
self.number_of_locations,
self.difficulty,
self.skip_early_locations,
self.multiworld.players,
)
# simple menu-board construction # simple menu-board construction
menu = Region("Menu", self.player, self.multiworld) menu = Region("Menu", self.player, self.multiworld)