From 704a0e3078579f02a11f5bf5f39a71fc213d24f2 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sat, 30 Oct 2021 07:52:03 +0200 Subject: [PATCH] minor cleanup --- kvui.py | 8 ++++---- worlds/AutoWorld.py | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/kvui.py b/kvui.py index 6e5447ca..5b3a5afd 100644 --- a/kvui.py +++ b/kvui.py @@ -72,8 +72,6 @@ class ServerToolTip(Label): class ServerLabel(HoverBehavior, Label): - hover_text = """""" - def __init__(self, *args, **kwargs): super(ServerLabel, self).__init__(*args, **kwargs) self.layout = FloatLayout() @@ -92,7 +90,8 @@ class ServerLabel(HoverBehavior, Label): ctx = self.ctx text = f"Connected to: {ctx.server_address}." if ctx.slot is not None: - text += f"\nYou are Slot Number {ctx.slot} in Team Number {ctx.team}, named {ctx.player_names[ctx.slot]}." + text += f"\nYou are Slot Number {ctx.slot} in Team Number {ctx.team}, " \ + f"named {ctx.player_names[ctx.slot]}." if ctx.items_received: text += f"\nYou have received {len(ctx.items_received)} items. " \ f"You can list them in order with /received." @@ -106,7 +105,8 @@ class ServerLabel(HoverBehavior, Label): text += f"\n {permission_name}: {permission_data}" if ctx.hint_cost is not None: text += f"\nA new !hint costs {ctx.hint_cost}% of checks made. " \ - f"For you this means every {max(0, int(ctx.hint_cost * 0.01 * ctx.total_locations))} location checks." + f"For you this means every {max(0, int(ctx.hint_cost * 0.01 * ctx.total_locations))} " \ + "location checks." elif ctx.hint_cost == 0: text += "\n!hint is free to use." diff --git a/worlds/AutoWorld.py b/worlds/AutoWorld.py index 86478a66..6894d665 100644 --- a/worlds/AutoWorld.py +++ b/worlds/AutoWorld.py @@ -145,6 +145,7 @@ class World(metaclass=AutoWorldRegister): """Optional method that is supposed to be used for special fill stages. This is run *after* plando.""" pass + @classmethod def fill_hook(cls, progitempool: List[Item], nonexcludeditempool: List[Item], localrestitempool: Dict[int, List[Item]], nonlocalrestitempool: Dict[int, List[Item]], restitempool: List[Item], fill_locations: List[Location]):