diff --git a/module/actor/actor.js b/module/actor/actor.js index cfb7d56..dcbce0d 100644 --- a/module/actor/actor.js +++ b/module/actor/actor.js @@ -29,10 +29,11 @@ export class MothershipActor extends Actor { let armorBonus = 0; const armors = this.getEmbeddedCollection("Item").filter(e => "armor" === e.type); - + for (let armor of armors) { - if (armor.data.equipped) { - armorBonus += armor.data.bonus; + console.log(armor); + if (armor.data.data.equipped) { + armorBonus += armor.data.data.bonus; } } data.stats.armor.mod = armorBonus; diff --git a/system.json b/system.json index 826a10f..e7c4694 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "name": "mosh", "title": "MoSh - Unofficial Mothership", "description": "The unofficial Mothership system for FoundryVTT.", - "version": "0.1.5", + "version": "0.1.5b", "minimumCoreVersion": "0.8.6", "compatibleCoreVersion": "0.8.6", "templateVersion": 2,