From 6d9486763b942d99377e5390dd5dfde031d1fc0b Mon Sep 17 00:00:00 2001 From: John McCardle Date: Sun, 9 Jan 2022 13:12:52 -0500 Subject: [PATCH] feat: mission status tracks actual currency and requirements from the vuex store. --- components/ThirdTabContent.vue | 4 ++-- store/index.js | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/components/ThirdTabContent.vue b/components/ThirdTabContent.vue index 0c57c3f..d0f52ca 100644 --- a/components/ThirdTabContent.vue +++ b/components/ThirdTabContent.vue @@ -5,8 +5,8 @@ :key="index" :label="mission.name" :description="mission.description" - :max="100" - :value="50 * (2 - index)" + :max="mission.completionCriteria.cost" + :value="$store.state.currency" /> diff --git a/store/index.js b/store/index.js index cfee9ff..8bbcdde 100644 --- a/store/index.js +++ b/store/index.js @@ -107,7 +107,7 @@ export const state = () => ({ name: 'Create the Time Machine', description: 'Soon you will be able to control time itself.', completionCriteria: { - cost: 1000, + cost: 50000, }, available: true, viewed: false, @@ -122,7 +122,9 @@ export const state = () => ({ appearanceCriteria: { age: 100, }, - completionCriteria: null, + completionCriteria: { + cost: 150000, + }, available: true, viewed: false, complete: false,