Skip to content

Commit

Permalink
use ut context as base tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouramie committed Dec 15, 2024
1 parent ca894ab commit 485d254
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions worlds/stardew_valley/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from .stardew_rule.rule_explain import explain, ExplainMode, RuleExplanation

try:
from worlds.tracker.TrackerClient import TrackerGameContext as BaseContext, TrackerCommandProcessor as ClientCommandProcessor # noqa
from worlds.tracker.TrackerClient import TrackerGameContext, TrackerCommandProcessor as ClientCommandProcessor # noqa

tracker_loaded = True
except ImportError:
Expand All @@ -32,7 +32,7 @@ def load_kv(self):
...


class BaseContext(CommonContext, TrackerGameContextMixin):
class TrackerGameContext(CommonContext, TrackerGameContextMixin):
pass


Expand Down Expand Up @@ -110,7 +110,7 @@ def _cmd_more(self, index: str = ""):
del _cmd_explain_missing


class StardewClientContext(BaseContext):
class StardewClientContext(TrackerGameContext):
game = "Stardew Valley"
command_processor = StardewCommandProcessor
logic: StardewLogic | None = None
Expand Down Expand Up @@ -180,7 +180,7 @@ async def main():


# Don't mind me I just copy-pasted that from UT because it was too complicated to access their updated state.
def get_updated_state(ctx: StardewClientContext) -> CollectionState:
def get_updated_state(ctx: TrackerGameContext) -> CollectionState:
if ctx.player_id is None or ctx.multiworld is None:
logger.error("Player YAML not installed or Generator failed")
ctx.log_to_tab("Check Player YAMLs for error", False)
Expand Down

0 comments on commit 485d254

Please sign in to comment.