🐶 ruff

This commit is contained in:
spinerak
2024-07-06 21:22:48 +02:00
parent 577fb744f6
commit d93e62b637
3 changed files with 5425 additions and 3 deletions

View File

@@ -16,6 +16,7 @@ from .YachtWeights import yacht_weights
# We then pick a correct percentile to reflect the correct score that should be in logic.
# The score is logic is *much* lower than the actual maximum reachable score.
class Category:
def __init__(self, name, quantity=1):
self.name = name

File diff suppressed because one or more lines are too long

View File

@@ -301,7 +301,12 @@ class YachtDiceWorld(World):
self.itempool.append(get_item_to_add(weights, extra_points_added, multipliers_added, items_added))
score_in_logic = dice_simulation_fill_pool(
self.itempool + self.precollected, self.frags_per_dice, self.frags_per_roll, self.possible_categories, self.difficulty, self.player
self.itempool + self.precollected,
self.frags_per_dice,
self.frags_per_roll,
self.possible_categories,
self.difficulty,
self.player,
)
# if we overshoot, remove items until you get below 1000, then return the last removed item
@@ -445,7 +450,14 @@ class YachtDiceWorld(World):
"""
set rules per location, and add the rule for beating the game
"""
set_yacht_rules(self.multiworld, self.player, self.frags_per_dice, self.frags_per_roll, self.possible_categories, self.difficulty)
set_yacht_rules(
self.multiworld,
self.player,
self.frags_per_dice,
self.frags_per_roll,
self.possible_categories,
self.difficulty,
)
set_yacht_completion_rules(self.multiworld, self.player)
def fill_slot_data(self):