mirror of
https://github.com/em-squared/5e-drs.git
synced 2025-10-30 05:04:21 +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) {
|
||||
hitDieSize = stats.sizes[this.monsterStats.size].hitDie
|
||||
}
|
||||
let hitPointsBonus = 1
|
||||
let hitPointsBonus = 0
|
||||
if (this.monsterStats.hitDiceCount > 1) {
|
||||
hitPointsBonus = Math.floor(this.monsterStats.hitDiceCount / 2)
|
||||
}
|
||||
|
|
@ -251,7 +251,12 @@ export default {
|
|||
},
|
||||
|
||||
displaySkillBonus (skill) {
|
||||
console.log(skill)
|
||||
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
|
||||
if (skill.isExpert) {
|
||||
bonus += this.proficiencyBonus // Bonus de maître doublé pour les experts
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ ac:
|
|||
armorType: "armure d'écailles"
|
||||
hasShield: true
|
||||
movement:
|
||||
walk: 7
|
||||
walk: 7,5
|
||||
senses:
|
||||
darkvision: 36
|
||||
damageTypeResistances:
|
||||
|
|
|
|||
|
|
@ -14,7 +14,8 @@ abilityScores:
|
|||
sag: 14
|
||||
cha: 10
|
||||
ac:
|
||||
armorType: "armure de peau"
|
||||
armorType: "custom"
|
||||
value: "14 (armure de peau)"
|
||||
skills:
|
||||
- name: "discretion"
|
||||
invalid: true
|
||||
|
|
|
|||
|
|
@ -14,7 +14,8 @@ abilityScores:
|
|||
sag: 12
|
||||
cha: 8
|
||||
ac:
|
||||
armorType: "armure de peau"
|
||||
armorType: "custom"
|
||||
value: "14 (armure de peau)"
|
||||
skills:
|
||||
- name: "discretion"
|
||||
invalid: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue