1
0
mirror of synced 2024-11-12 01:00:46 +01:00

Don't send empty item nodes for songs that are unlocked the right way if force song unlock is enabled in Eclale.

This commit is contained in:
Jennifer Taylor 2021-09-09 01:05:19 +00:00
parent 1bef9ebd95
commit 2582f0e523

View File

@ -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))