Fix so that orphaned profiles still allow the hold note tutorial on the first play in UsaNeko.
This commit is contained in:
parent
cff3b79a94
commit
de974a7c5d
@ -865,7 +865,8 @@ class PopnMusicUsaNeko(PopnMusicBase):
|
|||||||
# Upper values:
|
# Upper values:
|
||||||
# 0 - Brand new profile and user has not been asked for the above navigation tutorial
|
# 0 - Brand new profile and user has not been asked for the above navigation tutorial
|
||||||
# or shown an optional "how to play" tutorial. The game will advance this to "1"
|
# or shown an optional "how to play" tutorial. The game will advance this to "1"
|
||||||
# after going through the mode and character select screens.
|
# after going through the mode and character select screens, but only if the total
|
||||||
|
# play count is "1".
|
||||||
# 1 - Hold note tutorial has not been activated yet and will be displayed when
|
# 1 - Hold note tutorial has not been activated yet and will be displayed when
|
||||||
# the player chooses a song with hold notes. Game moves this to "2" after this
|
# the player chooses a song with hold notes. Game moves this to "2" after this
|
||||||
# tutorial has been activated.
|
# tutorial has been activated.
|
||||||
@ -875,7 +876,8 @@ class PopnMusicUsaNeko(PopnMusicBase):
|
|||||||
# song on your last stage. Game moves this to "3" after this tutorial has been
|
# song on your last stage. Game moves this to "3" after this tutorial has been
|
||||||
# displayed.
|
# displayed.
|
||||||
# 3 - All hold note tutorials are finished, this is a terminal state.
|
# 3 - All hold note tutorials are finished, this is a terminal state.
|
||||||
account.add_child(Node.s16('tutorial', profile.get_int('tutorial')))
|
statistics = self.get_play_statistics(userid)
|
||||||
|
account.add_child(Node.s16('tutorial', profile.get_int('tutorial', 100 if statistics.total_plays > 1 else 0)))
|
||||||
|
|
||||||
# Stuff we never change
|
# Stuff we never change
|
||||||
account.add_child(Node.s8('staff', 0))
|
account.add_child(Node.s8('staff', 0))
|
||||||
@ -896,7 +898,6 @@ class PopnMusicUsaNeko(PopnMusicBase):
|
|||||||
account.add_child(Node.s16_array('latest_music', last_played))
|
account.add_child(Node.s16_array('latest_music', last_played))
|
||||||
|
|
||||||
# Player statistics
|
# Player statistics
|
||||||
statistics = self.get_play_statistics(userid)
|
|
||||||
account.add_child(Node.s16('total_play_cnt', statistics.total_plays))
|
account.add_child(Node.s16('total_play_cnt', statistics.total_plays))
|
||||||
account.add_child(Node.s16('today_play_cnt', statistics.today_plays))
|
account.add_child(Node.s16('today_play_cnt', statistics.today_plays))
|
||||||
account.add_child(Node.s16('consecutive_days', statistics.consecutive_days))
|
account.add_child(Node.s16('consecutive_days', statistics.consecutive_days))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user