feat: Issue #33, wisdom pane connected to game state data
This commit is contained in:
parent
2f66b2c073
commit
1b65b8bbea
3 changed files with 51 additions and 3 deletions
|
|
@ -148,6 +148,7 @@ export const state = () => ({
|
|||
},
|
||||
wisdomGained: 0, // wisdom gained so far on this run, not applied until player sends the book.
|
||||
wisdomApplied: 0, // wisdom from previous runs
|
||||
totalLifetimes: 1,
|
||||
})
|
||||
|
||||
export const getters = {
|
||||
|
|
@ -186,6 +187,9 @@ export const getters = {
|
|||
12: 'Dec.',
|
||||
}[state.gameDate.month]
|
||||
},
|
||||
currencySpent: (state) => {
|
||||
return Decimal.subtract(state.currencyTotal, state.currency)
|
||||
},
|
||||
}
|
||||
|
||||
export const mutations = {
|
||||
|
|
|
|||
Reference in a new issue