feat: magic game flow 1

This commit is contained in:
pskfyi 2022-01-13 21:38:19 -08:00 committed by pskfyi
commit 5029bb70fb
5 changed files with 278 additions and 61 deletions

View file

@ -41,6 +41,10 @@ export default {
return unlockCriteria.value.every((name) =>
this.$store.getters.missionIsCompleted(name)
)
} else if (unlockCriteria.unit === 'eraVisited') {
return this.$store.state.processes.find(
(p) => p.unlockEra === unlockCriteria.value
).visited
} else if (unlockCriteria.unit === 'timeJumpsBackwards') {
return unlockCriteria.value <= this.$store.state.timeJumpsBackwards
} else {
@ -77,6 +81,10 @@ export default {
this.$store.commit('timeTravel', { year: 1400, era: 'Early Modern' })
this.$store.commit('tickLifetime')
}
if (mission.name === 'Live Forever') {
this.$store.commit('unlockPhilosophersStone')
}
},
},
}