mirror of
https://github.com/em-squared/5e-drs.git
synced 2025-11-01 22:14:21 +00:00
optimisation mobile + filtres des monstres + seo
This commit is contained in:
parent
e5af8a1b4a
commit
9add7369de
17 changed files with 210 additions and 29 deletions
|
|
@ -139,7 +139,8 @@ import {
|
|||
getModifier,
|
||||
displayAbilityScore,
|
||||
getProficiencyBonus,
|
||||
displayChallenge
|
||||
displayChallenge,
|
||||
displayMonsterTypeSizeAlignment
|
||||
} from '@theme/util/monsterHelpers'
|
||||
|
||||
import {stats} from '../../data/stats.js'
|
||||
|
|
@ -184,22 +185,7 @@ export default {
|
|||
getProficiencyBonus () { return getProficiencyBonus(this.monster.challenge) },
|
||||
|
||||
displayMonsterTypeSizeAlignment () {
|
||||
let result = ''
|
||||
if (this.monster.isSwarm) {
|
||||
result = 'Nuée de taille '+ this.monster.size + ' composée ' + stats.monsterTypes[this.monster.type].swarm
|
||||
if (this.monster.subtype) {
|
||||
result += ' (' + this.monster.subtype + ')'
|
||||
}
|
||||
result += ' de taille ' + this.monster.swarmSize
|
||||
} else {
|
||||
result = this.monster.type
|
||||
if (this.monster.subtype) {
|
||||
result += ' (' + this.monster.subtype + ')'
|
||||
}
|
||||
result += ' de taille ' + this.monster.size
|
||||
}
|
||||
result += ', ' + this.monster.alignment
|
||||
return result
|
||||
return displayMonsterTypeSizeAlignment(this.monster)
|
||||
},
|
||||
|
||||
displaySavingThrowBonus (ability) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue