mirror of
https://github.com/DragonMinded/bemaniutils.git
synced 2026-09-26 10:56:45 -05:00
jubeat: fix inherit
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user