mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2025-05-01 22:11:08 +00:00
Added pluralize
This commit is contained in:
parent
19e9115a14
commit
15931a0ffa
8 changed files with 16 additions and 2 deletions
|
@ -236,7 +236,7 @@ function loadVue() {
|
|||
Vue.component('main-display', {
|
||||
props: ['layer', 'data'],
|
||||
template: `
|
||||
<div><span v-if="player[layer].points.lt('1e1000')">You have </span><h2 v-bind:style="{'color': tmp[layer].color, 'text-shadow': '0px 0px 10px ' + tmp[layer].color}">{{data ? format(player[layer].points, data) : formatWhole(player[layer].points)}}</h2> {{tmp[layer].resource}}<span v-if="layers[layer].effectDescription">, <span v-html="run(layers[layer].effectDescription, layers[layer])"></span></span><br><br></div>
|
||||
<div><span v-if="player[layer].points.lt('1e1000')">You have </span><h2 v-bind:style="{'color': tmp[layer].color, 'text-shadow': '0px 0px 10px ' + tmp[layer].color}">{{data ? format(player[layer].points, data) : formatWhole(player[layer].points)}}</h2> {{pluralize(player[layer].points, tmp[layer].singular || tmp[layer].resource, tmp[layer].resource)}}<span v-if="layers[layer].effectDescription">, <span v-html="run(layers[layer].effectDescription, layers[layer])"></span></span><br><br></div>
|
||||
`
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue