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

jubeat: fix inherit

This commit is contained in:
seth 2022-08-16 17:26:15 -05:00 committed by Jennifer Taylor
parent 05e4ef0cb8
commit 8500201e4c
5 changed files with 10 additions and 5 deletions

View File

@ -1222,7 +1222,7 @@ class JubeatClan(
# Looks to be set to true when there's an old profile, stops tutorial from
# happening on first load.
info.add_child(Node.bool('inherit', profile.get_bool('has_old_version')))
info.add_child(Node.bool('inherit', profile.get_bool('has_old_version') and not profile.get_bool('saved')))
# Not saved, but loaded
info.add_child(Node.s32('mtg_entry_cnt', 123))
@ -1580,6 +1580,7 @@ class JubeatClan(
def unformat_profile(self, userid: UserID, request: Node, oldprofile: Profile) -> Profile:
newprofile = oldprofile.clone()
newprofile.replace_bool('saved', True)
data = request.child('data')
# Grab system information

View File

@ -826,7 +826,7 @@ class JubeatProp(
# Looks to be set to true when there's an old profile, stops tutorial from
# happening on first load.
info.add_child(Node.bool('inherit', profile.get_bool('has_old_version')))
info.add_child(Node.bool('inherit', profile.get_bool('has_old_version') and not profile.get_bool('saved')))
# Not saved, but loaded
info.add_child(Node.s32('mtg_entry_cnt', 123))
@ -1086,6 +1086,7 @@ class JubeatProp(
def unformat_profile(self, userid: UserID, request: Node, oldprofile: Profile) -> Profile:
newprofile = oldprofile.clone()
newprofile.replace_bool('saved', True)
data = request.child('data')
# Grab system information

View File

@ -546,7 +546,7 @@ class JubeatQubell(
# Looks to be set to true when there's an old profile, stops tutorial from
# happening on first load.
info.add_child(Node.bool('inherit', profile.get_bool('has_old_version')))
info.add_child(Node.bool('inherit', profile.get_bool('has_old_version') and not profile.get_bool('saved')))
# Not saved, but loaded
info.add_child(Node.s32('mtg_entry_cnt', 123))
@ -922,6 +922,7 @@ class JubeatQubell(
def unformat_profile(self, userid: UserID, request: Node, oldprofile: Profile) -> Profile:
newprofile = oldprofile.clone()
newprofile.replace_bool('saved', True)
data = request.child('data')
# Grab system information

View File

@ -189,7 +189,7 @@ class JubeatSaucer(
# Looks to be set to true when there's an old profile, stops tutorial from
# happening on first load.
info.add_child(Node.bool('inherit', profile.get_bool('has_old_version')))
info.add_child(Node.bool('inherit', profile.get_bool('has_old_version') and not profile.get_bool('saved')))
# Not saved, but loaded
info.add_child(Node.s32('mtg_entry_cnt', 123))
@ -519,6 +519,7 @@ class JubeatSaucer(
def unformat_profile(self, userid: UserID, request: Node, oldprofile: Profile) -> Profile:
newprofile = oldprofile.clone()
newprofile.replace_bool('saved', True)
data = request.child('data')
# Grab player information

View File

@ -323,7 +323,7 @@ class JubeatSaucerFulfill(
# Looks to be set to true when there's an old profile, stops tutorial from
# happening on first load.
info.add_child(Node.bool('inherit', profile.get_bool('has_old_version')))
info.add_child(Node.bool('inherit', profile.get_bool('has_old_version') and not profile.get_bool('saved')))
# Not saved, but loaded
info.add_child(Node.s32('mtg_entry_cnt', 123))
@ -601,6 +601,7 @@ class JubeatSaucerFulfill(
def unformat_profile(self, userid: UserID, request: Node, oldprofile: Profile) -> Profile:
newprofile = oldprofile.clone()
newprofile.replace_bool('saved', True)
data = request.child('data')
# Grab player information