Ignore deco parts when force deco is enabled for Unilab.

This commit is contained in:
Jennifer Taylor 2026-06-03 22:10:31 +00:00
parent 342f951664
commit 314f60c8a5

View File

@ -1075,6 +1075,9 @@ class PopnMusicModernBase(PopnMusicBase, ABC):
if game_config.get_bool("force_unlock_songs") and itemtype == 0:
# We already sent song unlocks in the force unlock section above.
continue
if game_config.get_bool("force_unlock_deco") and itemtype == 7:
# We already sent deco part unlocks in the force unlock section.
continue
item = Node.void("item")
root.add_child(item)
@ -1331,6 +1334,9 @@ class PopnMusicModernBase(PopnMusicBase, ABC):
if game_config.get_bool("force_unlock_songs") and itemtype == 0:
# If we enabled force song unlocks, don't save songs to the profile.
continue
if game_config.get_bool("force_unlock_deco") and itemtype == 7:
# If we enabled force deco parts unlock, don't save deco parts.
continue
self.data.local.user.put_achievement(
self.game,