From 7750b939f5e52c608bd8081a92e450419104852a Mon Sep 17 00:00:00 2001 From: Rensen3 Date: Tue, 16 Apr 2024 11:04:59 +0200 Subject: [PATCH] YGO06: fix imports --- worlds/yugioh06/Rom.py | 7 +++---- worlds/yugioh06/__init__.py | 2 -- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/worlds/yugioh06/Rom.py b/worlds/yugioh06/Rom.py index 7eec72162508..82d26b898914 100644 --- a/worlds/yugioh06/Rom.py +++ b/worlds/yugioh06/Rom.py @@ -2,14 +2,13 @@ import math import os import struct -from typing import List, Tuple import Utils -from worlds.Files import APDeltaPatch, APProcedurePatch, APTokenTypes, APTokenMixin +from worlds.Files import APProcedurePatch, APTokenTypes, APTokenMixin from settings import get_settings from .Items import item_to_index from .RomValues import structure_deck_selection, banlist_ids, function_addresses -from ..pokemon_emerald.util import encode_string +from ..AutoWorld import World MD5Europe = '020411d3b08f5639eb8cb878283f84bf' MD5America = 'b8a7c976b28172995fe9e465d654297a' @@ -31,7 +30,7 @@ def get_source_data(cls) -> bytes: return get_base_rom_bytes() -def write_tokens(world: "Yugioh06World", patch: YGO06ProcedurePatch): +def write_tokens(world: World, patch: YGO06ProcedurePatch): structure_deck = structure_deck_selection.get(world.options.structure_deck.value) # set structure deck patch.write_token( diff --git a/worlds/yugioh06/__init__.py b/worlds/yugioh06/__init__.py index 0814bbbb05c0..cf8617996da4 100644 --- a/worlds/yugioh06/__init__.py +++ b/worlds/yugioh06/__init__.py @@ -2,8 +2,6 @@ import pkgutil from typing import ClassVar, Dict, Any -import bsdiff4 -import math import settings import Utils