mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-27 18:41:57 +00:00
Added fullDisplay to challenges
This commit is contained in:
parent
33b15ac408
commit
977643f5f6
2 changed files with 8 additions and 5 deletions
|
@ -4,7 +4,7 @@
|
||||||
- Added softcap and softcapPower features (for Normal layers)
|
- Added softcap and softcapPower features (for Normal layers)
|
||||||
- Offline time limit and default max tick length were fixed (previously the limits were 1000x too large)
|
- Offline time limit and default max tick length were fixed (previously the limits were 1000x too large)
|
||||||
- Added fixOldSaves.
|
- Added fixOldSaves.
|
||||||
- You can use HTML in mainDisplay.
|
- You can use HTML in main-display.
|
||||||
- Fixed a number of minor oddities.
|
- Fixed a number of minor oddities.
|
||||||
|
|
||||||
### v2.2.3 - 11/28/20
|
### v2.2.3 - 11/28/20
|
||||||
|
|
|
@ -122,10 +122,13 @@ function loadVue() {
|
||||||
<div v-if="tmp[layer].challenges && tmp[layer].challenges[data]!== undefined && tmp[layer].challenges[data].unlocked && !(player.hideChallenges && maxedChallenge(layer, [data]))" v-bind:class="{hChallenge: true, done: hasChallenge(layer, data), canComplete: player[layer].activeChallenge == data && canCompleteChallenge(layer, data)}">
|
<div v-if="tmp[layer].challenges && tmp[layer].challenges[data]!== undefined && tmp[layer].challenges[data].unlocked && !(player.hideChallenges && maxedChallenge(layer, [data]))" v-bind:class="{hChallenge: true, done: hasChallenge(layer, data), canComplete: player[layer].activeChallenge == data && canCompleteChallenge(layer, data)}">
|
||||||
<br><h3 v-html="tmp[layer].challenges[data].name"></h3><br><br>
|
<br><h3 v-html="tmp[layer].challenges[data].name"></h3><br><br>
|
||||||
<button v-bind:class="{ longUpg: true, can: true, [layer]: true }" v-bind:style="{'background-color': tmp[layer].color}" v-on:click="startChallenge(layer, data)">{{player[layer].activeChallenge==(data)?(canCompleteChallenge(layer, data)?"Finish":"Exit Early"):(hasChallenge(layer, data)?"Completed":"Start")}}</button><br><br>
|
<button v-bind:class="{ longUpg: true, can: true, [layer]: true }" v-bind:style="{'background-color': tmp[layer].color}" v-on:click="startChallenge(layer, data)">{{player[layer].activeChallenge==(data)?(canCompleteChallenge(layer, data)?"Finish":"Exit Early"):(hasChallenge(layer, data)?"Completed":"Start")}}</button><br><br>
|
||||||
<span v-html="tmp[layer].challenges[data].challengeDescription"></span><br>
|
<span v-if="tmp[layer].challenges[data].fullDisplay" v-html="tmp[layer].challenges[data].fullDisplay"></span>
|
||||||
Goal: {{format(tmp[layer].challenges[data].goal)}} {{tmp[layer].challenges[data].currencyDisplayName ? tmp[layer].challenges[data].currencyDisplayName : "points"}}<br>
|
<span v-else>
|
||||||
Reward: <span v-html="tmp[layer].challenges[data].rewardDescription"></span><br>
|
<span v-html="tmp[layer].challenges[data].challengeDescription"></span><br>
|
||||||
<span v-if="tmp[layer].challenges[data].rewardEffect!==undefined">Currently: <span v-html="(tmp[layer].challenges[data].rewardDisplay) ? (tmp[layer].challenges[data].rewardDisplay) : format(tmp[layer].challenges[data].rewardEffect)"></span></span>
|
Goal: {{format(tmp[layer].challenges[data].goal)}} {{tmp[layer].challenges[data].currencyDisplayName ? tmp[layer].challenges[data].currencyDisplayName : "points"}}<br>
|
||||||
|
Reward: <span v-html="tmp[layer].challenges[data].rewardDescription"></span><br>
|
||||||
|
<span v-if="tmp[layer].challenges[data].rewardEffect!==undefined">Currently: <span v-html="(tmp[layer].challenges[data].rewardDisplay) ? (tmp[layer].challenges[data].rewardDisplay) : format(tmp[layer].challenges[data].rewardEffect)"></span></span>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue