Correction import niveau 0

Correction d'import pour armes au niveau 0 (ou négatif)
This commit is contained in:
Vincent Vandemeulebrouck 2024-12-14 00:51:32 +01:00
parent 30303330d7
commit c577fa5f29

View File

@ -267,7 +267,7 @@ export class RdDStatBlockParser {
}
let weapMatch = XRegExp.exec(statString, XRegExp(weapon.name
+ "(\\s*" + XREGEXP_WEAPON_MANIEMENT + ")?"
+ "\\s+(?<value>\\+\\d+)", 'giu'));
+ "\\s+(?<value>[\\+\\-]?\\d+)", 'giu'));
if (weapMatch) {
weapon = weapon.toObject();
weapon.system.equipe = 'true';