mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-08-04 11:36:13 -07:00
ruff 🐶
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user