Skip to content

Commit

Permalink
Merge pull request #661 from crnormand/097r
Browse files Browse the repository at this point in the history
Fixed 097 migration
  • Loading branch information
crnormand authored May 20, 2021
2 parents f2d7c29 + 2f73ca6 commit ba244d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class Migration {
for ( let actor of game.actors.entities ) {
let commit = { "data.migrationversion" : v }
recurselist(actor.data.data.hitlocations, (e, k, d) => {
if (e.dr == null) commit = { ...commit, ...{ ['data.hitlocations.' + k + '.import']: e.dr || 1 } }
if (e.import == null) commit = { ...commit, ...{ ['data.hitlocations.' + k + '.import']: e.dr } }
})
console.log("Updating " + actor.name)
console.log(GURPS.objToString(commit))
Expand Down

0 comments on commit ba244d5

Please sign in to comment.