GITADORA Rivals

This commit is contained in:
drmext 2023-05-20 19:53:39 +00:00
parent c9c254e233
commit c26ad10d90
No known key found for this signature in database
GPG Key ID: F1ED48FFE79A6961
2 changed files with 20 additions and 3 deletions

View File

@ -91,6 +91,7 @@ async def gitadora_cardutil_regist(ver: str, request: Request):
"title": "MONKEY BUSINESS", "title": "MONKEY BUSINESS",
"charaid": 0, "charaid": 0,
"stickers": {}, "stickers": {},
"rival_card_ids": [],
} }
for game_type in ("drummania", "guitarfreaks"): for game_type in ("drummania", "guitarfreaks"):

View File

@ -139,15 +139,31 @@ async def gitadora_gametop_get(ver: str, request: Request):
E.kind(1, __type="s32"), E.kind(1, __type="s32"),
) )
), ),
E.chara_list(), E.chara_list(
E.title_parts(), E.chara(
E.charaid(1, __type="s32"),
)
),
E.title_parts(
E.parts("", __type="str"),
),
E.information( E.information(
E.info(profile[g]["information"], __type="u32"), E.info(profile[g]["information"], __type="u32"),
), ),
E.reward( E.reward(
E.status(profile[g]["reward"], __type="u32"), E.status(profile[g]["reward"], __type="u32"),
), ),
E.rivaldata(), E.rivaldata(
*[
E.rival(
E.did(1, __type="s32"),
E.name("", __type="str"),
E.active_index(r_idx, __type="s32"),
E.refid(r, __type="str"),
)
for r_idx, r in enumerate(profile.get("rival_card_ids", []), 1)
]
),
E.frienddata(E.friend()), E.frienddata(E.friend()),
E.thanks_medal( E.thanks_medal(
E.medal(profile[g]["thanks_medal_medal"], __type="s32"), E.medal(profile[g]["thanks_medal_medal"], __type="s32"),