Skip to content

Commit

Permalink
update module.json for 0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zarmstrong committed Sep 20, 2021
1 parent d51d98a commit 56995c4
Show file tree
Hide file tree
Showing 4 changed files with 13 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.7.1 (September 20, 2021)

* fix cantrips rolling incorrect number of dice

## 0.7.0 (September 19, 2021)

* add more debug messaging
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.7.0",
"version": "0.7.1",
"minimumCoreVersion": "0.8.6",
"compatibleCoreVersion": "0.8.9",
"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.7.0/foundry-pathbuilder2e-import-0.7.0.zip",
"download": "https://github.com/zarmstrong/foundry-pathbuilder2e-import/releases/download/foundry-pathbuilder2e-import-0.7.1/foundry-pathbuilder2e-import-0.7.1.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.

7 changes: 5 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.7.0";
const fpbi = "0.7.1";
const reportDomain = "https://www.pf2player.com/";

const pbcolor1 = "color: #7bf542"; //bright green
Expand Down Expand Up @@ -1535,7 +1535,10 @@ async function setSpellcasters(targetActor, arraySpellcasters) {
) {
const clonedData = JSON.parse(JSON.stringify(action.data));
clonedData.data.location.value = spellCaster.instance[0].id;
clonedData.data.level.value = spellListObject.spellLevel;
if (spellListObject.spellLevel ==0)
clonedData.data.level.value = 1;
else
clonedData.data.level.value = spellListObject.spellLevel;
allItems.push(clonedData);
break;
}
Expand Down

0 comments on commit 56995c4

Please sign in to comment.