DKC3: Long-overdue World code cleanup (#2820)

Co-authored-by: Silvris <58583688+Silvris@users.noreply.github.com>
This commit is contained in:
PoryGone
2024-02-27 22:53:13 -05:00
committed by GitHub
parent 59a6e4a1b5
commit 36cee91a2c
6 changed files with 287 additions and 280 deletions

View File

@@ -2,6 +2,7 @@ import typing
from BaseClasses import Location
from .Names import LocationName
from worlds.AutoWorld import World
class DKC3Location(Location):
@@ -321,13 +322,13 @@ all_locations = {
location_table = {}
def setup_locations(world, player: int):
def setup_locations(world: World):
location_table = {**level_location_table, **boss_location_table, **secret_cave_location_table}
if False:#world.include_trade_sequence[player].value:
if False:#world.options.include_trade_sequence:
location_table.update({**brothers_bear_location_table})
if world.kongsanity[player].value:
if world.options.kongsanity:
location_table.update({**kong_location_table})
return location_table