12.0.29 - L'indexation d'Astrobazzarh #732
@ -478,14 +478,15 @@ export class RdDStatBlockParser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static parseActorType(statString) {
|
static parseActorType(statString) {
|
||||||
let niveau = XRegExp.exec(statString, XRegExp("Niveau\\s+(?<value>[\\+\\-]?\\d+)", 'giu'))
|
let force = XRegExp.exec(statString, XRegExp("Force\\s+(?<value>[\\+\\-]?\\d+)", 'giu'))
|
||||||
|
let vue = XRegExp.exec(statString, XRegExp("Vue\\s+(?<value>[\\+\\-]?\\d+)", 'giu'))
|
||||||
let perception = XRegExp.exec(statString, XRegExp("perception\\s+(?<value>\\d+)", 'giu'))
|
let perception = XRegExp.exec(statString, XRegExp("perception\\s+(?<value>\\d+)", 'giu'))
|
||||||
if (perception?.value) {
|
if (!force) {
|
||||||
return "creature"
|
|
||||||
}
|
|
||||||
if (niveau?.value) {
|
|
||||||
return "entite"
|
return "entite"
|
||||||
}
|
}
|
||||||
|
if (!vue || perception) {
|
||||||
|
return "creature"
|
||||||
|
}
|
||||||
return "personnage"
|
return "personnage"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user