From 22a92588e840a7c87a13ffd2d122c9aa310e4ca5 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Mon, 20 Dec 2021 11:54:19 +0100 Subject: [PATCH] Minor fixes +v9 support --- images/icons/icon_ability.webp | Bin 0 -> 28606 bytes modules/pegasus-combat.js | 7 +++---- modules/pegasus-main.js | 6 ++++++ system.json | 6 +++--- template.json | 1 + templates/item-power-sheet.html | 17 +++++++++-------- 6 files changed, 22 insertions(+), 15 deletions(-) create mode 100644 images/icons/icon_ability.webp diff --git a/images/icons/icon_ability.webp b/images/icons/icon_ability.webp new file mode 100644 index 0000000000000000000000000000000000000000..65e6fe583df47ef900927e3d90b9e200561484dd GIT binary patch literal 28606 zcmc&*1zc21-=-VsmPSHqfd!UM=}tjZ7Fdv6SURLZx~0%J8sNCLz~xqlti!Y47A24}+HHyj=O( zn@+>`tG9dA$!9IgDz+6QJy0Z3a%JkDUcq^a#b|=W+|*}l8M!hZ!mdB3vg$%5G(%YNH=esH9ZNiYvI7r-NCCf>O@WOD)4dr-3jY zfq;dgv&p+;h+JnZTS4x+gr5y0VMTb*gYQdV$&`1M3sxA%h3^+K7A1oq9cp+f0HKNk zQ8s2hkr2OYL5CqTT)M0yZ7x$!8cT`}BPmlr27o|8r<@*P$VH}^g)K#A64fJB7l@Pz zc%`4cb{{vxKA4~k2->XRAn0GmFcZ3W%0DffvVVZi$)UIeXkEKt4TnbC-^%N06v zkt$d%8?Iq3y5T03kXJv(8_?^DR3*u$^!QI~m6g~?tni+L8g1QZA?xeT_u=Jq_;VM7 z5E2F%0fQSCr{}nGb5oTi#~JbGQUjHdE~`J+Y1~L--iu*aBJ8iiXaTX@(=hbFMEhKS ztXGgn599LVBnokel4iYBkM!hdVDzbhQfDnnwX|x)IIEG8^+uDE&%vu)Tt#iJ83AL1 z)Bs{7cG@N{pT)a!%2BD0RT;(v>H_uNumEN=JcS}H`zvs*-jcHA0S{2j53#w)dN}AD zh_1@A@+0ga<--e5CEFKe%QZi<_nwaoHjz3;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rhz z^$P_5=_B+%L;MdVajM{NM;%U6+FwBYI{;@Jn)92j?3gf9>vci+T3KAN-fIR|es4Mu;)M;4cLJ4{w)d#{d8T literal 0 HcmV?d00001 diff --git a/modules/pegasus-combat.js b/modules/pegasus-combat.js index cc64c21..6d4274d 100644 --- a/modules/pegasus-combat.js +++ b/modules/pegasus-combat.js @@ -5,14 +5,13 @@ export class PegasusCombat extends Combat { /* -------------------------------------------- */ async rollInitiative(ids, formula = undefined, messageOptions = {} ) { - console.log("Initiative is requested !!!"); - ids = typeof ids === "string" ? [ids] : ids; const currentId = this.combatant._id; for (let cId = 0; cId < ids.length; cId++) { - const c = this.getCombatant(ids[cId]); + const c = this.combatants.get(ids[cId]); let initBonus = c.actor ? c.actor.getInitiativeScore() : 0; - await this.updateEmbeddedEntity("Combatant", { _id: c._id, initiative: initBonus }); + let id = c._id || c.id; + await this.updateEmbeddedDocuments("Combatant", { _id: id, initiative: initBonus }); } return this; diff --git a/modules/pegasus-main.js b/modules/pegasus-main.js index daafd04..f3d49d2 100644 --- a/modules/pegasus-main.js +++ b/modules/pegasus-main.js @@ -94,6 +94,12 @@ Hooks.once("ready", function () { user: game.user._id }); } + + // CSS patch for v9 + if (game.version) { + let sidebar = document.getElementById("sidebar"); + sidebar.style.width = "min-content"; + } welcomeMessage(); }); diff --git a/system.json b/system.json index 58f9462..d267756 100644 --- a/system.json +++ b/system.json @@ -1,6 +1,6 @@ { "author": "Uberwald", - "compatibleCoreVersion": "0.8.9", + "compatibleCoreVersion": "9", "description": "Pegasus RPG system for FoundryVTT", "download": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg/fvtt-pegasus-rpg.zip", "esmodules": [ @@ -50,9 +50,9 @@ "styles": [ "styles/simple.css" ], - "templateVersion": 20, + "templateVersion": 21, "title": "Pegasus RPG", "url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg", - "version": "0.0.20", + "version": "0.0.21", "background" : "./images/ui/pegasus_welcome_page.webp" } \ No newline at end of file diff --git a/template.json b/template.json index f20006e..abc774b 100644 --- a/template.json +++ b/template.json @@ -314,6 +314,7 @@ "range": "", "action": "", "type": "", + "powersource": "", "effects": "", "purchasedeffects": "" }, diff --git a/templates/item-power-sheet.html b/templates/item-power-sheet.html index df3b34d..98f60e7 100644 --- a/templates/item-power-sheet.html +++ b/templates/item-power-sheet.html @@ -27,16 +27,14 @@

  • - +
  • - +
  • +
  • + +
  • {{editor content=data.effects target="data.effects" button=true owner=owner editable=editable}}