Skip to content

Commit

Permalink
Fix bl unit for high strength characters
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanLeng committed Nov 29, 2024
1 parent 6e3ee80 commit 82ca3d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions module/actor/actor-importer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 82ca3d3

Please sign in to comment.