feat: Issue #33, wisdom pane connected to game state data

This commit is contained in:
John McCardle 2022-01-09 19:29:57 -05:00
commit 1b65b8bbea
3 changed files with 51 additions and 3 deletions

View file

@ -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 = {