Ajout "kg" au poids
This commit is contained in:
parent
5bf1ecaea3
commit
d5686b81ed
@ -322,7 +322,7 @@ export class RdDStatBlockParser {
|
|||||||
actorData.taille = taille.value;
|
actorData.taille = taille.value;
|
||||||
}
|
}
|
||||||
// Get weight
|
// Get weight
|
||||||
const poids = XRegExp.exec(statString, XRegExp("(?<value>\\d+) kg", 'giu'));
|
const poids = XRegExp.exec(statString, XRegExp("(?<value>\\d+ kg)", 'giu'));
|
||||||
if (poids?.value) {
|
if (poids?.value) {
|
||||||
actorData.poids = poids.value;
|
actorData.poids = poids.value;
|
||||||
}
|
}
|
||||||
@ -387,7 +387,7 @@ export class RdDStatBlockParser {
|
|||||||
case "personnage":
|
case "personnage":
|
||||||
// Check if ',né le' is present
|
// Check if ',né le' is present
|
||||||
let namePersonnage = "Importé"
|
let namePersonnage = "Importé"
|
||||||
if ( statString.includes(", né") ) {
|
if (statString.includes(", né")) {
|
||||||
// Name is all string before first comma ','
|
// Name is all string before first comma ','
|
||||||
namePersonnage = XRegExp.exec(statString, XRegExp("(?<value>[\\p{Letter}\\s\\d]+),", 'giu'));
|
namePersonnage = XRegExp.exec(statString, XRegExp("(?<value>[\\p{Letter}\\s\\d]+),", 'giu'));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user