LADX: use custom collect/remove to keep track of logical rupee counts instead of LogixMixin

May contain some pep8, sorry
This commit is contained in:
Fabian Dill
2023-05-29 01:17:30 +02:00
committed by Fabian Dill
parent 845502ad39
commit b04b105bd8
3 changed files with 45 additions and 30 deletions

View File

@@ -32,12 +32,16 @@ class DungeonItemData(ItemData):
s = self.ladxr_id[:-1]
return DungeonItemType.__dict__[s]
class TradeItemData(ItemData):
vanilla_location = None
def __new__(cls, item_name, ladxr_id, classification, vanilla_location):
self = super(ItemData, cls).__new__(cls, (item_name, ladxr_id, classification))
self.vanilla_location = vanilla_location
return self
class LinksAwakeningItem(Item):
game: str = Common.LINKS_AWAKENING
@@ -49,6 +53,7 @@ class LinksAwakeningItem(Item):
super().__init__(item_data.item_name, classification, Common.BASE_ID + item_data.item_id, player)
self.item_data = item_data
# TODO: use _NAMES instead?
class ItemName:
POWER_BRACELET = "Progressive Power Bracelet"