1
0
Fork 0
mirror of https://github.com/em-squared/5e-drs.git synced 2025-10-30 13:14:20 +00:00

Les créatures peuvent désormais avoir un bonus de maîtrise personnalisé. Fix #4

This commit is contained in:
Maxime Moraine 2020-04-24 07:59:32 +02:00
parent 7e9b61f79c
commit 3a8070c4f2
3 changed files with 17 additions and 6 deletions

View file

@ -237,7 +237,12 @@ export default {
displayList (list) { return list.join(', ') },
displayAbilityScore (value) { return displayAbilityScore(value) },
getModifier (value) { return getModifier(value) },
getProficiencyBonus () { return getProficiencyBonus(this.monsterStats.challenge) },
getProficiencyBonus () {
if (this.monsterStats.proficiencyBonus) {
return parseInt(this.monsterStats.proficiencyBonus)
}
return getProficiencyBonus(this.monsterStats.challenge)
},
displayMonsterTypeSizeAlignment () {
return displayMonsterTypeSizeAlignment(this.monsterStats)
@ -251,7 +256,6 @@ export default {
},
displaySkillBonus (skill) {
console.log(skill)
let result = stats.skills[skill.name].label
if (skill.invalid) {
result += ' ' + displayBonus(skill.value)