Skip to content

Commit

Permalink
update module.json for 0.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
zarmstrong committed Jul 26, 2021
1 parent 40ebd8d commit 1ccf385
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.6.5 (Jul 25, 2021)

* add deity upon import

## 0.6.4 (Jul 25, 2021)

* added a note on how to manage inventory on the importer screen.
Expand Down
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Pathbuilder 2e Import",
"description": "This module allows players and GMs to import player characters built in Pathbuilder 2e",
"author": "slate",
"version": "0.6.4",
"version": "0.6.5",
"minimumCoreVersion": "0.8.6",
"compatibleCoreVersion": "0.8.8",
"esmodules": [
Expand All @@ -14,7 +14,7 @@
"license": "MIT",
"url": "https://github.com/zarmstrong/foundry-pathbuilder2e-import",
"manifest": "https://raw.githubusercontent.com/zarmstrong/foundry-pathbuilder2e-import/master/module.json",
"download": "https://github.com/zarmstrong/foundry-pathbuilder2e-import/releases/download/foundry-pathbuilder2e-import-0.6.4/foundry-pathbuilder2e-import-0.6.4.zip",
"download": "https://github.com/zarmstrong/foundry-pathbuilder2e-import/releases/download/foundry-pathbuilder2e-import-0.6.5/foundry-pathbuilder2e-import-0.6.5.zip",
"changelog": "https://github.com/zarmstrong/foundry-pathbuilder2e-import/blob/master/CHANGELOG.md",
"bugs": "https://github.com/zarmstrong/herovau.lt-foundry/issues",
"flags": {
Expand Down
4 changes: 2 additions & 2 deletions pathbuilder-import-min.js

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions pathbuilder-import.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var fbpiDebug = false;
const fpbi = "0.6.4";
const fpbi = "0.6.3";
const reportDomain = "https://www.pf2player.com/";

const pbcolor1 = "color: #7bf542"; //bright green
Expand Down Expand Up @@ -377,7 +377,11 @@ async function importCharacter(targetActor, jsonBuild) {
jsonBuild.attributes.classhp * jsonBuild.level +
jsonBuild.attributes.ancestryhp +
conBonus * jsonBuild.level;

console.log(
"%cPathbuilder2e Import | %cGot deity:" + jsonBuild.diety,
pbcolor1,
pbcolor4
);
await targetActor.update({
name: jsonBuild.name,
"token.name": jsonBuild.name,
Expand All @@ -387,6 +391,7 @@ async function importCharacter(targetActor, jsonBuild) {
"data.details.gender.value": jsonBuild.gender,
"data.details.alignment.value": jsonBuild.alignment,
"data.details.keyability.value": jsonBuild.keyability,
"data.details.deity.value": jsonBuild.deity,

"data.traits.size.value": getSizeValue(jsonBuild.size),

Expand Down

0 comments on commit 1ccf385

Please sign in to comment.