feat: mission status tracks actual currency and requirements from the vuex store.

This commit is contained in:
John McCardle 2022-01-09 13:12:52 -05:00 committed by pskfyi
parent 4bbdb03263
commit 6d9486763b
2 changed files with 6 additions and 4 deletions

View File

@ -5,8 +5,8 @@
:key="index" :key="index"
:label="mission.name" :label="mission.name"
:description="mission.description" :description="mission.description"
:max="100" :max="mission.completionCriteria.cost"
:value="50 * (2 - index)" :value="$store.state.currency"
/> />
</template> </template>
</div> </div>

View File

@ -107,7 +107,7 @@ export const state = () => ({
name: 'Create the Time Machine', name: 'Create the Time Machine',
description: 'Soon you will be able to control time itself.', description: 'Soon you will be able to control time itself.',
completionCriteria: { completionCriteria: {
cost: 1000, cost: 50000,
}, },
available: true, available: true,
viewed: false, viewed: false,
@ -122,7 +122,9 @@ export const state = () => ({
appearanceCriteria: { appearanceCriteria: {
age: 100, age: 100,
}, },
completionCriteria: null, completionCriteria: {
cost: 150000,
},
available: true, available: true,
viewed: false, viewed: false,
complete: false, complete: false,