1
0
mirror of synced 2024-11-23 22:10:59 +01:00

Only send one item per song for force unlocks in Pop'n series.

This commit is contained in:
Jennifer Taylor 2021-09-10 00:13:00 +00:00
parent 82d69b41f9
commit 6e09563d35
3 changed files with 6 additions and 6 deletions

View File

@ -971,12 +971,12 @@ class PopnMusicModernBase(PopnMusicBase, ABC):
game_config = self.get_game_config()
if game_config.get_bool('force_unlock_songs'):
songs = self.data.local.music.get_all_songs(self.game, self.version)
songs = {song.id for song in self.data.local.music.get_all_songs(self.game, self.version)}
for song in songs:
item = Node.void('item')
root.add_child(item)
item.add_child(Node.u8('type', 0))
item.add_child(Node.u16('id', song.id))
item.add_child(Node.u16('id', song))
item.add_child(Node.u16('param', 15))
item.add_child(Node.bool('is_new', False))
item.add_child(Node.u64('get_time', 0))

View File

@ -704,12 +704,12 @@ class PopnMusicEclale(PopnMusicBase):
game_config = self.get_game_config()
if game_config.get_bool('force_unlock_songs'):
songs = self.data.local.music.get_all_songs(self.game, self.version)
songs = {song.id for song in self.data.local.music.get_all_songs(self.game, self.version)}
for song in songs:
item = Node.void('item')
root.add_child(item)
item.add_child(Node.u8('type', 0))
item.add_child(Node.u16('id', song.id))
item.add_child(Node.u16('id', song))
item.add_child(Node.u16('param', 15))
item.add_child(Node.bool('is_new', False))

View File

@ -741,12 +741,12 @@ class PopnMusicLapistoria(PopnMusicBase):
game_config = self.get_game_config()
if game_config.get_bool('force_unlock_songs'):
songs = self.data.local.music.get_all_songs(self.game, self.version)
songs = {song.id for song in self.data.local.music.get_all_songs(self.game, self.version)}
for song in songs:
item = Node.void('item')
root.add_child(item)
item.add_child(Node.u8('type', 0))
item.add_child(Node.u16('id', song.id))
item.add_child(Node.u16('id', song))
item.add_child(Node.u16('param', 15))
item.add_child(Node.bool('is_new', False))