DKC3: Remove unused variables and imports #4302
This commit is contained in:
parent
0f3818e711
commit
04928bd83d
|
@ -1,5 +1,4 @@
|
||||||
import logging
|
import logging
|
||||||
import asyncio
|
|
||||||
|
|
||||||
from NetUtils import ClientStatus, color
|
from NetUtils import ClientStatus, color
|
||||||
from worlds.AutoSNIClient import SNIClient
|
from worlds.AutoSNIClient import SNIClient
|
||||||
|
@ -32,7 +31,7 @@ class DKC3SNIClient(SNIClient):
|
||||||
|
|
||||||
|
|
||||||
async def validate_rom(self, ctx):
|
async def validate_rom(self, ctx):
|
||||||
from SNIClient import snes_buffered_write, snes_flush_writes, snes_read
|
from SNIClient import snes_read
|
||||||
|
|
||||||
rom_name = await snes_read(ctx, DKC3_ROMHASH_START, ROMHASH_SIZE)
|
rom_name = await snes_read(ctx, DKC3_ROMHASH_START, ROMHASH_SIZE)
|
||||||
if rom_name is None or rom_name == bytes([0] * ROMHASH_SIZE) or rom_name[:2] != b"D3":
|
if rom_name is None or rom_name == bytes([0] * ROMHASH_SIZE) or rom_name[:2] != b"D3":
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import typing
|
import typing
|
||||||
|
|
||||||
from BaseClasses import Item, ItemClassification
|
from BaseClasses import Item
|
||||||
from .Names import ItemName
|
from .Names import ItemName
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
import typing
|
|
||||||
|
|
||||||
from Options import Choice, Range, Toggle, DeathLink, DefaultOnToggle, OptionGroup, PerGameCommonOptions
|
from Options import Choice, Range, Toggle, DefaultOnToggle, OptionGroup, PerGameCommonOptions
|
||||||
|
|
||||||
|
|
||||||
class Goal(Choice):
|
class Goal(Choice):
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
import typing
|
import typing
|
||||||
|
|
||||||
from BaseClasses import MultiWorld, Region, Entrance
|
from BaseClasses import Region, Entrance
|
||||||
from .Items import DKC3Item
|
from worlds.AutoWorld import World
|
||||||
from .Locations import DKC3Location
|
from .Locations import DKC3Location
|
||||||
from .Names import LocationName, ItemName
|
from .Names import LocationName, ItemName
|
||||||
from worlds.AutoWorld import World
|
|
||||||
|
|
||||||
|
|
||||||
def create_regions(world: World, active_locations):
|
def create_regions(world: World, active_locations):
|
||||||
|
|
|
@ -2,7 +2,6 @@ import Utils
|
||||||
from Utils import read_snes_rom
|
from Utils import read_snes_rom
|
||||||
from worlds.AutoWorld import World
|
from worlds.AutoWorld import World
|
||||||
from worlds.Files import APDeltaPatch
|
from worlds.Files import APDeltaPatch
|
||||||
from .Locations import lookup_id_to_name, all_locations
|
|
||||||
from .Levels import level_list, level_dict
|
from .Levels import level_list, level_dict
|
||||||
|
|
||||||
USHASH = '120abf304f0c40fe059f6a192ed4f947'
|
USHASH = '120abf304f0c40fe059f6a192ed4f947'
|
||||||
|
@ -436,7 +435,7 @@ level_music_ids = [
|
||||||
|
|
||||||
class LocalRom:
|
class LocalRom:
|
||||||
|
|
||||||
def __init__(self, file, patch=True, vanillaRom=None, name=None, hash=None):
|
def __init__(self, file, name=None, hash=None):
|
||||||
self.name = name
|
self.name = name
|
||||||
self.hash = hash
|
self.hash = hash
|
||||||
self.orig_buffer = None
|
self.orig_buffer = None
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import math
|
import math
|
||||||
|
|
||||||
|
from worlds.AutoWorld import World
|
||||||
|
from worlds.generic.Rules import add_rule
|
||||||
from .Names import LocationName, ItemName
|
from .Names import LocationName, ItemName
|
||||||
from worlds.AutoWorld import LogicMixin, World
|
|
||||||
from worlds.generic.Rules import add_rule, set_rule
|
|
||||||
|
|
||||||
|
|
||||||
def set_rules(world: World):
|
def set_rules(world: World):
|
||||||
|
|
|
@ -1,15 +1,13 @@
|
||||||
import dataclasses
|
import dataclasses
|
||||||
import os
|
|
||||||
import typing
|
|
||||||
import math
|
import math
|
||||||
|
import os
|
||||||
import threading
|
import threading
|
||||||
|
import typing
|
||||||
|
|
||||||
|
import settings
|
||||||
from BaseClasses import Item, MultiWorld, Tutorial, ItemClassification
|
from BaseClasses import Item, MultiWorld, Tutorial, ItemClassification
|
||||||
from Options import PerGameCommonOptions
|
from Options import PerGameCommonOptions
|
||||||
import Patch
|
|
||||||
import settings
|
|
||||||
from worlds.AutoWorld import WebWorld, World
|
from worlds.AutoWorld import WebWorld, World
|
||||||
|
|
||||||
from .Client import DKC3SNIClient
|
from .Client import DKC3SNIClient
|
||||||
from .Items import DKC3Item, ItemData, item_table, inventory_table, junk_table
|
from .Items import DKC3Item, ItemData, item_table, inventory_table, junk_table
|
||||||
from .Levels import level_list
|
from .Levels import level_list
|
||||||
|
|
Loading…
Reference in New Issue