feat: magic game flow 1
This commit is contained in:
parent
45fc84b3db
commit
5029bb70fb
5 changed files with 278 additions and 61 deletions
|
|
@ -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')
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue