From 51345c0c8a920a7400b1b734e23e240291e45b58 Mon Sep 17 00:00:00 2001 From: zarmstrong Date: Wed, 30 Jun 2021 17:34:32 -0600 Subject: [PATCH] update module.json for 0.3.4 --- module.json | 4 ++-- pathbuilder-import-min.js | 4 ++-- pathbuilder-import.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/module.json b/module.json index c1e6dfa..08e8041 100644 --- a/module.json +++ b/module.json @@ -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.3.3", + "version": "0.3.4", "minimumCoreVersion": "0.8.6", "compatibleCoreVersion": "0.8.8", "esmodules": [ @@ -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.3.3/foundry-pathbuilder2e-import-0.3.3.zip", + "download": "https://github.com/zarmstrong/foundry-pathbuilder2e-import/releases/download/foundry-pathbuilder2e-import-0.3.4/foundry-pathbuilder2e-import-0.3.4.zip", "changelog": "https://github.com/zarmstrong/foundry-pathbuilder2e-import/blob/master/CHANGELOG.md", "bugs": "https://github.com/zarmstrong/herovau.lt-foundry/issues", "flags": { diff --git a/pathbuilder-import-min.js b/pathbuilder-import-min.js index eb214b0..5174e0e 100644 --- a/pathbuilder-import-min.js +++ b/pathbuilder-import-min.js @@ -1,7 +1,7 @@ -const fbpiDebug=true;const fpbi="0.3.3";var applyChanges=false;var finishedFeats=false;var finishedActions=false;var finishedClassFeatures=false;var finishedAncestryFeatures=false;var finishedEquipment=false;var finishedSpells=false;var addFeats=false;var addEquipment=false;var addMoney=false;var addSpellcasters=false;var deleteAll=false;var heroVaultExport=false;var allItems=[];var jsonBuild=[];var addedItems=[];let isHV=false;async function doHV(){if(game.modules.get('herovaultfoundry')?.active){let{supportCheck}=await import('/modules/herovaultfoundry/herovault-min.js');if(typeof supportCheck!=="undefined") +const fbpiDebug=true;const fpbi="0.3.4";var applyChanges=false;var finishedFeats=false;var finishedActions=false;var finishedClassFeatures=false;var finishedAncestryFeatures=false;var finishedEquipment=false;var finishedSpells=false;var addFeats=false;var addEquipment=false;var addMoney=false;var addSpellcasters=false;var deleteAll=false;var heroVaultExport=false;var allItems=[];var jsonBuild=[];var addedItems=[];let isHV=false;async function doHV(){if(game.modules.get('herovaultfoundry')?.active){let{supportCheck}=await import('../herovaultfoundry/herovault-min.js');if(typeof supportCheck!=="undefined") isHV=supportCheck();if(fbpiDebug) console.log("is hv?: "+isHV);}} -async function doHVExport(hero,act){if(game.modules.get('herovaultfoundry')?.active){let{exportToHVFromPBHLO}=await import('/modules/herovaultfoundry/herovault-min.js');if(typeof exportToHVFromPBHLO!=="undefined"){exportToHVFromPBHLO(hero,act);}} +async function doHVExport(hero,act){if(game.modules.get('herovaultfoundry')?.active){let{exportToHVFromPBHLO}=await import('../herovaultfoundry/herovault-min.js');if(typeof exportToHVFromPBHLO!=="undefined"){exportToHVFromPBHLO(hero,act);}} return} Hooks.on('renderActorSheet',async function(obj,html){await doHV();const actor=obj.actor;if(!(actor.data.type==="character")){return;} if(actor.canUserModify(game.user,"update")==false){return;} diff --git a/pathbuilder-import.js b/pathbuilder-import.js index d4ab4a6..b6a0180 100644 --- a/pathbuilder-import.js +++ b/pathbuilder-import.js @@ -1,5 +1,5 @@ const fbpiDebug=true; -const fpbi="0.3.3"; +const fpbi="0.3.4"; var applyChanges = false; var finishedFeats = false;