diff --git a/pages/Wisdom.vue b/pages/Wisdom.vue
index 1601079..9f19839 100644
--- a/pages/Wisdom.vue
+++ b/pages/Wisdom.vue
@@ -12,25 +12,25 @@
}}
Total in-game time elapsed
+ >{{ $store.getters.gameTimeTotalText }}
Completed lifetimes{{ $store.state.lifetimes }}
- Longest lifetime
-
Oldest age reached
+ >{{ $store.getters.ageRecordText }}
Latest time reached
+ >{{ $store.getters.gameDateRecordText }}
Wisdom for next prestige{{ $store.state.wisdomGained }}
Wisdom from other timelines{{ $store.state.wisdomApplied }}
+ >{{ $store.state.wisdomApplied }}: +{{ $store.state.wisdomApplied }}% to
+ Spare Time, Energy, and Mana gained
diff --git a/store/index.js b/store/index.js
index e0e5661..a05aa3d 100644
--- a/store/index.js
+++ b/store/index.js
@@ -71,9 +71,12 @@ export const state = () => ({
gameDate: 1400 * 12,
gameEra: 'Early Modern',
+ gameTimeTotal: 0,
+ gameDateRecord: 0,
playerAge: 30 * 12,
playerAgeMax: 60 * 12,
+ playerAgeRecord: 0,
playerLivedTotal: 0,
wisdomGained: 0, // wisdom gained so far on this run, not applied until player sends the book.
@@ -625,6 +628,19 @@ export const getters = {
gameYear: (state) => {
return Math.floor(state.gameDate / 12)
},
+ gameDateRecordText: (state) => {
+ return (
+ (state.gameDateRecord % 12) +
+ 1 +
+ '/' +
+ Math.floor(state.gameDateRecord / 12)
+ )
+ },
+ gameTimeTotalText: (state) => {
+ return `${Math.floor(state.gameTimeTotal / 12)}y${
+ state.gameTimeTotal % 12
+ }m`
+ },
currencySpent: (state) => {
return Decimal.subtract(state.currencyTotal, state.currency)
},
@@ -640,6 +656,12 @@ export const getters = {
return `${year}y${month}m`
},
+ ageRecordText: (state) => {
+ const year = Math.floor(state.playerAgeRecord / 12)
+ const month = state.playerAgeRecord % 12
+
+ return `${year}y${month}m`
+ },
missionIsCompleted: (state) => (missionName) => {
const mission = state.missions.find((m) => m.name === missionName)
@@ -745,6 +767,11 @@ export const mutations = {
state.gameDate += 1
state.playerAge += 1
if (!(state.playerAge % 12)) state.wisdomGained++
+ state.gameTimeTotal += 1
+ if (state.playerAge > state.playerAgeRecord)
+ state.playerAgeRecord = state.playerAge
+ if (state.gameDate > state.gameDateRecord)
+ state.gameDateRecord = state.gameDate
},
setPlayerAge: (state, { year, month = 0 }) => {
state.playerAge = year * 12 + month
@@ -854,7 +881,7 @@ export const mutations = {
// delete all apprentices
state.processes.forEach((e) => {
- e.visited = false // require re-travel to time period to hire
+ // e.visited = false // require re-travel to time period to hire
e.workerLevel = 0
e.nextWorkerCost = e.baseWorkerCost
})