mirror of
https://github.com/em-squared/5e-drs.git
synced 2025-10-30 13:14:20 +00:00
correction de coquilles et prise en compte des bonus de compétences personnalisés pour les monstres (type gobelins blancs)
This commit is contained in:
parent
f111c11b21
commit
7e9b61f79c
4 changed files with 28 additions and 21 deletions
|
|
@ -197,7 +197,7 @@ export default {
|
||||||
} else if (this.monsterStats.size) {
|
} else if (this.monsterStats.size) {
|
||||||
hitDieSize = stats.sizes[this.monsterStats.size].hitDie
|
hitDieSize = stats.sizes[this.monsterStats.size].hitDie
|
||||||
}
|
}
|
||||||
let hitPointsBonus = 1
|
let hitPointsBonus = 0
|
||||||
if (this.monsterStats.hitDiceCount > 1) {
|
if (this.monsterStats.hitDiceCount > 1) {
|
||||||
hitPointsBonus = Math.floor(this.monsterStats.hitDiceCount / 2)
|
hitPointsBonus = Math.floor(this.monsterStats.hitDiceCount / 2)
|
||||||
}
|
}
|
||||||
|
|
@ -251,7 +251,12 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
displaySkillBonus (skill) {
|
displaySkillBonus (skill) {
|
||||||
|
console.log(skill)
|
||||||
let result = stats.skills[skill.name].label
|
let result = stats.skills[skill.name].label
|
||||||
|
if (skill.invalid) {
|
||||||
|
result += ' ' + displayBonus(skill.value)
|
||||||
|
return result
|
||||||
|
}
|
||||||
let bonus = getModifier(this.monsterStats.abilityScores[stats.skills[skill.name].ability]) + this.proficiencyBonus
|
let bonus = getModifier(this.monsterStats.abilityScores[stats.skills[skill.name].ability]) + this.proficiencyBonus
|
||||||
if (skill.isExpert) {
|
if (skill.isExpert) {
|
||||||
bonus += this.proficiencyBonus // Bonus de maître doublé pour les experts
|
bonus += this.proficiencyBonus // Bonus de maître doublé pour les experts
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ ac:
|
||||||
armorType: "armure d'écailles"
|
armorType: "armure d'écailles"
|
||||||
hasShield: true
|
hasShield: true
|
||||||
movement:
|
movement:
|
||||||
walk: 7
|
walk: 7,5
|
||||||
senses:
|
senses:
|
||||||
darkvision: 36
|
darkvision: 36
|
||||||
damageTypeResistances:
|
damageTypeResistances:
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,8 @@ abilityScores:
|
||||||
sag: 14
|
sag: 14
|
||||||
cha: 10
|
cha: 10
|
||||||
ac:
|
ac:
|
||||||
armorType: "armure de peau"
|
armorType: "custom"
|
||||||
|
value: "14 (armure de peau)"
|
||||||
skills:
|
skills:
|
||||||
- name: "discretion"
|
- name: "discretion"
|
||||||
invalid: true
|
invalid: true
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,8 @@ abilityScores:
|
||||||
sag: 12
|
sag: 12
|
||||||
cha: 8
|
cha: 8
|
||||||
ac:
|
ac:
|
||||||
armorType: "armure de peau"
|
armorType: "custom"
|
||||||
|
value: "14 (armure de peau)"
|
||||||
skills:
|
skills:
|
||||||
- name: "discretion"
|
- name: "discretion"
|
||||||
invalid: true
|
invalid: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue