Compare commits
2 Commits
64e48dd3ce
...
a27e3894a0
Author | SHA1 | Date | |
---|---|---|---|
a27e3894a0 | |||
ce8616c34e |
@ -334,11 +334,8 @@ export class RdDStatBlockParser {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (actorType == "creature" && skill.init) {
|
||||
items.push(comp); // Only selective push
|
||||
}
|
||||
if (actorType == "personnage") {
|
||||
items.push(comp); // Always push
|
||||
if (actorType == "personnage" || skill!= undefined){
|
||||
items.push(comp)
|
||||
}
|
||||
}
|
||||
|
||||
@ -456,11 +453,11 @@ export class RdDStatBlockParser {
|
||||
}
|
||||
|
||||
static parseCreature(statString, actorData) {
|
||||
let plusDom = XRegExp.exec(statString, XRegExp("\\+dom\\s+(?<value>\\+\\d+)", 'giu'));
|
||||
let plusDom = XRegExp.exec(statString, XRegExp("\\+dom\\s+(?<value>[\\+\\-]?\\d+)", 'giu'));
|
||||
if (plusDom?.values) {
|
||||
actorData.attributs.plusdom.value = Number(plusDom.value);
|
||||
}
|
||||
let protection = XRegExp.exec(statString, XRegExp("protection\\s+(?<value>\\d+)", 'giu'));
|
||||
let protection = XRegExp.exec(statString, XRegExp("protection\\s+(?<value>[\\-]?\\d+)", 'giu'));
|
||||
if (protection?.value) {
|
||||
actorData.attributs.protection.value = Number(protection.value);
|
||||
}
|
||||
@ -481,7 +478,7 @@ export class RdDStatBlockParser {
|
||||
}
|
||||
|
||||
static parseEntite(statString, actorData) {
|
||||
let plusDom = XRegExp.exec(statString, XRegExp("\\+dom\\s+(?<value>\\+\\d+)", 'giu'));
|
||||
let plusDom = XRegExp.exec(statString, XRegExp("\\+dom\\s+(?<value>[\\+\\-]?\\d+)", 'giu'));
|
||||
if (plusDom?.values) {
|
||||
actorData.attributs.plusdom.value = Number(plusDom.value);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user