Adventure: Optimize imports (#4300)
This commit is contained in:
parent
3f935aac13
commit
172ad4e57d
|
@ -1,9 +1,8 @@
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import Dict
|
|
||||||
|
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from Options import Choice, Option, DefaultOnToggle, DeathLink, Range, Toggle, PerGameCommonOptions
|
|
||||||
|
from Options import Choice, DefaultOnToggle, DeathLink, Range, Toggle, PerGameCommonOptions
|
||||||
|
|
||||||
|
|
||||||
class FreeincarnateMax(Range):
|
class FreeincarnateMax(Range):
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from BaseClasses import MultiWorld, Region, Entrance, LocationProgressType
|
from BaseClasses import MultiWorld, Region, Entrance, LocationProgressType
|
||||||
from Options import PerGameCommonOptions
|
from Options import PerGameCommonOptions
|
||||||
from .Locations import location_table, LocationData, AdventureLocation, dragon_room_to_region
|
from .Locations import location_table, AdventureLocation, dragon_room_to_region
|
||||||
|
|
||||||
|
|
||||||
def connect(world: MultiWorld, player: int, source: str, target: str, rule: callable = lambda state: True,
|
def connect(world: MultiWorld, player: int, source: str, target: str, rule: callable = lambda state: True,
|
||||||
|
|
|
@ -2,15 +2,15 @@ import hashlib
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import zipfile
|
import zipfile
|
||||||
from typing import Optional, Any
|
from typing import Any
|
||||||
|
|
||||||
import Utils
|
|
||||||
from .Locations import AdventureLocation, LocationData
|
|
||||||
from settings import get_settings
|
|
||||||
from worlds.Files import APPatch, AutoPatchRegister
|
|
||||||
|
|
||||||
import bsdiff4
|
import bsdiff4
|
||||||
|
|
||||||
|
import Utils
|
||||||
|
from settings import get_settings
|
||||||
|
from worlds.Files import APPatch, AutoPatchRegister
|
||||||
|
from .Locations import LocationData
|
||||||
|
|
||||||
ADVENTUREHASH: str = "157bddb7192754a45372be196797f284"
|
ADVENTUREHASH: str = "157bddb7192754a45372be196797f284"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,35 +1,24 @@
|
||||||
import base64
|
|
||||||
import copy
|
import copy
|
||||||
import itertools
|
|
||||||
import math
|
import math
|
||||||
import os
|
import os
|
||||||
import settings
|
|
||||||
import typing
|
import typing
|
||||||
from enum import IntFlag
|
from typing import ClassVar, Dict, Optional, Tuple
|
||||||
from typing import Any, ClassVar, Dict, List, Optional, Set, Tuple
|
|
||||||
|
|
||||||
from BaseClasses import Entrance, Item, ItemClassification, MultiWorld, Region, Tutorial, \
|
import settings
|
||||||
LocationProgressType
|
from BaseClasses import Item, ItemClassification, MultiWorld, Tutorial, LocationProgressType
|
||||||
from Utils import __version__
|
from Utils import __version__
|
||||||
from Options import AssembleOptions
|
|
||||||
from worlds.AutoWorld import WebWorld, World
|
from worlds.AutoWorld import WebWorld, World
|
||||||
from Fill import fill_restrictive
|
from worlds.LauncherComponents import Component, components, SuffixIdentifier
|
||||||
from worlds.generic.Rules import add_rule, set_rule
|
|
||||||
from .Options import DragonRandoType, DifficultySwitchA, DifficultySwitchB, \
|
|
||||||
AdventureOptions
|
|
||||||
from .Rom import get_base_rom_bytes, get_base_rom_path, AdventureDeltaPatch, apply_basepatch, \
|
|
||||||
AdventureAutoCollectLocation
|
|
||||||
from .Items import item_table, ItemData, nothing_item_id, event_table, AdventureItem, standard_item_max
|
from .Items import item_table, ItemData, nothing_item_id, event_table, AdventureItem, standard_item_max
|
||||||
from .Locations import location_table, base_location_id, LocationData, get_random_room_in_regions
|
from .Locations import location_table, base_location_id, LocationData, get_random_room_in_regions
|
||||||
from .Offsets import static_item_data_location, items_ram_start, static_item_element_size, item_position_table, \
|
from .Offsets import static_item_data_location, items_ram_start, static_item_element_size, item_position_table, \
|
||||||
static_first_dragon_index, connector_port_offset, yorgle_speed_data_location, grundle_speed_data_location, \
|
static_first_dragon_index, connector_port_offset, yorgle_speed_data_location, grundle_speed_data_location, \
|
||||||
rhindle_speed_data_location, item_ram_addresses, start_castle_values, start_castle_offset
|
rhindle_speed_data_location, item_ram_addresses, start_castle_values, start_castle_offset
|
||||||
|
from .Options import DragonRandoType, DifficultySwitchA, DifficultySwitchB, AdventureOptions
|
||||||
from .Regions import create_regions
|
from .Regions import create_regions
|
||||||
|
from .Rom import get_base_rom_bytes, get_base_rom_path, AdventureDeltaPatch, apply_basepatch, AdventureAutoCollectLocation
|
||||||
from .Rules import set_rules
|
from .Rules import set_rules
|
||||||
|
|
||||||
|
|
||||||
from worlds.LauncherComponents import Component, components, SuffixIdentifier
|
|
||||||
|
|
||||||
# Adventure
|
# Adventure
|
||||||
components.append(Component('Adventure Client', 'AdventureClient', file_identifier=SuffixIdentifier('.apadvn')))
|
components.append(Component('Adventure Client', 'AdventureClient', file_identifier=SuffixIdentifier('.apadvn')))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue