From 2582f0e523ac54fb4386522d7499911ec3f24adf Mon Sep 17 00:00:00 2001 From: Jennifer Taylor Date: Thu, 9 Sep 2021 01:05:19 +0000 Subject: [PATCH] Don't send empty item nodes for songs that are unlocked the right way if force song unlock is enabled in Eclale. --- bemani/backend/popn/eclale.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bemani/backend/popn/eclale.py b/bemani/backend/popn/eclale.py index 1111702..dae7be8 100644 --- a/bemani/backend/popn/eclale.py +++ b/bemani/backend/popn/eclale.py @@ -721,9 +721,6 @@ class PopnMusicEclale(PopnMusicBase): param = achievement.data.get_int('param') is_new = achievement.data.get_bool('is_new') - item = Node.void('item') - root.add_child(item) - # Type is the type of unlock/item. Type 0 is song unlock in Eclale. # In this case, the id is the song ID according to the game. Unclear # what the param is supposed to be, but i've seen 8 and 0. Might be @@ -732,6 +729,8 @@ class PopnMusicEclale(PopnMusicBase): # We already sent song unlocks in the force unlock section above. continue + item = Node.void('item') + root.add_child(item) item.add_child(Node.u8('type', itemtype)) item.add_child(Node.u16('id', achievement.id)) item.add_child(Node.u16('param', param))