fix: game restarts as expected; closes #88
This commit is contained in:
parent
42bc01739a
commit
6eb4dda5de
|
@ -453,9 +453,7 @@ export const state = () => ({
|
||||||
// update doPrestige (mutation) if this is renamed
|
// update doPrestige (mutation) if this is renamed
|
||||||
name: 'Time Travel Precision',
|
name: 'Time Travel Precision',
|
||||||
description:
|
description:
|
||||||
'The time machine could target a certain month instead of a decade, ' +
|
'When you pass your wisdom to your younger self, you will restart at age 8 instead of age 30.',
|
||||||
'with the proper calibration. Send it to yourself as a child and ' +
|
|
||||||
'give your past self even more of a head start.',
|
|
||||||
unlockCriteria: {
|
unlockCriteria: {
|
||||||
unit: 'missionsCompleted',
|
unit: 'missionsCompleted',
|
||||||
value: ['Time to Cheat Death', 'Create the Time Machine'],
|
value: ['Time to Cheat Death', 'Create the Time Machine'],
|
||||||
|
@ -923,8 +921,10 @@ export const mutations = {
|
||||||
},
|
},
|
||||||
extendLifespan: (state, months) => {
|
extendLifespan: (state, months) => {
|
||||||
state.playerAgeMax += months
|
state.playerAgeMax += months
|
||||||
|
state.gameStopped = false
|
||||||
},
|
},
|
||||||
decreaseAge: (state, months) => {
|
decreaseAge: (state, months) => {
|
||||||
state.playerAge -= months
|
state.playerAge -= months
|
||||||
|
state.gameStopped = false
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue