From d45866827fb8ee2adab0e31bb7edea7544be9c42 Mon Sep 17 00:00:00 2001 From: Lee Talman Date: Fri, 8 Mar 2024 16:03:51 -0500 Subject: [PATCH] send item descriptions to chat, fix toggle buttons, update packs --- CHANGELOG.md | 3 ++ lang/en.json | 9 +++--- module/data/armor.mjs | 1 + module/sheets/actor-sheet.mjs | 26 ++++++++++++++++-- packs/actors/000019.ldb | Bin 2032 -> 0 bytes packs/actors/000070.ldb | Bin 0 -> 2626 bytes packs/actors/CURRENT | 2 +- packs/actors/LOG | 4 +-- packs/actors/LOG.old | 17 ++++++++++-- packs/actors/MANIFEST-000064 | Bin 202 -> 0 bytes packs/actors/MANIFEST-000071 | Bin 0 -> 202 bytes packs/items/CURRENT | 2 +- packs/items/LOG | 4 +-- packs/items/LOG.old | 10 +++++-- .../{MANIFEST-000064 => MANIFEST-000070} | Bin 153 -> 153 bytes packs/monsters/000019.ldb | Bin 1639 -> 0 bytes packs/monsters/000070.ldb | Bin 0 -> 1766 bytes packs/monsters/CURRENT | 2 +- packs/monsters/LOG | 4 +-- packs/monsters/LOG.old | 17 ++++++++++-- packs/monsters/MANIFEST-000064 | Bin 202 -> 0 bytes packs/monsters/MANIFEST-000071 | Bin 0 -> 202 bytes packs/spells/CURRENT | 2 +- packs/spells/LOG | 3 -- packs/spells/LOG.old | 10 +++++-- packs/spells/MANIFEST-000052 | Bin 50 -> 0 bytes packs/spells/MANIFEST-000058 | Bin 0 -> 50 bytes templates/actor/actor-monster-sheet.hbs | 2 +- templates/actor/actor-recruit-sheet.hbs | 23 ++++++++++------ .../actor/parts/actor-character-items.hbs | 18 +++++++----- templates/item/item-chat-message.hbs | 4 +-- 31 files changed, 110 insertions(+), 53 deletions(-) delete mode 100644 packs/actors/000019.ldb create mode 100644 packs/actors/000070.ldb delete mode 100644 packs/actors/MANIFEST-000064 create mode 100644 packs/actors/MANIFEST-000071 rename packs/items/{MANIFEST-000064 => MANIFEST-000070} (83%) delete mode 100644 packs/monsters/000019.ldb create mode 100644 packs/monsters/000070.ldb delete mode 100644 packs/monsters/MANIFEST-000064 create mode 100644 packs/monsters/MANIFEST-000071 delete mode 100644 packs/spells/MANIFEST-000052 create mode 100644 packs/spells/MANIFEST-000058 diff --git a/CHANGELOG.md b/CHANGELOG.md index 2dc49db..cd0c0fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ - All attacks roll their description (not just relics) - Monster sheets display AP and can roll reverse AP - New PCs and recruits have "Link Actor Data" selected by default +- Armor can be unequipped for AP calculations without being removed from inventory +- Clicking item names or icons in inventory sends their descriptions to chat (only when items have descriptions) +- Fix labels for toggleable buttons on items in actor inventory ## 0.2.1 - Added support for reverse AP rolls for PCs/recruits diff --git a/lang/en.json b/lang/en.json index 9394403..d381b97 100644 --- a/lang/en.json +++ b/lang/en.json @@ -120,10 +120,11 @@ "KNAVE2E.QuantityPerSlot": "# per Slot", - "KNAVE2E.BreakWeaponDetail": "Toggle Broken Weapon", - "KNAVE2E.CastSpellbookDetail": "Toggle Cast Spellbook", - "KNAVE2E.ActiveBlessingDetail": "Toggle Active Blessing", - "KNAVE2E.ActivateLightSourceDetail": "Toggle Light Source", + "KNAVE2E.BreakWeaponDetail": "Break", + "KNAVE2E.CastSpellbookDetail": "Cast", + "KNAVE2E.ActiveBlessingDetail": "Bless", + "KNAVE2E.ActivateLightSourceDetail": "Light", + "KNAVE2E.EquipArmorDetail": "Equip", "KNAVE2E.AttackRoll": "Attack Roll", "KNAVE2E.PowerAttackRoll": "Power Attack Roll", diff --git a/module/data/armor.mjs b/module/data/armor.mjs index 13ce7c4..5a270f0 100644 --- a/module/data/armor.mjs +++ b/module/data/armor.mjs @@ -11,6 +11,7 @@ export default class Knave2eArmor extends Knave2eItemType { const schema = super.defineSchema(); schema.armorPoints = new fields.NumberField({ ...requiredInteger, initial: 1, min: 1}); + schema.equipped = new fields.BooleanField({ initial: true }); return schema; } diff --git a/module/sheets/actor-sheet.mjs b/module/sheets/actor-sheet.mjs index 17ed45a..55610a4 100644 --- a/module/sheets/actor-sheet.mjs +++ b/module/sheets/actor-sheet.mjs @@ -147,7 +147,7 @@ export default class Knave2eActorSheet extends ActorSheet { } _updateArmor(context) { - const armorPieces = context.items.filter(i => i.type === "armor" && i.system.dropped === false); + const armorPieces = context.items.filter(i => i.type === "armor" && i.system.dropped === false && i.system.equipped === true); const uniqueCategories = []; let armorPoints = 0; @@ -318,11 +318,13 @@ export default class Knave2eActorSheet extends ActorSheet { // Rollable elements (e.g. Abilities) html.on('click', '.rollable', this._onRollable.bind(this)); + // Item Description to chat + html.on('click', '.item-name', this._onItemName.bind(this)); + // Toggle Item Icons html.on('click', '.item-toggle', this._onItemToggle.bind(this)); - /* -------------------------------------------- */ /* Item Rolls */ /* -------------------------------------------- */ @@ -356,6 +358,24 @@ export default class Knave2eActorSheet extends ActorSheet { html.on('click', '.actor-button.numberAppearing', this._onNumberAppearing.bind(this)); } + async _onItemName(event) { + event.preventDefault(); + const a = event.currentTarget; + const systemData = this.actor.system; + + const li = a.closest("li"); + const item = li.dataset.itemId ? this.actor.items.get(li.dataset.itemId) : null; + + if (item.system.description !== ""){ + ChatMessage.create({ + speaker: ChatMessage.getSpeaker({ actor: this.actor }), + flavor: `${item.name}`, + content:`${item.system.description}`, + rollMode: game.settings.get('core', 'rollMode') + }); + } + } + async _onItemToggle(event) { event.preventDefault(); const a = event.currentTarget; @@ -370,6 +390,8 @@ export default class Knave2eActorSheet extends ActorSheet { return item.update({ "system.broken": !item.system.broken }) case "cast": return item.update({ "system.cast": !item.system.cast }) + case "equip": + return item.update({"system.equipped": !item.system.equipped}) case "blessing": if (item.system.relic.isActive) { this.actor.update({ diff --git a/packs/actors/000019.ldb b/packs/actors/000019.ldb deleted file mode 100644 index 269ac417ed68001d234da627a8d737dc11933d09..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2032 zcmaJ?eQX>@6`xt}I(PBeT|4LG99_uWrVd!XJMZoJ>$b{~JAWj$@&>rh7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TsK4w+sItoog2P+$1PC;BRZv0zi4USiCoZo0xe zFAcqn+LsSdtvsXaXuD;E<@awps-$RwS zaNVd;&+n^1aXcUTjZf3ibSS50+J<`7;FO*pm?kwh%i{L@YB{Q@*<5~bt}I40O&eZw z)^9a$o#qc>K?#W%>%&6i)Dq)wEz3)k)LF-CEyq`yBM!CcJKx;>TFd5gb7dK1ht2M` zTSG21$ctiy?{10Q{mI_v!-wH^n#3VhI%*lT=&+zoY;AjLCv>_~*7A++kU6MidQqgr z+@S5zop<)X^Jd{7*1sh5bcWz*Nv2wN97|UN!p$^ws~q@gLaDgBc}3WsGgqQ&|IlE* zf9?t-4S1Nn_9HQ}KlZFxIJ;BCl72-@w5yxz!sT_L?bbu%Vz}@t zq^rU~F+6@->`>d}G(0(t&5W=;XEISu8_KHMTt<+!{sC3HmJ#9z2HsjPKVJB4V(*@* z%@;<0-@Ju}VYQ&d2fH?q(ll?`@GfRPdbrF=rWAl|xh0!1XZ$0T_GVkh)?Zt;(1E@m s-$dai1^;JzpkKEAPxt3PzB>1QoBF~-d$yqeKR)%ZC%^b`aO5}t1(!fyasU7T diff --git a/packs/actors/000070.ldb b/packs/actors/000070.ldb new file mode 100644 index 0000000000000000000000000000000000000000..de1b7699d5bc3b5bd25001eea438b7eae7d101cb GIT binary patch literal 2626 zcmai0e{3699e?j~*Z3McIH}V)C}sAoT^C_HXFG8cuQjm~r%BpmNt&iqW5(YaiHY;4#WFOKwgbl^rL;4dsn zCNZd#mWC-)s7cto6p@_yGT!uUMio}k9B6As5qfBfW!i1_Y_ZLlw;jsnqXsc!(1sp1 zZhX;@(u)#dhQ)eyV%t(W9*;;WwH2n79nCUf2 z3nB_}XwibXq$Oj^JAMTc+QQBr#j>4I%7!h|DM4CU#^rWKbSR-KA~C`=2k&g(J(8Ww zC-Sjg3-Xxww!chu-Ns+>y@tE-YxuOs)~&?bsG-FlmzS0z_#NJ{!n%LLnxQ7{9Xf|w zRLw5yWPW7Z75skq=STKv=8Tk{Cb~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f~C)|@n&7g+zC~671WF}DZQ@s7Hh4!BW&UHy0D4O=RZl<)?^t*T66`*m9{s~ zVsx?nZfTPuzNP?38%TcmzQCHag_n3nKS|uef1Fqsw?v{dE+^b$hpTS1d0pNTNr1{- z@)rIpQZp~1txI>{a$4Mbrhk0*_3{yQa)S#Z5uQ5q>z7wQLQ>7Nro*u*Rz26Kg;=fv zZOzQ-mSyx;KPBF8Y;^x}p@&`^dg1rzftvpVyBYk^+J#=NM 2626 bytes +2024/03/08-16:00:25.530 cb84 compacted to: files[ 0 1 0 0 0 0 0 ] +2024/03/08-16:00:25.530 cb84 Delete type=2 #19 +2024/03/08-16:00:25.530 cb84 Delete type=2 #69 +2024/03/08-16:00:25.531 cb84 Manual compaction at level-0 from '!actors.items!trjwBEQQMtRgNF55.ruMHE8dQmioMrKyQ' @ 17 : 1 .. '!actors.items!trjwBEQQMtRgNF55.ruMHE8dQmioMrKyQ' @ 0 : 0; will stop at (end) diff --git a/packs/actors/MANIFEST-000064 b/packs/actors/MANIFEST-000064 deleted file mode 100644 index bd3885eadf38519a522677b901c604c702047407..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 202 zcmaF0l5^7*21Z7yoYb<^oRlOzr^=Gl^338?=ltA)#G=HK{32EcbH&7DAfs3>vm`aQ zSkWmsEh#wFKc~{zsodYYz)i2H)Yrq+A|)_4GvBw!yE2fGl>rRc8HGRaD?l}4Xk%o9 Xs3O;N*?bW-4hBXhM@|N2Cl)pU!Tvft diff --git a/packs/actors/MANIFEST-000071 b/packs/actors/MANIFEST-000071 new file mode 100644 index 0000000000000000000000000000000000000000..97491711a9e9d2d0c7ceef1e69a77b9fa9ce18b8 GIT binary patch literal 202 zcmaFL<AtO80X!HPtIB_4RPIND0i%%=azwt_)-pWB>zpMz=#E3Q)}$+8Bi( Xs>n6necd{F4hBXh4^9SVPZl8n{o^_# literal 0 HcmV?d00001 diff --git a/packs/items/CURRENT b/packs/items/CURRENT index 5d746f2..bcf1079 100644 --- a/packs/items/CURRENT +++ b/packs/items/CURRENT @@ -1 +1 @@ -MANIFEST-000064 +MANIFEST-000070 diff --git a/packs/items/LOG b/packs/items/LOG index c8ec7af..e719632 100644 --- a/packs/items/LOG +++ b/packs/items/LOG @@ -1,3 +1 @@ -2024/03/08-14:02:24.820 6194 Recovering log #63 -2024/03/08-14:02:24.823 6194 Delete type=0 #63 -2024/03/08-14:02:24.823 6194 Delete type=3 #62 +2024/03/08-16:02:40.573 a7e8 Recovering log #68 diff --git a/packs/items/LOG.old b/packs/items/LOG.old index 355a57a..8144a76 100644 --- a/packs/items/LOG.old +++ b/packs/items/LOG.old @@ -1,3 +1,7 @@ -2024/03/08-13:32:41.653 60e4 Recovering log #61 -2024/03/08-13:32:41.657 60e4 Delete type=0 #61 -2024/03/08-13:32:41.657 60e4 Delete type=3 #60 +2024/03/08-15:06:29.609 a7e8 Recovering log #65 +2024/03/08-15:06:29.611 a7e8 Delete type=0 #65 +2024/03/08-15:06:29.612 a7e8 Delete type=3 #64 +2024/03/08-16:00:25.521 cb84 Level-0 table #69: started +2024/03/08-16:00:25.521 cb84 Level-0 table #69: 0 bytes OK +2024/03/08-16:00:25.522 cb84 Delete type=0 #67 +2024/03/08-16:00:25.522 cb84 Manual compaction at level-0 from '!items!sV2GWqGVqxfb3PD2' @ 72057594037927935 : 1 .. '!items!sV2GWqGVqxfb3PD2' @ 0 : 0; will stop at (end) diff --git a/packs/items/MANIFEST-000064 b/packs/items/MANIFEST-000070 similarity index 83% rename from packs/items/MANIFEST-000064 rename to packs/items/MANIFEST-000070 index 531322b8f429c3d0fdc865a9c8bb36aa50f385fc..8274448462c278976f874af4d7274f30b297a722 100644 GIT binary patch delta 22 dcmbQqIFoTg7yr8}c5gWt7@6ET8JIm-m;qSj1^55} delta 22 dcmbQqIFoTg7k~XN9X}2RMkYs224*J~W&lba1kwNi diff --git a/packs/monsters/000019.ldb b/packs/monsters/000019.ldb deleted file mode 100644 index 0d19687d5a50250657dff84d8ec0ee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~8(VoPUt<7B1HTKngw~CGO6}=$)aVR46FgVN~45 zs1va@Iy9V(=&2|cH1}>w3g^r>=ynGxT7ssSSnXGq)&8A9y)J3Agwb=F4jZ}-IgydS z8QuKa%#E6=m1$DeXhv#(+6$c4!qA-qmv)u15ZeozL^aWWQh{XJLUPm|@7JqDNHx@J zMA+z)og|6`tHn{};&LLnVWON;n9eDgb`Wz{qTPz8y`*#o<^5J3&?mgng?nrQ>Z}P3 z8}M}k54xb8SI;TF`cww|Q63Lu)qB%k>@$x3oLtA+pe{)i50=$K86F8DBlVt)Y!WwU zYoF_cGk@Ta((#{K;<4uePea=68UzHAP%ar-H9!!+0wL{h4Jh0tqQxmWmF{2&qSh3@ z^6!kj0UD`&mhE85NzFqG_8IWrpz3J;e~PijB+&bC;O35HYeX^!o74YL6x+T{TT5Ez zV?QeB^(2id&uYgX1!}IIG;!S{jV?>UuOQqF{6kN+)K{_~vWWU<bZyolnW8=psk795{>vd?k99Yc+UC!ar14hv1P)?JDm2}3XbrO3c zPe14`|DiCxeC*(T;`I8_m1+gR-WYy41t?Q9SJfYp5kV)D9enmD^H7)AEl$>GfnMB_ zI!;Ay%785^U&t45<*uZl!#gszogcHu(M>xAB@uNO*&Ao(?MbUNF*Z?zr!djIMJ}te zUAyj`ni{hUGE6N}|-|eczg?DvQuRC-(MbDp5q77IOZoXB~*%0IRnYGPFDC1-V(p&JFup zv#to>hPW@jnHJPzPVPdA$px){b}$1V%Zl^r=d+9Dhx%g+=Z$)-MU5II zEu+m~?lA5M>av+h Oo%rt)=WmY>e)oT`eHO3) literal 0 HcmV?d00001 diff --git a/packs/monsters/CURRENT b/packs/monsters/CURRENT index 5d746f2..be93edb 100644 --- a/packs/monsters/CURRENT +++ b/packs/monsters/CURRENT @@ -1 +1 @@ -MANIFEST-000064 +MANIFEST-000071 diff --git a/packs/monsters/LOG b/packs/monsters/LOG index 79332de..965c50f 100644 --- a/packs/monsters/LOG +++ b/packs/monsters/LOG @@ -1,3 +1 @@ -2024/03/08-14:02:24.815 676c Recovering log #63 -2024/03/08-14:02:24.817 676c Delete type=0 #63 -2024/03/08-14:02:24.817 676c Delete type=3 #62 +2024/03/08-16:02:40.564 bf0c Recovering log #68 diff --git a/packs/monsters/LOG.old b/packs/monsters/LOG.old index 1d81c5f..6ccd30d 100644 --- a/packs/monsters/LOG.old +++ b/packs/monsters/LOG.old @@ -1,3 +1,14 @@ -2024/03/08-13:32:41.647 5198 Recovering log #61 -2024/03/08-13:32:41.650 5198 Delete type=0 #61 -2024/03/08-13:32:41.650 5198 Delete type=3 #60 +2024/03/08-15:06:29.603 3708 Recovering log #65 +2024/03/08-15:06:29.605 3708 Delete type=0 #65 +2024/03/08-15:06:29.605 3708 Delete type=3 #64 +2024/03/08-16:00:25.513 cb84 Level-0 table #69: started +2024/03/08-16:00:25.514 cb84 Level-0 table #69: 1821 bytes OK +2024/03/08-16:00:25.515 cb84 Delete type=0 #67 +2024/03/08-16:00:25.518 cb84 Manual compaction at level-0 from '!actors!GuNBsOpZWgJF8PEZ' @ 72057594037927935 : 1 .. '!actors.items!GuNBsOpZWgJF8PEZ.rcEop0TaEm8qlpXt' @ 0 : 0; will stop at '!actors.items!H9MttKr2aT05fSVJ.rcEop0TaEm8qlpXt' @ 4 : 0 +2024/03/08-16:00:25.518 cb84 Compacting 1@0 + 1@1 files +2024/03/08-16:00:25.519 cb84 Generated table #70@0: 3 keys, 1766 bytes +2024/03/08-16:00:25.519 cb84 Compacted 1@0 + 1@1 files => 1766 bytes +2024/03/08-16:00:25.520 cb84 compacted to: files[ 0 1 0 0 0 0 0 ] +2024/03/08-16:00:25.520 cb84 Delete type=2 #19 +2024/03/08-16:00:25.520 cb84 Delete type=2 #69 +2024/03/08-16:00:25.522 cb84 Manual compaction at level-0 from '!actors.items!H9MttKr2aT05fSVJ.rcEop0TaEm8qlpXt' @ 4 : 0 .. '!actors.items!GuNBsOpZWgJF8PEZ.rcEop0TaEm8qlpXt' @ 0 : 0; will stop at (end) diff --git a/packs/monsters/MANIFEST-000064 b/packs/monsters/MANIFEST-000064 deleted file mode 100644 index 64de93b7349191df780d1b8f7e6ee9a7da884faf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 202 zcmd-U=6|t;fss)vC$%g!CnZVGsj?)sJhM2}IX|}`u_&=5zlfE=Trn{j$SBs!EJ@8R zR`js+Eh+IXGD-|FFii^%^U^CycFiv^2uXC!wJ6Lfh$vxXWB>zpM&ai?3Q)}$+8CK3 Xs>n6H{+5m(2LmIMBPRp16ALo{YsWa_ diff --git a/packs/monsters/MANIFEST-000071 b/packs/monsters/MANIFEST-000071 new file mode 100644 index 0000000000000000000000000000000000000000..b34bd4eefc0dabb7533135d4293f387896cb8c3c GIT binary patch literal 202 zcmcb5x!}nb21Z7yoYb<^oRlOzr^=Gl^338?=ltA)#G=HK{32EcbH&7DAfs3>vm`aQ zSkc4Mx1_|o$S5(yz%(s5%uBB**)_kwASBT>*P<||AfkkUg#irM8Qq@oDnKL7F>*pwp_z`Z48wFrc8I>2yIDOr7#Nv6I2o8dSvUb7LOWLg literal 0 HcmV?d00001 diff --git a/packs/spells/CURRENT b/packs/spells/CURRENT index f774e85..717cf9a 100644 --- a/packs/spells/CURRENT +++ b/packs/spells/CURRENT @@ -1 +1 @@ -MANIFEST-000052 +MANIFEST-000058 diff --git a/packs/spells/LOG b/packs/spells/LOG index 53b01a5..e69de29 100644 --- a/packs/spells/LOG +++ b/packs/spells/LOG @@ -1,3 +0,0 @@ -2024/03/08-14:02:24.834 6194 Recovering log #51 -2024/03/08-14:02:24.837 6194 Delete type=0 #51 -2024/03/08-14:02:24.837 6194 Delete type=3 #50 diff --git a/packs/spells/LOG.old b/packs/spells/LOG.old index 163a97d..67c01a3 100644 --- a/packs/spells/LOG.old +++ b/packs/spells/LOG.old @@ -1,3 +1,7 @@ -2024/03/08-13:32:41.669 60e4 Recovering log #49 -2024/03/08-13:32:41.672 60e4 Delete type=0 #49 -2024/03/08-13:32:41.672 60e4 Delete type=3 #48 +2024/03/08-15:06:29.622 a7e8 Recovering log #53 +2024/03/08-15:06:29.625 a7e8 Delete type=0 #53 +2024/03/08-15:06:29.625 a7e8 Delete type=3 #52 +2024/03/08-16:00:25.523 cb84 Level-0 table #57: started +2024/03/08-16:00:25.523 cb84 Level-0 table #57: 0 bytes OK +2024/03/08-16:00:25.524 cb84 Delete type=0 #55 +2024/03/08-16:00:25.526 cb84 Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end) diff --git a/packs/spells/MANIFEST-000052 b/packs/spells/MANIFEST-000052 deleted file mode 100644 index f5940c83f7b0043f6c2b75400a6354afd519878a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 50 zcmWIhx#Ncn10$nUPHI_dPD+xVQ)NkNd1i5{bAE0?Vo_pAe$lIbStSkzMkZ5E24*uB F1_0dm59R;> diff --git a/packs/spells/MANIFEST-000058 b/packs/spells/MANIFEST-000058 new file mode 100644 index 0000000000000000000000000000000000000000..4f362aa33dba8c547a62165d811629955375a032 GIT binary patch literal 50 zcmWIhx#Ncn10$nUPHI_dPD+xVQ)NkNd1i5{bAE0?Vo_pAe$fT>jcgnYj7-*?49qqx F3;^6Q59j~@ literal 0 HcmV?d00001 diff --git a/templates/actor/actor-monster-sheet.hbs b/templates/actor/actor-monster-sheet.hbs index e01e446..2d56cbf 100644 --- a/templates/actor/actor-monster-sheet.hbs +++ b/templates/actor/actor-monster-sheet.hbs @@ -100,7 +100,7 @@ {{#each items as |item id|}}
  • -
    {{item.name}}
    + {{item.name}}
    diff --git a/templates/actor/actor-recruit-sheet.hbs b/templates/actor/actor-recruit-sheet.hbs index 74365cf..64399e2 100644 --- a/templates/actor/actor-recruit-sheet.hbs +++ b/templates/actor/actor-recruit-sheet.hbs @@ -76,7 +76,8 @@
    {{localize "KNAVE2E.HitPoints"}}
    -
    +
    +
    @@ -147,13 +148,13 @@
  • -
    {{#if (eq item.type "weapon")}} - + {{/if}}{{item.name}}
    @@ -165,18 +166,18 @@ {{else}} {{#if (eq item.type "spellbook")}} - + {{/if}}{{item.name}}
    {{else}} - + {{/if}}{{item.name}} {{/if}} {{/if}} @@ -193,6 +194,12 @@ }}> {{/if}} + {{#if (eq item.type "armor")}} + + + {{/if}} {{#if (eq item.type "lightSource")}} diff --git a/templates/actor/parts/actor-character-items.hbs b/templates/actor/parts/actor-character-items.hbs index 38bb5b4..11543ef 100644 --- a/templates/actor/parts/actor-character-items.hbs +++ b/templates/actor/parts/actor-character-items.hbs @@ -44,12 +44,12 @@ {{#each items as |item id|}}
  • -
    {{#if (eq item.type "weapon")}} -
    {{#if item.system.dropped}}({{localize "KNAVE2E.Dropped"}}) - {{/if}}{{item.name}}
    + {{#if item.system.dropped}}({{localize "KNAVE2E.Dropped"}}) + {{/if}}{{item.name}}
    @@ -61,16 +61,16 @@ {{else}} {{#if (eq item.type "spellbook")}} -
    {{#if item.system.dropped}}({{localize "KNAVE2E.Dropped"}}) - {{/if}}{{item.name}}
    + {{#if item.system.dropped}}({{localize "KNAVE2E.Dropped"}}) + {{/if}}{{item.name}}
    {{else}} -
    {{#if item.system.dropped}}({{localize "KNAVE2E.Dropped"}}) - {{/if}}{{item.name}}
    + {{#if item.system.dropped}}({{localize "KNAVE2E.Dropped"}}) + {{/if}}{{item.name}} {{/if}} {{/if}} @@ -88,6 +88,10 @@ {{/if}} + {{#if (eq item.type "armor")}} + + + {{/if}} {{#if (eq item.system.relic.isRelic true)}} diff --git a/templates/item/item-chat-message.hbs b/templates/item/item-chat-message.hbs index c54abda..b138e68 100644 --- a/templates/item/item-chat-message.hbs +++ b/templates/item/item-chat-message.hbs @@ -35,6 +35,4 @@

    {{rolls.[0].total}}

    -{{/if}} - -{{log data}} \ No newline at end of file +{{/if}} \ No newline at end of file