Implement force-unlock flag for Tricoro.
This commit is contained in:
parent
4886cdc82f
commit
db9b34ced0
@ -161,6 +161,12 @@ class IIDXTricoro(IIDXBase):
|
|||||||
"category": "game_config",
|
"category": "game_config",
|
||||||
"setting": "omnimix_events_enabled",
|
"setting": "omnimix_events_enabled",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "Force Song Unlock",
|
||||||
|
"tip": "Force unlock all songs.",
|
||||||
|
"category": "game_config",
|
||||||
|
"setting": "force_unlock_songs",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1071,6 +1077,13 @@ class IIDXTricoro(IIDXBase):
|
|||||||
secret_dict = profile.get_dict("secret")
|
secret_dict = profile.get_dict("secret")
|
||||||
secret = Node.void("secret")
|
secret = Node.void("secret")
|
||||||
root.add_child(secret)
|
root.add_child(secret)
|
||||||
|
|
||||||
|
game_config = self.get_game_config()
|
||||||
|
if game_config.get_bool("force_unlock_songs"):
|
||||||
|
secret.add_child(Node.s64("flg1", -1))
|
||||||
|
secret.add_child(Node.s64("flg2", -1))
|
||||||
|
secret.add_child(Node.s64("flg3", -1))
|
||||||
|
else:
|
||||||
secret.add_child(Node.s64("flg1", secret_dict.get_int("flg1")))
|
secret.add_child(Node.s64("flg1", secret_dict.get_int("flg1")))
|
||||||
secret.add_child(Node.s64("flg2", secret_dict.get_int("flg2")))
|
secret.add_child(Node.s64("flg2", secret_dict.get_int("flg2")))
|
||||||
secret.add_child(Node.s64("flg3", secret_dict.get_int("flg3")))
|
secret.add_child(Node.s64("flg3", secret_dict.get_int("flg3")))
|
||||||
@ -1408,6 +1421,8 @@ class IIDXTricoro(IIDXBase):
|
|||||||
newprofile.replace_dict("machine_judge_adjust", judge_dict)
|
newprofile.replace_dict("machine_judge_adjust", judge_dict)
|
||||||
|
|
||||||
# Secret flags saving
|
# Secret flags saving
|
||||||
|
game_config = self.get_game_config()
|
||||||
|
if not game_config.get_bool("force_unlock_songs"):
|
||||||
secret = request.child("secret")
|
secret = request.child("secret")
|
||||||
if secret is not None:
|
if secret is not None:
|
||||||
secret_dict = newprofile.get_dict("secret")
|
secret_dict = newprofile.get_dict("secret")
|
||||||
|
Loading…
Reference in New Issue
Block a user