Skip to content

Commit

Permalink
Removed console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lavaeolous committed Sep 26, 2022
1 parent 055f5e7 commit c047e64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
3 changes: 0 additions & 3 deletions pf1-statblock-converter/scripts/sbcInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,6 @@ export class sbcInputDialog extends Application {
// Conversion Validation
await sbcUtils.conversionValidation(newActor.id);
newActor.prepareData();

console.log("trying to validate")
console.log(newActor.validate());

sbcInputDialog.sbcInputDialogInstance.close()
sbcApp.resetSBC(false)
Expand Down
12 changes: 3 additions & 9 deletions pf1-statblock-converter/scripts/sbcParsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3212,9 +3212,6 @@ class spellBooksParser extends sbcParserBase {
// If the input is found in one of the compendiums, generate an entity from that
let entity = await sbcUtils.findEntityInCompendium(compendium, searchEntity)

console.log("SPELL ENTITY")
console.log(entity)

// otherwise overwrite "entity" with a placeholder
if (entity === null) {
entity = await sbcUtils.generatePlaceholderEntity(searchEntity, line)
Expand All @@ -3233,8 +3230,6 @@ class spellBooksParser extends sbcParserBase {

let spellDCOffset = 0

console.log("entity in spellbooks")
console.log(entity)
// Calculate the DC in the Actor
let spellCastingAbility = sbcData.characterData.actorData.system.attributes.spells.spellbooks[spellBookType].ability
let spellCastingAbilityModifier = sbcData.characterData.actorData.system.abilities[spellCastingAbility].mod
Expand All @@ -3247,8 +3242,8 @@ class spellBooksParser extends sbcParserBase {

// Try yo get the action
let spellAction = entity.firstAction
console.log("spellaction")
console.log(spellAction)

// TODO: This may still be broken, check after v4.0.0

//spellAction.update({"data.save.dc": spellDCOffset.toString()})
entity.updateSource({
Expand Down Expand Up @@ -4233,8 +4228,7 @@ class gearParser extends sbcParserBase {
entity = await sbcUtils.findEntityInCompendium(spellCompendium, {name: spellName});
if (entity) {
const consumable = await CONFIG.Item.documentClasses.spell.toConsumable(entity.toObject(), consumableType);
console.log("consumable")
console.log(consumable)

if (consumableType == "wand")
consumable.system.uses.value = parseInt(charges);
else
Expand Down

0 comments on commit c047e64

Please sign in to comment.