Added ability score list tiles

This commit is contained in:
Stefan Zermatten
2019-01-17 16:37:37 +02:00
parent f2137e26b2
commit 2d3cb367da
6 changed files with 135 additions and 10 deletions

View File

@@ -19,6 +19,8 @@
</template>
<script>
import numberToSignedString from '/imports/ui/utility/numberToSignedString.js';
export default {
props: {
proficiency: Number,
@@ -50,12 +52,8 @@ export default {
let mod = this.modifier;
if (this.fail){
return 'fail';
} else if (mod === 0){
return '+0';
} else if (mod > 0 && typeof mod === 'number'){
return `+${mod}`
} else {
return mod;
return numberToSignedString(mod);
}
},
hasClickListener(){