Save "last mileage reward" field

Not entirely clear what it does but it prevents a music unlock
notification notification from popping at the start of every credit
whether or not the underlying music unlock flag is already set.
This commit is contained in:
Tau
2019-11-06 17:28:30 -05:00
parent a4a6550abb
commit 141cb4b90c
4 changed files with 16 additions and 1 deletions
+6 -1
View File
@@ -30,7 +30,12 @@ export async function createProfile(
const missions: MissionState = { team: [], solo: [] };
const settings: Settings = { music: 0, pack: 13640, paperCup: 0, gauges: 5 };
const story: Story = { x: 0, y: 0, rows: [] };
const unlocks: Unlocks = { cup: 0, gauges: 0, music: 0 };
const unlocks: Unlocks = {
cup: 0,
gauges: 1 << 5,
music: 0,
lastMileageReward: 0,
};
await Promise.all([
w.profile().save(profile.id, profile),