From 82ca3d385fe29bb8630e4fcc4d58436aacf9817b Mon Sep 17 00:00:00 2001 From: StefanLeng Date: Fri, 29 Nov 2024 21:10:23 +0100 Subject: [PATCH] Fix bl unit for high strength characters --- module/actor/actor-importer.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/actor/actor-importer.js b/module/actor/actor-importer.js index bf2d98e6..66129094 100644 --- a/module/actor/actor-importer.js +++ b/module/actor/actor-importer.js @@ -1537,8 +1537,9 @@ export class ActorImporter { } data.QP.value = qp - let bl_value = parseDecimalNumber(calc?.basic_lift.match(/[\d,\.]+/g)[0]) - let bl_unit = calc?.basic_lift.replace(bl_value + ' ', '') + let bl_string = calc?.basic_lift.match(/[\d,\.]+/g)[0] + let bl_value = parseDecimalNumber(bl_string) + let bl_unit = calc?.basic_lift.replace(bl_string + ' ', '') let lm = {} lm.basiclift = (bl_value * 1).toString() + ' ' + bl_unit