def SetCaveItem(self, item: Item, location: Location) -> None: assert location.IsCavePosition() self.overworld_caves[location.GetCaveNum()].SetItemAtPosition( item, location.GetPositionNum())
def SetCavePrice(self, price: int, location: Location) -> None: assert location.IsCavePosition() self.overworld_caves[location.GetCaveNum()].SetPriceAtPosition( price, location.GetPositionNum())
def GetCaveItem(self, location: Location) -> Item: assert location.IsCavePosition() return self.overworld_caves[location.GetCaveNum()].GetItemAtPosition( location.GetPositionNum())