From 24be2041f2258e759e11664b0478dfe0080fb578 Mon Sep 17 00:00:00 2001 From: Jennifer Taylor Date: Tue, 2 Jan 2024 02:16:37 +0000 Subject: [PATCH] Add some additional possible unlocks for Tricoro songs in Spada. --- bemani/backend/iidx/spada.py | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/bemani/backend/iidx/spada.py b/bemani/backend/iidx/spada.py index 3ee6877..b4e4e9e 100644 --- a/bemani/backend/iidx/spada.py +++ b/bemani/backend/iidx/spada.py @@ -894,6 +894,9 @@ class IIDXSpada(IIDXBase): boss_phase = 1 if game_config.get_int("event_phase") > 0 else 0 boss1_phase = 1 if game_config.get_int("event_phase") == 2 else 0 + # TODO: There's some stuff in profile about boss1_phase4, so it's possible the above + # are wrong, and we also need to update the profile as well. + boss = Node.void("boss") root.add_child(boss) boss.set_attribute("phase", str(boss_phase)) @@ -1545,7 +1548,7 @@ class IIDXSpada(IIDXBase): ]: link5.set_attribute(attr, str(link5_dict.get_int(attr))) - # Boss1 data + # Qprogue event data if "boss1" in profile: # Don't provide boss1 if we haven't saved it, so the game can # initialize it properly. @@ -1600,6 +1603,25 @@ class IIDXSpada(IIDXBase): Node.binary("durability", boss1_dict.get_bytes("durability")) ) + # Events copied from Tricoro, but might still allow unlocks in this version? + gakuen = Node.void("gakuen") + root.add_child(gakuen) + gakuen.set_attribute("music_list", str(-1)) + + cafe = Node.void("cafe") + root.add_child(cafe) + cafe.set_attribute("food", str(0)) + cafe.set_attribute("pastry", str(0)) + cafe.set_attribute("rainbow", str(1)) + cafe.set_attribute("bastie", str(1)) + cafe.set_attribute("astraia", str(1)) + cafe.set_attribute("beachimp", str(1)) + cafe.set_attribute("holysnow", str(1)) + cafe.set_attribute("trueblue", str(1)) + cafe.set_attribute("ledvsscu", str(1)) + cafe.set_attribute("service", str(1)) + cafe.set_attribute("is_first", str(0)) + # Ea app features if self.data.triggers.has_broadcast_destination(self.game): root.add_child(Node.void("bind_eaappli"))