diff --git a/css/mosh.css b/css/mosh.css index 112e542..0a31d6a 100644 --- a/css/mosh.css +++ b/css/mosh.css @@ -296,6 +296,20 @@ margin-bottom: 3px; } +.mosh .faded-label { + text-transform: uppercase; + margin-bottom: 3px; + color:rgb(129, 129, 129); + font-weight:normal; + + text-align: left; + grid-column: 1/-1; + /* font-family: "Montserrat", "Arial Black", sans-serif; */ + font-size: 1.1rem; + line-height: 1; + text-align: center; +} + .mosh .tabs { height: 40px; border-top: 2px solid rgb(56, 56, 56); diff --git a/module/actor/actor-sheet.js b/module/actor/actor-sheet.js index 727570f..589850f 100644 --- a/module/actor/actor-sheet.js +++ b/module/actor/actor-sheet.js @@ -20,8 +20,10 @@ export class MothershipActorSheet extends ActorSheet { /** @override */ getData() { const data = super.getData(); + data.dtypes = ["String", "Number", "Boolean"]; - for (let attr of Object.values(data.data.attributes)) { + + for (let attr of Object.values(data.data.data.attributes)) { attr.isCheckbox = attr.dtype === "Boolean"; } @@ -31,13 +33,14 @@ export class MothershipActorSheet extends ActorSheet { } - if (data.data.settings == null) { - data.data.settings = {}; + if (data.data.data.settings == null) { + data.data.data.settings = {}; } - data.data.settings.useCalm = game.settings.get("mosh", "useCalm"); - data.data.settings.hideWeight = game.settings.get("mosh", "hideWeight"); + data.data.data.settings.useCalm = game.settings.get("mosh", "useCalm"); + data.data.data.settings.hideWeight = game.settings.get("mosh", "hideWeight"); - return data; + + return data.data; } /** @@ -48,8 +51,7 @@ export class MothershipActorSheet extends ActorSheet { * @return {undefined} */ _prepareCharacterItems(sheetData) { - const actorData = sheetData.actor; - + const actorData = sheetData.data; // Initialize containers. const gear = []; const skills = []; @@ -59,7 +61,7 @@ export class MothershipActorSheet extends ActorSheet { let curWeight = 0; // Iterate through items, allocating to containers // let totalWeight = 0; - for (let i of sheetData.items) { + for (let i of sheetData.data.items) { let item = i.data; i.img = i.img || DEFAULT_TOKEN; @@ -89,13 +91,14 @@ export class MothershipActorSheet extends ActorSheet { actorData.data.weight.capacity = Math.ceil((actorData.data.stats.strength.value/10) + 3); actorData.data.weight.current = curWeight; - console.log("Current Weight: " + curWeight + " Capacity: " + actorData.data.weight.capacity); + //console.log("Current Weight: " + curWeight + " Capacity: " + actorData.data.weight.capacity); // Assign and return actorData.gear = gear; actorData.skills = skills; actorData.armors = armors; actorData.weapons = weapons; + } /** @override */ @@ -107,11 +110,11 @@ export class MothershipActorSheet extends ActorSheet { // Update Inventory Item html.find('.item-equip').click(ev => { - const li = $(ev.currentTarget).parents(".item"); - const item = duplicate(this.actor.getEmbeddedEntity("OwnedItem", li.data("itemId"))) + const li = ev.currentTarget.closest(".item"); + const item = duplicate(this.actor.getEmbeddedDocument("Item", li.dataset.itemId)) item.data.equipped = !item.data.equipped; - this.actor.updateEmbeddedEntity('OwnedItem', item); + this.actor.updateEmbeddedDocuments('Item', [item]); }); // Add Inventory Item @@ -120,14 +123,14 @@ export class MothershipActorSheet extends ActorSheet { // Update Inventory Item html.find('.item-edit').click(ev => { const li = $(ev.currentTarget).parents(".item"); - const item = this.actor.getOwnedItem(li.data("itemId")); + const item = this.actor.getEmbeddedDocument("Item", li.data("itemId")); item.sheet.render(true); }); //Quantity adjuster html.on('mousedown', '.item-quantity', ev => { const li = ev.currentTarget.closest(".item"); - const item = duplicate(this.actor.getEmbeddedEntity("OwnedItem", li.dataset.itemId)) + const item = duplicate(this.actor.getEmbeddedDocument("Item", li.dataset.itemId)) let amount = item.data.quantity; if (event.button == 0) { @@ -136,14 +139,14 @@ export class MothershipActorSheet extends ActorSheet { item.data.quantity = Number(amount) - 1; } - this.actor.updateEmbeddedEntity('OwnedItem', item); + this.actor.updateEmbeddedDocuments('Item', [item]); }); // Delete Inventory Item html.find('.item-delete').click(ev => { const li = $(ev.currentTarget).parents(".item"); - this.actor.deleteOwnedItem(li.data("itemId")); + this.actor.deleteEmbeddedDocuments("Item",[li.data("itemId")]); li.slideUp(200, () => this.render(false)); }); @@ -153,8 +156,8 @@ export class MothershipActorSheet extends ActorSheet { // Update Inventory Item html.find('.skill-edit').click(ev => { - const liSkill = $(ev.currentTarget).parents(".item"); - const skill = this.actor.getOwnedItem(liSkill.data("itemId")); + const li = $(ev.currentTarget).parents(".item"); + const skill = this.actor.getEmbeddedDocument("Item", li.data("itemId")); skill.sheet.render(true); }); @@ -164,8 +167,8 @@ export class MothershipActorSheet extends ActorSheet { // Update Inventory Item html.find('.weapon-edit').click(ev => { - const liWeapon = $(ev.currentTarget).parents(".item"); - const weapon = this.actor.getOwnedItem(liWeapon.data("itemId")); + const li = $(ev.currentTarget).parents(".item"); + const weapon = this.actor.getEmbeddedDocument("Item", li.data("itemId")); weapon.sheet.render(true); }); @@ -204,7 +207,7 @@ export class MothershipActorSheet extends ActorSheet { html.on('mousedown', '.weapon-ammo', ev => { const li = ev.currentTarget.closest(".item"); - const item = duplicate(this.actor.getEmbeddedEntity("OwnedItem", li.dataset.itemId)) + const item = duplicate(this.actor.getEmbeddedDocument("Item", li.dataset.itemId)) let amount = item.data.ammo; if (event.button == 0) { @@ -217,34 +220,31 @@ export class MothershipActorSheet extends ActorSheet { } } - this.actor.updateEmbeddedEntity('OwnedItem', item); + this.actor.updateEmbeddedDocuments('Item', [item]); }); //Reload Shots html.on('mousedown', '.weapon-reload', ev => { const li = ev.currentTarget.closest(".item"); - const item = duplicate(this.actor.getEmbeddedEntity("OwnedItem", li.dataset.itemId)) + const item = duplicate(this.actor.getEmbeddedDocument("Item", li.dataset.itemId)) - if (event.button == 0) { - if (!item.data.useAmmo) { - item.data.curShots = item.data.shots; - } else { - item.data.ammo += item.data.curShots; - let reloadAmount = Math.min(item.data.ammo, item.data.shots); - item.data.curShots = reloadAmount; + if (!item.data.useAmmo) { + item.data.curShots = item.data.shots; + } else { + item.data.ammo += item.data.curShots; + let reloadAmount = Math.min(item.data.ammo, item.data.shots); + item.data.curShots = reloadAmount; - item.data.ammo -= reloadAmount; - } + item.data.ammo -= reloadAmount; } - this.actor.updateEmbeddedEntity('OwnedItem', item); + this.actor.updateEmbeddedDocuments('Item', [item]); let actor = this.actor; let speaker = ChatMessage.getSpeaker({ actor }); ChatMessage.create({ speaker, - content: `Reloading ` + item.name + "...", - type: CHAT_MESSAGE_TYPES.EMOTE + content: `Reloading ` + item.name + "..." }, { chatBubble: true }); @@ -264,7 +264,7 @@ export class MothershipActorSheet extends ActorSheet { }); // Drag events for macros. - if (this.actor.owner) { + if (this.actor.isOwner) { let handler = ev => this._onDragStart(ev); html.find('li.dropitem').each((i, li) => { @@ -343,8 +343,6 @@ export class MothershipActorSheet extends ActorSheet { const element = event.currentTarget; const dataset = element.dataset; - console.log(super.getData()); - if (dataset.roll) { let roll = new Roll(dataset.roll, this.actor.data.data); let label = dataset.label ? `Rolling ${dataset.label} to score under ${dataset.target}` : ''; diff --git a/module/actor/actor.js b/module/actor/actor.js index dabd937..cfb7d56 100644 --- a/module/actor/actor.js +++ b/module/actor/actor.js @@ -28,7 +28,7 @@ export class MothershipActor extends Actor { const data = actorData.data; let armorBonus = 0; - const armors = this.getEmbeddedCollection("OwnedItem").filter(e => "armor" === e.type); + const armors = this.getEmbeddedCollection("Item").filter(e => "armor" === e.type); for (let armor of armors) { if (armor.data.equipped) { @@ -141,7 +141,7 @@ export class MothershipActor extends Actor { } rollWeapon(itemId, options = { event: null }) { - let item = duplicate(this.getEmbeddedEntity("OwnedItem", itemId)); + let item = duplicate(this.getEmbeddedDocument("Item",itemId)); console.log(item); @@ -149,7 +149,7 @@ export class MothershipActor extends Actor { if (item.data.shots == 0) { if (item.data.ammo > 0) { item.data.ammo -= 1; - this.updateEmbeddedEntity('OwnedItem', item); + this.updateEmbeddedDocuments('Item', [item]); } else { //Select the stat of the roll. @@ -174,7 +174,7 @@ export class MothershipActor extends Actor { let subAmount = Math.max(item.data.shotsPerFire, 1); item.data.curShots = Math.max(item.data.curShots - subAmount, 0); console.log("Unloading Shots"); - this.updateEmbeddedEntity('OwnedItem', item); + this.updateEmbeddedDocuments('Item', [item]); } else { if (item.data.ammo > 0 || !item.data.useAmmo) { @@ -255,8 +255,8 @@ export class MothershipActor extends Actor { } reloadWeapon(itemId, options = { event: null }) { - let item = duplicate(this.getEmbeddedEntity("OwnedItem", itemId)); - + let item = duplicate(this.getEmbeddedDocument("Item",itemId)); + if (event.button == 0) { if (!item.data.useAmmo) { item.data.curShots = item.data.shots; @@ -269,17 +269,17 @@ export class MothershipActor extends Actor { } } - this.updateEmbeddedEntity('OwnedItem', item); + this.updateEmbeddedDocuments('Item', [item]); } printDescription(itemId, options = { event: null }) { - let item = duplicate(this.getEmbeddedEntity("OwnedItem", itemId)); + let item = duplicate(this.getEmbeddedDocument("Item",itemId)); this.chatDesc(item); } rollSkill(itemId, options = { event: null }) { - let item = duplicate(this.getEmbeddedEntity("OwnedItem", itemId)); + let item = duplicate(this.getEmbeddedDocument("Item",itemId)); // let attLabel = skill.label?.charAt(0).toUpperCase() + skill.label?.toLowerCase().slice(1); // if (!skill.label && isNaN(attLabel)) @@ -422,9 +422,9 @@ export class MothershipActor extends Actor { }; let chatData = { - user: game.user._id, + user: game.user.id, speaker: { - actor: this._id, + actor: this.id, token: this.token, alias: this.name } @@ -552,9 +552,9 @@ export class MothershipActor extends Actor { }; let chatData = { - user: game.user._id, + user: game.user.id, speaker: { - actor: this._id, + actor: this.id, token: this.token, alias: this.name } diff --git a/module/actor/creature-sheet.js b/module/actor/creature-sheet.js index c1b86b4..b62a862 100644 --- a/module/actor/creature-sheet.js +++ b/module/actor/creature-sheet.js @@ -25,7 +25,7 @@ export class MothershipCreatureSheet extends ActorSheet { */ _getHeaderButtons() { let buttons = super._getHeaderButtons(); - const canConfigure = game.user.isGM || this.actor.owner; + const canConfigure = game.user.isGM || this.actor.isOwner; if (this.options.editable && canConfigure) { buttons = [{ label: 'Creature Settings', @@ -70,7 +70,7 @@ export class MothershipCreatureSheet extends ActorSheet { this._prepareCreatureItems(data); } - return data; + return data.data; } /** @@ -81,7 +81,7 @@ export class MothershipCreatureSheet extends ActorSheet { * @return {undefined} */ _prepareCreatureItems(sheetData) { - const actorData = sheetData.actor; + const actorData = sheetData.data; // Initialize containers. const abilities = []; @@ -89,7 +89,7 @@ export class MothershipCreatureSheet extends ActorSheet { // Iterate through items, allocating to containers // let totalWeight = 0; - for (let i of sheetData.items) { + for (let i of sheetData.data.items) { let item = i.data; i.img = i.img || DEFAULT_TOKEN; @@ -115,14 +115,14 @@ export class MothershipCreatureSheet extends ActorSheet { // Delete Inventory Item html.find('.item-delete').click(ev => { const li = $(ev.currentTarget).parents(".item"); - this.actor.deleteOwnedItem(li.data("itemId")); + this.actor.deleteEmbeddedDocuments("Item",[li.data("itemId")]); li.slideUp(200, () => this.render(false)); }); // Update Inventory Item html.find('.item-edit').click(ev => { const li = $(ev.currentTarget).parents(".item"); - const item = this.actor.getOwnedItem(li.data("itemId")); + const item = this.actor.getEmbeddedDocument("Item", li.data("itemId")); item.sheet.render(true); }); @@ -143,8 +143,8 @@ export class MothershipCreatureSheet extends ActorSheet { // Update Inventory Item html.find('.weapon-edit').click(ev => { - const liWeapon = $(ev.currentTarget).parents(".item"); - const weapon = this.actor.getOwnedItem(liWeapon.data("itemId")); + const li = $(ev.currentTarget).parents(".item"); + const weapon = this.actor.getEmbeddedDocument("Item", li.data("itemId")); weapon.sheet.render(true); }); @@ -159,7 +159,7 @@ export class MothershipCreatureSheet extends ActorSheet { html.on('mousedown', '.weapon-ammo', ev => { const li = ev.currentTarget.closest(".item"); - const item = duplicate(this.actor.getEmbeddedEntity("OwnedItem", li.dataset.itemId)) + const item = duplicate(this.actor.getEmbeddedDocument("Item", li.dataset.itemId)) let amount = item.data.ammo; if (event.button == 0) { @@ -172,13 +172,13 @@ export class MothershipCreatureSheet extends ActorSheet { } } - this.actor.updateEmbeddedEntity('OwnedItem', item); + this.actor.updateEmbeddedDocuments('Item', [item]); }); //Reload Shots html.on('mousedown', '.weapon-reload', ev => { const li = ev.currentTarget.closest(".item"); - const item = duplicate(this.actor.getEmbeddedEntity("OwnedItem", li.dataset.itemId)) + const item = duplicate(this.actor.getEmbeddedDocument("Item", li.dataset.itemId)) if (event.button == 0) { if (!item.data.useAmmo) { @@ -192,7 +192,7 @@ export class MothershipCreatureSheet extends ActorSheet { } } - this.actor.updateEmbeddedEntity('OwnedItem', item); + this.actor.updateEmbeddedDocuments('Item', [item]); // let actor = this.actor; // let speaker = ChatMessage.getSpeaker({ actor }); // ChatMessage.create({ @@ -212,7 +212,7 @@ export class MothershipCreatureSheet extends ActorSheet { }); // Drag events for macros. - if (this.actor.owner) { + if (this.actor.isOwner) { let handler = ev => this._onDragStart(ev); html.find('li.dropitem').each((i, li) => { diff --git a/module/actor/ship-sheet.js b/module/actor/ship-sheet.js index 5b92fa5..2ae563b 100644 --- a/module/actor/ship-sheet.js +++ b/module/actor/ship-sheet.js @@ -24,7 +24,7 @@ export class MothershipShipSheet extends ActorSheet { // for (let attr of Object.values(data.data.attributes)) { // attr.isCheckbox = attr.dtype === "Boolean"; // } - + console.log(data); // Prepare items. if (this.actor.data.type == 'ship') { this._prepareShipItems(data); @@ -37,7 +37,11 @@ export class MothershipShipSheet extends ActorSheet { data.data.settings.useCalm = game.settings.get("mosh", "useCalm"); data.data.settings.hideWeight = game.settings.get("mosh", "hideWeight"); - return data; + let maxHull = data.data.data.supplies.hull.max; + + data.data.data.supplies.hull.percentage = " [ "+Math.round(maxHull * 0.25)+" | "+Math.round(maxHull * 0.5)+" | "+Math.round(maxHull * 0.75)+" ]"; + + return data.data; } /** @@ -48,7 +52,7 @@ export class MothershipShipSheet extends ActorSheet { * @return {undefined} */ _prepareShipItems(sheetData) { - const actorData = sheetData.actor; + const actorData = sheetData.data; // Initialize containers. const abilities = []; @@ -58,7 +62,7 @@ export class MothershipShipSheet extends ActorSheet { // Iterate through items, allocating to containers // let totalWeight = 0; - for (let i of sheetData.items) { + for (let i of sheetData.data.items) { let item = i.data; i.img = i.img || DEFAULT_TOKEN; @@ -93,16 +97,18 @@ export class MothershipShipSheet extends ActorSheet { // Delete Inventory Item html.find('.item-delete').click(ev => { const li = $(ev.currentTarget).parents(".item"); - this.actor.deleteOwnedItem(li.data("itemId")); + this.actor.deleteEmbeddedDocuments("Item",[li.data("itemId")]); li.slideUp(200, () => this.render(false)); }); // Update Inventory Item html.find('.item-edit').click(ev => { const li = $(ev.currentTarget).parents(".item"); - const item = this.actor.getOwnedItem(li.data("itemId")); + const item = this.actor.getEmbeddedDocument("Item", li.data("itemId")); item.sheet.render(true); + let amount = item.data.quantity; + if (item.type == "module") { item.data.totalHull = amount * item.data.hull; } @@ -111,7 +117,7 @@ export class MothershipShipSheet extends ActorSheet { //Quantity adjuster html.on('mousedown', '.item-quantity', ev => { const li = ev.currentTarget.closest(".item"); - const item = duplicate(this.actor.getEmbeddedEntity("OwnedItem", li.dataset.itemId)) + const item = duplicate(this.actor.getEmbeddedDocument("Item", li.dataset.itemId)) let amount = item.data.quantity; if (event.button == 0) { @@ -124,7 +130,7 @@ export class MothershipShipSheet extends ActorSheet { item.data.totalHull = item.data.quantity * item.data.hull; } - this.actor.updateEmbeddedEntity('OwnedItem', item); + this.actor.updateEmbeddedDocuments('Item', [item]); }); // Rollable Attributes @@ -140,8 +146,8 @@ export class MothershipShipSheet extends ActorSheet { html.find('.weapon-create').click(this._onItemCreate.bind(this)); // Update Inventory Item html.find('.weapon-edit').click(ev => { - const liWeapon = $(ev.currentTarget).parents(".item"); - const weapon = this.actor.getOwnedItem(liWeapon.data("itemId")); + const li = $(ev.currentTarget).parents(".item"); + const weapon = this.actor.getEmbeddedDocument("Item", li.data("itemId")); weapon.sheet.render(true); }); // Rollable Weapon @@ -154,7 +160,7 @@ export class MothershipShipSheet extends ActorSheet { html.on('mousedown', '.weapon-ammo', ev => { const li = ev.currentTarget.closest(".item"); - const item = duplicate(this.actor.getEmbeddedEntity("OwnedItem", li.dataset.itemId)) + const item = duplicate(this.actor.getEmbeddedDocument("Item", li.dataset.itemId)) let amount = item.data.ammo; if (event.button == 0) { @@ -167,13 +173,13 @@ export class MothershipShipSheet extends ActorSheet { } } - this.actor.updateEmbeddedEntity('OwnedItem', item); + this.actor.updateEmbeddedDocuments('Item', [item]); }); //Reload Shots html.on('mousedown', '.weapon-reload', ev => { const li = ev.currentTarget.closest(".item"); - const item = duplicate(this.actor.getEmbeddedEntity("OwnedItem", li.dataset.itemId)) + const item = duplicate(this.actor.getEmbeddedDocument("Item", li.dataset.itemId)) if (event.button == 0) { if (!item.data.useAmmo) { @@ -187,7 +193,7 @@ export class MothershipShipSheet extends ActorSheet { } } - this.actor.updateEmbeddedEntity('OwnedItem', item); + this.actor.updateEmbeddedDocuments('Item', [item]); }); // Rollable Item/Anything with a description that we want to click on. @@ -200,7 +206,7 @@ export class MothershipShipSheet extends ActorSheet { // Drag events for macros. - if (this.actor.owner) { + if (this.actor.isOwner) { let handler = ev => this._onDragStart(ev); html.find('li.dropitem').each((i, li) => { diff --git a/module/item/item-sheet.js b/module/item/item-sheet.js index 021e3bf..d85bad8 100644 --- a/module/item/item-sheet.js +++ b/module/item/item-sheet.js @@ -30,7 +30,7 @@ export class MothershipItemSheet extends ItemSheet { /** @override */ getData() { const data = super.getData(); - return data; + return data.data; } /* -------------------------------------------- */ diff --git a/system.json b/system.json index 9452d9f..826a10f 100644 --- a/system.json +++ b/system.json @@ -2,9 +2,9 @@ "name": "mosh", "title": "MoSh - Unofficial Mothership", "description": "The unofficial Mothership system for FoundryVTT.", - "version": "0.1.4", - "minimumCoreVersion": "0.7.0", - "compatibleCoreVersion": "0.7.9", + "version": "0.1.5", + "minimumCoreVersion": "0.8.6", + "compatibleCoreVersion": "0.8.6", "templateVersion": 2, "author": "Futilrevenge", "esmodules": ["module/mosh.js"], diff --git a/templates/actor/actor-sheet.html b/templates/actor/actor-sheet.html index a0f042b..e5c057c 100644 --- a/templates/actor/actor-sheet.html +++ b/templates/actor/actor-sheet.html @@ -13,7 +13,7 @@
-
@@ -23,7 +23,7 @@
NAME
+ value="{{name}}" placeholder="Name" />
Credits
@@ -306,7 +306,7 @@ Armor
- {{#each actor.armors as |armor id|}} + {{#each armors as |armor id|}}
  • {{armor.name}}

    @@ -337,8 +337,8 @@ Item
  • - {{#if actor.data.settings.hideWeight}} - {{#each actor.gear as |item id|}} + {{#if data.settings.hideWeight}} + {{#each gear as |item id|}}
  • {{item.name}}

    @@ -351,7 +351,7 @@
  • {{/each}} {{else}} - {{#each actor.gear as |item id|}} + {{#each gear as |item id|}}
  • {{item.name}}

    @@ -388,7 +388,7 @@ Skill
  • - {{#each actor.skills as |skill id|}} + {{#each skills as |skill id|}}
  • {{skill.name}}
    @@ -418,7 +418,7 @@ Add
  • - {{#each actor.weapons as |weapon id|}} + {{#each weapons as |weapon id|}}
  • diff --git a/templates/actor/creature-sheet.html b/templates/actor/creature-sheet.html index 9bcd711..a08c3e2 100644 --- a/templates/actor/creature-sheet.html +++ b/templates/actor/creature-sheet.html @@ -3,7 +3,7 @@
    - +
    {{#if data.stats.combat.enabled}} @@ -124,13 +124,13 @@
    Maximum
    - {{editor content=data.description target="data.description" button=true owner=owner editable=editable}} + {{editor content=data.description target="data.description" button=true owner=owner editable=true}}
    - +
    Special Abilities
    - {{#each actor.abilities as |ability id|}} + {{#each abilities as |ability id|}}
  • {{ability.name}}
    {{{ability.data.description}}}
    @@ -158,7 +158,7 @@ {{!-- Biography Tab --}}
    - {{editor content=data.biography target="data.biography" button=true owner=owner editable=editable}} + {{editor content=data.biography target="data.biography" button=true owner=owner editable=true}}
    {{!-- Owned Weapons Tab --}}
    @@ -176,7 +176,7 @@ Add
  • - {{#each actor.weapons as |weapon id|}} + {{#each weapons as |weapon id|}}
  • diff --git a/templates/actor/ship-sheet.html b/templates/actor/ship-sheet.html index 38c8016..d8de054 100644 --- a/templates/actor/ship-sheet.html +++ b/templates/actor/ship-sheet.html @@ -3,17 +3,17 @@ {{!-- Sheet Header --}}
    -
    - +
    NAME
    + value="{{name}}" placeholder="Name" />
    @@ -115,6 +115,7 @@
    +
    {{data.supplies.hull.percentage}}
    Current
    Maximum
    + +
    @@ -161,7 +164,7 @@
    Notes
    - {{#each actor.abilities as |ability id|}} + {{#each abilities as |ability id|}}
    {{ability.name}}
    {{{ability.data.description}}}
    @@ -216,7 +219,7 @@
  • - {{#each actor.weapons as |weapon id|}} + {{#each weapons as |weapon id|}}
  • @@ -257,7 +260,7 @@
  • - {{#each actor.modules as |module id|}} + {{#each modules as |module id|}}
  • @@ -288,7 +291,7 @@ class="fas fa-plus"> Add
  • - {{#each actor.cargo as |item id|}} + {{#each cargo as |item id|}}
  • diff --git a/templates/item/item-ability-sheet.html b/templates/item/item-ability-sheet.html index ee63c2d..2cb9528 100644 --- a/templates/item/item-ability-sheet.html +++ b/templates/item/item-ability-sheet.html @@ -1,8 +1,8 @@
    - +
    -

    +

    @@ -22,7 +22,7 @@ {{!-- Description Tab --}}
    - {{editor content=data.description target="data.description" button=true owner=owner editable=editable}} + {{editor content=data.description target="data.description" button=true owner=owner editable=true}}
    diff --git a/templates/item/item-armor-sheet.html b/templates/item/item-armor-sheet.html index 631c955..cc96d0b 100644 --- a/templates/item/item-armor-sheet.html +++ b/templates/item/item-armor-sheet.html @@ -1,8 +1,8 @@
    - +
    -

    +

    @@ -31,7 +31,7 @@ {{!-- Description Tab --}}
    - {{editor content=data.description target="data.description" button=true owner=owner editable=editable}} + {{editor content=data.description target="data.description" button=true owner=owner editable=true}}
    {{!-- Attributes Tab --}} diff --git a/templates/item/item-item-sheet.html b/templates/item/item-item-sheet.html index 84a31a5..ad7259e 100644 --- a/templates/item/item-item-sheet.html +++ b/templates/item/item-item-sheet.html @@ -1,8 +1,8 @@
    - +
    -

    +

    @@ -31,7 +31,7 @@ {{!-- Description Tab --}}
    - {{editor content=data.description target="data.description" button=true owner=owner editable=editable}} + {{editor content=data.description target="data.description" button=true owner=owner editable=true}}
    {{!-- Attributes Tab --}} diff --git a/templates/item/item-module-sheet.html b/templates/item/item-module-sheet.html index ca4f16f..4183b2b 100644 --- a/templates/item/item-module-sheet.html +++ b/templates/item/item-module-sheet.html @@ -1,8 +1,8 @@
    - +
    -

    +

    @@ -30,7 +30,7 @@ {{!-- Description Tab --}}
    - {{editor content=data.description target="data.description" button=true owner=owner editable=editable}} + {{editor content=data.description target="data.description" button=true owner=owner editable=true}}
    \ No newline at end of file diff --git a/templates/item/item-skill-sheet.html b/templates/item/item-skill-sheet.html index 1bdcda2..5b0adb4 100644 --- a/templates/item/item-skill-sheet.html +++ b/templates/item/item-skill-sheet.html @@ -1,8 +1,8 @@
    - +
    -

    +

    @@ -26,7 +26,7 @@ {{!-- Description Tab --}}
    - {{editor content=data.description target="data.description" button=true owner=owner editable=editable}} + {{editor content=data.description target="data.description" button=true owner=owner editable=true}}
    diff --git a/templates/item/item-weapon-sheet.html b/templates/item/item-weapon-sheet.html index df30468..d61373d 100644 --- a/templates/item/item-weapon-sheet.html +++ b/templates/item/item-weapon-sheet.html @@ -1,8 +1,8 @@
    - +
    -

    +

    @@ -61,7 +61,7 @@ {{!-- Description Tab --}}
    - {{editor content=data.description target="data.description" button=true owner=owner editable=editable}} + {{editor content=data.description target="data.description" button=true owner=owner editable=true}}
    {{!-- Ranges Tab --}}