Skip to content

Commit

Permalink
Merge pull request #2041 from StefanLeng/Import-basic-lift-unit-for-h…
Browse files Browse the repository at this point in the history
…ight-stregth-characters-correctly-

Fix bl unit for high strength characters
  • Loading branch information
mjeffw authored Nov 29, 2024
2 parents 6e3ee80 + 82ca3d3 commit f8acd9b
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 f8acd9b

Please sign in to comment.