fix: missions that cost spare time now deduct spare time
This commit is contained in:
parent
4f0b3c7741
commit
e0b8bd00c1
|
@ -68,6 +68,9 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
complete(mission) {
|
complete(mission) {
|
||||||
this.$store.commit('completeMission', mission.name)
|
this.$store.commit('completeMission', mission.name)
|
||||||
|
if (mission.completionCriteria.unit === 'spareTime') {
|
||||||
|
this.$store.commit('spendCurrency', mission.completionCriteria.value)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue