Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
tioui authored Jun 27, 2024
2 parents fef7a14 + e07a266 commit e2fc260
Show file tree
Hide file tree
Showing 41 changed files with 96 additions and 88 deletions.
40 changes: 20 additions & 20 deletions WebHostLib/tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1366,28 +1366,28 @@ def render_Starcraft2_tracker(tracker_data: TrackerData, team: int, player: int)
organics_icon_base_url = "https://0rganics.org/archipelago/sc2wol/"

icons = {
"Starting Minerals": "https://sclegacy.com/images/uploaded/starcraftii_beta/gamefiles/icons/icon-mineral-protoss.png",
"Starting Vespene": "https://sclegacy.com/images/uploaded/starcraftii_beta/gamefiles/icons/icon-gas-terran.png",
"Starting Minerals": github_icon_base_url + "blizzard/icon-mineral-nobg.png",
"Starting Vespene": github_icon_base_url + "blizzard/icon-gas-terran-nobg.png",
"Starting Supply": github_icon_base_url + "blizzard/icon-supply-terran_nobg.png",

"Terran Infantry Weapons Level 1": "https://sclegacy.com/images/uploaded/starcraftii_beta/gamefiles/upgrades/btn-upgrade-terran-infantryweaponslevel1.png",
"Terran Infantry Weapons Level 2": "https://sclegacy.com/images/uploaded/starcraftii_beta/gamefiles/upgrades/btn-upgrade-terran-infantryweaponslevel2.png",
"Terran Infantry Weapons Level 3": "https://sclegacy.com/images/uploaded/starcraftii_beta/gamefiles/upgrades/btn-upgrade-terran-infantryweaponslevel3.png",
"Terran Infantry Armor Level 1": "https://sclegacy.com/images/uploaded/starcraftii_beta/gamefiles/upgrades/btn-upgrade-terran-infantryarmorlevel1.png",
"Terran Infantry Armor Level 2": "https://sclegacy.com/images/uploaded/starcraftii_beta/gamefiles/upgrades/btn-upgrade-terran-infantryarmorlevel2.png",
"Terran Infantry Armor Level 3": "https://sclegacy.com/images/uploaded/starcraftii_beta/gamefiles/upgrades/btn-upgrade-terran-infantryarmorlevel3.png",
"Terran Vehicle Weapons Level 1": "https://sclegacy.com/images/uploaded/starcraftii_beta/gamefiles/upgrades/btn-upgrade-terran-vehicleweaponslevel1.png",
"Terran Vehicle Weapons Level 2": "https://sclegacy.com/images/uploaded/starcraftii_beta/gamefiles/upgrades/btn-upgrade-terran-vehicleweaponslevel2.png",
"Terran Vehicle Weapons Level 3": "https://sclegacy.com/images/uploaded/starcraftii_beta/gamefiles/upgrades/btn-upgrade-terran-vehicleweaponslevel3.png",
"Terran Vehicle Armor Level 1": "https://sclegacy.com/images/uploaded/starcraftii_beta/gamefiles/upgrades/btn-upgrade-terran-vehicleplatinglevel1.png",
"Terran Vehicle Armor Level 2": "https://sclegacy.com/images/uploaded/starcraftii_beta/gamefiles/upgrades/btn-upgrade-terran-vehicleplatinglevel2.png",
"Terran Vehicle Armor Level 3": "https://sclegacy.com/images/uploaded/starcraftii_beta/gamefiles/upgrades/btn-upgrade-terran-vehicleplatinglevel3.png",
"Terran Ship Weapons Level 1": "https://sclegacy.com/images/uploaded/starcraftii_beta/gamefiles/upgrades/btn-upgrade-terran-shipweaponslevel1.png",
"Terran Ship Weapons Level 2": "https://sclegacy.com/images/uploaded/starcraftii_beta/gamefiles/upgrades/btn-upgrade-terran-shipweaponslevel2.png",
"Terran Ship Weapons Level 3": "https://sclegacy.com/images/uploaded/starcraftii_beta/gamefiles/upgrades/btn-upgrade-terran-shipweaponslevel3.png",
"Terran Ship Armor Level 1": "https://sclegacy.com/images/uploaded/starcraftii_beta/gamefiles/upgrades/btn-upgrade-terran-shipplatinglevel1.png",
"Terran Ship Armor Level 2": "https://sclegacy.com/images/uploaded/starcraftii_beta/gamefiles/upgrades/btn-upgrade-terran-shipplatinglevel2.png",
"Terran Ship Armor Level 3": "https://sclegacy.com/images/uploaded/starcraftii_beta/gamefiles/upgrades/btn-upgrade-terran-shipplatinglevel3.png",
"Terran Infantry Weapons Level 1": github_icon_base_url + "blizzard/btn-upgrade-terran-infantryweaponslevel1.png",
"Terran Infantry Weapons Level 2": github_icon_base_url + "blizzard/btn-upgrade-terran-infantryweaponslevel2.png",
"Terran Infantry Weapons Level 3": github_icon_base_url + "blizzard/btn-upgrade-terran-infantryweaponslevel3.png",
"Terran Infantry Armor Level 1": github_icon_base_url + "blizzard/btn-upgrade-terran-infantryarmorlevel1.png",
"Terran Infantry Armor Level 2": github_icon_base_url + "blizzard/btn-upgrade-terran-infantryarmorlevel2.png",
"Terran Infantry Armor Level 3": github_icon_base_url + "blizzard/btn-upgrade-terran-infantryarmorlevel3.png",
"Terran Vehicle Weapons Level 1": github_icon_base_url + "blizzard/btn-upgrade-terran-vehicleweaponslevel1.png",
"Terran Vehicle Weapons Level 2": github_icon_base_url + "blizzard/btn-upgrade-terran-vehicleweaponslevel2.png",
"Terran Vehicle Weapons Level 3": github_icon_base_url + "blizzard/btn-upgrade-terran-vehicleweaponslevel3.png",
"Terran Vehicle Armor Level 1": github_icon_base_url + "blizzard/btn-upgrade-terran-vehicleplatinglevel1.png",
"Terran Vehicle Armor Level 2": github_icon_base_url + "blizzard/btn-upgrade-terran-vehicleplatinglevel2.png",
"Terran Vehicle Armor Level 3": github_icon_base_url + "blizzard/btn-upgrade-terran-vehicleplatinglevel3.png",
"Terran Ship Weapons Level 1": github_icon_base_url + "blizzard/btn-upgrade-terran-shipweaponslevel1.png",
"Terran Ship Weapons Level 2": github_icon_base_url + "blizzard/btn-upgrade-terran-shipweaponslevel2.png",
"Terran Ship Weapons Level 3": github_icon_base_url + "blizzard/btn-upgrade-terran-shipweaponslevel3.png",
"Terran Ship Armor Level 1": github_icon_base_url + "blizzard/btn-upgrade-terran-shipplatinglevel1.png",
"Terran Ship Armor Level 2": github_icon_base_url + "blizzard/btn-upgrade-terran-shipplatinglevel2.png",
"Terran Ship Armor Level 3": github_icon_base_url + "blizzard/btn-upgrade-terran-shipplatinglevel3.png",

"Bunker": "https://static.wikia.nocookie.net/starcraft/images/c/c5/Bunker_SC2_Icon1.jpg",
"Missile Turret": "https://static.wikia.nocookie.net/starcraft/images/5/5f/MissileTurret_SC2_Icon1.jpg",
Expand Down
2 changes: 1 addition & 1 deletion inno_setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ Root: HKCR; Subkey: "{#MyAppName}multidata\shell\open\command"; ValueData: """{
Root: HKCR; Subkey: ".apworld"; ValueData: "{#MyAppName}worlddata"; Flags: uninsdeletevalue; ValueType: string; ValueName: "";
Root: HKCR; Subkey: "{#MyAppName}worlddata"; ValueData: "Archipelago World Data"; Flags: uninsdeletekey; ValueType: string; ValueName: "";
Root: HKCR; Subkey: "{#MyAppName}worlddata\DefaultIcon"; ValueData: "{app}\ArchipelagoLauncher.exe,0"; ValueType: string; ValueName: "";
Root: HKCR; Subkey: "{#MyAppName}worlddata\shell\open\command"; ValueData: """{app}\ArchipelagoLauncher.exe"" ""%1""";
Root: HKCR; Subkey: "{#MyAppName}worlddata\shell\open\command"; ValueData: """{app}\ArchipelagoLauncher.exe"" ""%1"""; ValueType: string; ValueName: "";

Root: HKCR; Subkey: "archipelago"; ValueType: "string"; ValueData: "Archipegalo Protocol"; Flags: uninsdeletekey;
Root: HKCR; Subkey: "archipelago"; ValueType: "string"; ValueName: "URL Protocol"; ValueData: "";
Expand Down
4 changes: 1 addition & 3 deletions worlds/adventure/Rules.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from worlds.adventure import location_table
from worlds.adventure.Options import BatLogic, DifficultySwitchB, DifficultySwitchA
from .Options import BatLogic, DifficultySwitchB
from worlds.generic.Rules import add_rule, set_rule, forbid_item
from BaseClasses import LocationProgressType


def set_rules(self) -> None:
Expand Down
2 changes: 1 addition & 1 deletion worlds/alttp/Client.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ def onButtonClick(answer: str = 'no'):

if 'yes' in choice:
import LttPAdjuster
from worlds.alttp.Rom import get_base_rom_path
from .Rom import get_base_rom_path
last_settings.rom = romfile
last_settings.baserom = get_base_rom_path()
last_settings.world = None
Expand Down
2 changes: 1 addition & 1 deletion worlds/alttp/EntranceShuffle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,7 @@ def connect_mandatory_exits(world, entrances, caves, must_be_exits, player):
invalid_cave_connections = defaultdict(set)

if world.glitches_required[player] in ['overworld_glitches', 'hybrid_major_glitches', 'no_logic']:
from worlds.alttp import OverworldGlitchRules
from . import OverworldGlitchRules
for entrance in OverworldGlitchRules.get_non_mandatory_exits(world.mode[player] == 'inverted'):
invalid_connections[entrance] = set()
if entrance in must_be_exits:
Expand Down
2 changes: 1 addition & 1 deletion worlds/alttp/Options.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ class LTTPBosses(PlandoBosses):

@classmethod
def can_place_boss(cls, boss: str, location: str) -> bool:
from worlds.alttp.Bosses import can_place_boss
from .Bosses import can_place_boss
level = ''
words = location.split(" ")
if words[-1] in ("top", "middle", "bottom"):
Expand Down
4 changes: 2 additions & 2 deletions worlds/alttp/Regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def create_dungeon_region(world: MultiWorld, player: int, name: str, hint: str,

def _create_region(world: MultiWorld, player: int, name: str, type: LTTPRegionType, hint: str, locations=None,
exits=None):
from worlds.alttp.SubClasses import ALttPLocation
from .SubClasses import ALttPLocation
ret = LTTPRegion(name, type, hint, player, world)
if exits:
for exit in exits:
Expand Down Expand Up @@ -760,7 +760,7 @@ def mark_light_world_regions(world, player: int):
'Turtle Rock - Prize': (
[0x120A7, 0x53F24, 0x53F25, 0x18005C, 0x180079, 0xC708], None, True, 'Turtle Rock')}

from worlds.alttp.Shops import shop_table_by_location_id, shop_table_by_location
from .Shops import shop_table_by_location_id, shop_table_by_location
lookup_id_to_name = {data[0]: name for name, data in location_table.items() if type(data[0]) == int}
lookup_id_to_name = {**lookup_id_to_name, **{data[1]: name for name, data in key_drop_data.items()}}
lookup_id_to_name.update(shop_table_by_location_id)
Expand Down
6 changes: 2 additions & 4 deletions worlds/alttp/Rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,16 +405,14 @@ def global_rules(multiworld: MultiWorld, player: int):
set_rule(multiworld.get_location('Swamp Palace - Waterway Pot Key', player), lambda state: can_use_bombs(state, player))

set_rule(multiworld.get_entrance('Thieves Town Big Key Door', player), lambda state: state.has('Big Key (Thieves Town)', player))

if multiworld.worlds[player].dungeons["Thieves Town"].boss.enemizer_name == "Blind":
set_rule(multiworld.get_entrance('Blind Fight', player), lambda state: state._lttp_has_key('Small Key (Thieves Town)', player, 3) and can_use_bombs(state, player))

set_rule(multiworld.get_location('Thieves\' Town - Big Chest', player),
lambda state: ((state._lttp_has_key('Small Key (Thieves Town)', player, 3)) or (location_item_name(state, 'Thieves\' Town - Big Chest', player) == ("Small Key (Thieves Town)", player)) and state._lttp_has_key('Small Key (Thieves Town)', player, 2)) and state.has('Hammer', player))

set_rule(multiworld.get_location('Thieves\' Town - Blind\'s Cell', player),
lambda state: state._lttp_has_key('Small Key (Thieves Town)', player))
if multiworld.accessibility[player] != 'locations' and not multiworld.key_drop_shuffle[player]:
set_always_allow(multiworld.get_location('Thieves\' Town - Big Chest', player), lambda state, item: item.name == 'Small Key (Thieves Town)' and item.player == player)

set_rule(multiworld.get_location('Thieves\' Town - Attic', player), lambda state: state._lttp_has_key('Small Key (Thieves Town)', player, 3))
set_rule(multiworld.get_location('Thieves\' Town - Spike Switch Pot Key', player),
lambda state: state._lttp_has_key('Small Key (Thieves Town)', player))
Expand Down
3 changes: 2 additions & 1 deletion worlds/alttp/test/dungeons/TestThievesTown.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def testThievesTown(self):

["Thieves' Town - Blind's Cell", False, []],
["Thieves' Town - Blind's Cell", False, [], ['Big Key (Thieves Town)']],
["Thieves' Town - Blind's Cell", True, ['Big Key (Thieves Town)']],
["Thieves' Town - Blind's Cell", False, [], ['Small Key (Thieves Town)']],
["Thieves' Town - Blind's Cell", True, ['Big Key (Thieves Town)', 'Small Key (Thieves Town)']],

["Thieves' Town - Boss", False, []],
["Thieves' Town - Boss", False, [], ['Big Key (Thieves Town)']],
Expand Down
2 changes: 1 addition & 1 deletion worlds/aquaria/test/test_beast_form_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Description: Unit test used to test accessibility of locations with and without the beast form
"""

from worlds.aquaria.test import AquariaTestBase
from . import AquariaTestBase


class BeastFormAccessTest(AquariaTestBase):
Expand Down
2 changes: 1 addition & 1 deletion worlds/aquaria/test/test_bind_song_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
under rock needing bind song option)
"""

from worlds.aquaria.test import AquariaTestBase, after_home_water_locations
from . import AquariaTestBase, after_home_water_locations


class BindSongAccessTest(AquariaTestBase):
Expand Down
4 changes: 2 additions & 2 deletions worlds/aquaria/test/test_bind_song_option_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
under rock needing bind song option)
"""

from worlds.aquaria.test import AquariaTestBase
from worlds.aquaria.test.test_bind_song_access import after_home_water_locations
from . import AquariaTestBase
from .test_bind_song_access import after_home_water_locations


class BindSongOptionAccessTest(AquariaTestBase):
Expand Down
2 changes: 1 addition & 1 deletion worlds/aquaria/test/test_confined_home_water.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Description: Unit test used to test accessibility of region with the home water confine via option
"""

from worlds.aquaria.test import AquariaTestBase
from . import AquariaTestBase


class ConfinedHomeWaterAccessTest(AquariaTestBase):
Expand Down
2 changes: 1 addition & 1 deletion worlds/aquaria/test/test_dual_song_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Description: Unit test used to test accessibility of locations with and without the dual song
"""

from worlds.aquaria.test import AquariaTestBase
from . import AquariaTestBase


class LiAccessTest(AquariaTestBase):
Expand Down
2 changes: 1 addition & 1 deletion worlds/aquaria/test/test_energy_form_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
energy form option)
"""

from worlds.aquaria.test import AquariaTestBase
from . import AquariaTestBase


class EnergyFormAccessTest(AquariaTestBase):
Expand Down
2 changes: 1 addition & 1 deletion worlds/aquaria/test/test_fish_form_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Description: Unit test used to test accessibility of locations with and without the fish form
"""

from worlds.aquaria.test import AquariaTestBase
from . import AquariaTestBase


class FishFormAccessTest(AquariaTestBase):
Expand Down
2 changes: 1 addition & 1 deletion worlds/aquaria/test/test_li_song_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Description: Unit test used to test accessibility of locations with and without Li
"""

from worlds.aquaria.test import AquariaTestBase
from . import AquariaTestBase


class LiAccessTest(AquariaTestBase):
Expand Down
2 changes: 1 addition & 1 deletion worlds/aquaria/test/test_light_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Description: Unit test used to test accessibility of locations with and without a light (Dumbo pet or sun form)
"""

from worlds.aquaria.test import AquariaTestBase
from . import AquariaTestBase


class LightAccessTest(AquariaTestBase):
Expand Down
2 changes: 1 addition & 1 deletion worlds/aquaria/test/test_nature_form_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Description: Unit test used to test accessibility of locations with and without the nature form
"""

from worlds.aquaria.test import AquariaTestBase
from . import AquariaTestBase


class NatureFormAccessTest(AquariaTestBase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Description: Unit test used to test that no progression items can be put in hard or hidden locations when option enabled
"""

from worlds.aquaria.test import AquariaTestBase
from . import AquariaTestBase
from BaseClasses import ItemClassification


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
Description: Unit test used to test that progression items can be put in hard or hidden locations when option disabled
"""

from worlds.aquaria.test import AquariaTestBase
from BaseClasses import ItemClassification
from . import AquariaTestBase


class UNoProgressionHardHiddenTest(AquariaTestBase):
Expand Down
2 changes: 1 addition & 1 deletion worlds/aquaria/test/test_spirit_form_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Description: Unit test used to test accessibility of locations with and without the spirit form
"""

from worlds.aquaria.test import AquariaTestBase
from . import AquariaTestBase


class SpiritFormAccessTest(AquariaTestBase):
Expand Down
2 changes: 1 addition & 1 deletion worlds/aquaria/test/test_sun_form_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Description: Unit test used to test accessibility of locations with and without the sun form
"""

from worlds.aquaria.test import AquariaTestBase
from . import AquariaTestBase


class SunFormAccessTest(AquariaTestBase):
Expand Down
2 changes: 1 addition & 1 deletion worlds/aquaria/test/test_unconfine_home_water_via_both.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
turtle and energy door
"""

from worlds.aquaria.test import AquariaTestBase
from . import AquariaTestBase


class UnconfineHomeWaterBothAccessTest(AquariaTestBase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Description: Unit test used to test accessibility of region with the unconfined home water option via the energy door
"""

from worlds.aquaria.test import AquariaTestBase
from . import AquariaTestBase


class UnconfineHomeWaterEnergyDoorAccessTest(AquariaTestBase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Description: Unit test used to test accessibility of region with the unconfined home water option via transturtle
"""

from worlds.aquaria.test import AquariaTestBase
from . import AquariaTestBase


class UnconfineHomeWaterTransturtleAccessTest(AquariaTestBase):
Expand Down
2 changes: 1 addition & 1 deletion worlds/dkc3/Client.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async def game_watcher(self, ctx):
return

new_checks = []
from worlds.dkc3.Rom import location_rom_data, item_rom_data, boss_location_ids, level_unlock_map
from .Rom import location_rom_data, item_rom_data, boss_location_ids, level_unlock_map
location_ram_data = await snes_read(ctx, WRAM_START + 0x5FE, 0x81)
for loc_id, loc_data in location_rom_data.items():
if loc_id not in ctx.locations_checked:
Expand Down
2 changes: 1 addition & 1 deletion worlds/ladx/Tracker.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from worlds.ladx.LADXR.checkMetadata import checkMetadataTable
from .LADXR.checkMetadata import checkMetadataTable
import json
import logging
import websockets
Expand Down
9 changes: 5 additions & 4 deletions worlds/overcooked2/test/TestOvercooked2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
from worlds.AutoWorld import AutoWorldRegister
from test.general import setup_solo_multiworld

from worlds.overcooked2.Items import *
from worlds.overcooked2.Overcooked2Levels import Overcooked2Dlc, Overcooked2Level, OverworldRegion, overworld_region_by_level, level_id_to_shortname
from worlds.overcooked2.Logic import level_logic, overworld_region_logic, level_shuffle_factory
from worlds.overcooked2.Locations import oc2_location_name_to_id
from ..Items import *
from ..Overcooked2Levels import (Overcooked2Dlc, Overcooked2Level, OverworldRegion, overworld_region_by_level,
level_id_to_shortname)
from ..Logic import level_logic, overworld_region_logic, level_shuffle_factory
from ..Locations import oc2_location_name_to_id


class Overcooked2Test(unittest.TestCase):
Expand Down
4 changes: 2 additions & 2 deletions worlds/rogue_legacy/test/TestUnique.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from typing import Dict

from . import RLTestBase
from worlds.rogue_legacy.Items import RLItemData, item_table
from worlds.rogue_legacy.Locations import RLLocationData, location_table
from ..Items import item_table
from ..Locations import location_table


class UniqueTest(RLTestBase):
Expand Down
Loading

0 comments on commit e2fc260

Please sign in to comment.