Archipelago/worlds/smz3/TotalSMZ3/Regions/Zelda/CastleTower.py

26 lines
990 B
Python
Raw Normal View History

2023-04-08 20:52:34 +00:00
from ...Region import Z3Region, RewardType, IReward
from ...Config import Config
from ...Location import Location, LocationType
from ...Item import Progression, ItemType
2022-03-15 12:55:57 +00:00
class CastleTower(Z3Region, IReward):
Name = "Castle Tower"
Area = "Castle Tower"
def __init__(self, world, config: Config):
super().__init__(world, config)
self.Reward = RewardType.Agahnim
self.RegionItems = [ItemType.KeyCT]
self.Locations = [
Location(self, 256+101, 0x1EAB5, LocationType.Regular, "Castle Tower - Foyer"),
Location(self, 256+102, 0x1EAB2, LocationType.Regular, "Castle Tower - Dark Maze",
lambda items: items.Lamp and items.KeyCT >= 1)
]
def CanEnter(self, items: Progression):
return items.CanKillManyEnemies() and (items.Cape or items.MasterSword)
def CanComplete(self, items: Progression):
return self.CanEnter(items) and items.Lamp and items.KeyCT >= 2 and items.Sword