feat: game flow draft 2; time machine first draft
This commit is contained in:
parent
82fd1b3e12
commit
233a1a4daa
10 changed files with 181 additions and 19 deletions
|
|
@ -68,9 +68,25 @@ export default {
|
|||
methods: {
|
||||
complete(mission) {
|
||||
this.$store.commit('completeMission', mission.name)
|
||||
|
||||
if (mission.completionCriteria.unit === 'spareTime') {
|
||||
this.$store.commit('spendCurrency', mission.completionCriteria.value)
|
||||
}
|
||||
|
||||
if (mission.name === 'Study Time Magic') {
|
||||
this.$store.commit('unlockTab', 'Time Magic')
|
||||
}
|
||||
|
||||
if (mission.name === 'Create the Time Machine') {
|
||||
this.$store.commit('unlockTab', 'Time Machine')
|
||||
}
|
||||
|
||||
if (mission.name === 'Time to Cheat Death') {
|
||||
this.$store.commit('unlockTab', 'Wisdom')
|
||||
this.$store.commit('setPlayerAge', { year: 30 })
|
||||
this.$store.commit('timeTravel', { year: 1400 })
|
||||
this.$store.commit('tickLifetime')
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue