chore: lintfix
This commit is contained in:
parent
1474a13b73
commit
6cc6f94dd4
|
@ -132,19 +132,19 @@ export const state = () => ({
|
||||||
],
|
],
|
||||||
gameDate: {
|
gameDate: {
|
||||||
month: 12,
|
month: 12,
|
||||||
year: 1990
|
year: 1990,
|
||||||
},
|
},
|
||||||
playerAge: {
|
playerAge: {
|
||||||
month: 0,
|
month: 0,
|
||||||
year: 34
|
year: 34,
|
||||||
},
|
},
|
||||||
playerAgeMax: {
|
playerAgeMax: {
|
||||||
month: 0,
|
month: 0,
|
||||||
year: 80
|
year: 80,
|
||||||
},
|
},
|
||||||
playerLivedTotal: {
|
playerLivedTotal: {
|
||||||
month: 0,
|
month: 0,
|
||||||
year: 0
|
year: 0,
|
||||||
},
|
},
|
||||||
wisdomGained: 0, // wisdom gained so far on this run, not applied until player sends the book.
|
wisdomGained: 0, // wisdom gained so far on this run, not applied until player sends the book.
|
||||||
wisdomApplied: 0, // wisdom from previous runs
|
wisdomApplied: 0, // wisdom from previous runs
|
||||||
|
@ -168,8 +168,8 @@ export const getters = {
|
||||||
canTimeTravel: (state) => {
|
canTimeTravel: (state) => {
|
||||||
if (state.playerAge.year < state.playerAgeMax.year) return true
|
if (state.playerAge.year < state.playerAgeMax.year) return true
|
||||||
if (state.playerAge.year > state.playerAgeMax.year) return false
|
if (state.playerAge.year > state.playerAgeMax.year) return false
|
||||||
return (state.playerAge.month < state.playerAgeMax.month)
|
return state.playerAge.month < state.playerAgeMax.month
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
export const mutations = {
|
export const mutations = {
|
||||||
|
|
Reference in New Issue