mirror of
https://github.com/DragonMinded/bemaniutils.git
synced 2026-09-08 18:35:14 -05:00
iidx: update api to support qpros in catalog
This commit is contained in:
@@ -38,6 +38,17 @@ class GlobalGameData(BaseGlobalData):
|
||||
},
|
||||
)
|
||||
|
||||
def __translate_iidx_qpros(self, entry: Dict[str, Any]) -> Item:
|
||||
return Item(
|
||||
f'qp_{entry["type"]}',
|
||||
int(entry["id"]),
|
||||
{
|
||||
"identifier": entry["identifier"],
|
||||
"name": entry["name"],
|
||||
"type": entry["type"],
|
||||
}
|
||||
)
|
||||
|
||||
def get_items(self, game: str, version: int) -> List[Item]:
|
||||
"""
|
||||
Given a game/userid, find all items in the catalog.
|
||||
@@ -68,6 +79,10 @@ class GlobalGameData(BaseGlobalData):
|
||||
translation = {
|
||||
"emblems": self.__translate_jubeat_emblems,
|
||||
}.get(catalogtype, None)
|
||||
elif game == GameConstants.IIDX:
|
||||
translation = {
|
||||
"qpros": self.__translate_iidx_qpros,
|
||||
}.get(catalogtype, None)
|
||||
else:
|
||||
translation = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user