Links Awakening: Implement New Game (#1334)

Adds Link's Awakening: DX. Fully imports and forks LADXR, with permission - https://github.com/daid/LADXR
This commit is contained in:
zig-for
2023-03-21 01:26:03 +09:00
committed by GitHub
parent 67bf12369a
commit 81a239325d
180 changed files with 24191 additions and 2 deletions

View File

@@ -0,0 +1,43 @@
import typing
from ..checkMetadata import checkMetadataTable
from .constants import *
class ItemInfo:
MULTIWORLD = True
def __init__(self, room=None, extra=None):
self.item = None
self._location = None
self.room = room
self.extra = extra
self.metadata = checkMetadataTable.get(self.nameId, checkMetadataTable["None"])
self.forced_item = None
self.custom_item_name = None
self.event = None
@property
def location(self):
return self._location
def setLocation(self, location):
self._location = location
def getOptions(self):
return self.OPTIONS
def configure(self, options):
pass
def read(self, rom):
raise NotImplementedError()
def patch(self, rom, option, *, multiworld=None):
raise NotImplementedError()
def __repr__(self):
return self.__class__.__name__
@property
def nameId(self):
return "0x%03X" % self.room if self.room is not None else "None"