diff --git a/source/module/actors/M5Character.ts b/source/module/actors/M5Character.ts index 716e3c1..0f07a15 100644 --- a/source/module/actors/M5Character.ts +++ b/source/module/actors/M5Character.ts @@ -464,40 +464,40 @@ export class M5Character extends Actor { }; }); - const item = context.items.filter((x) => x.name === "Belastung"); - if (item.length === 0) { - this.createEffect("Belastung", [ - { id: "movement", operation: M5ModOperation.DIVISION, type: M5ModType.STAT, value: 2 }, - { id: "attackBonus", operation: M5ModOperation.SUBTRACT, type: M5ModType.STAT, value: 4 }, - { id: "defenseBonus", operation: M5ModOperation.SUBTRACT, type: M5ModType.STAT, value: 4 } - ]); - } else if (item.length === 2) { - item[1]?.delete(); - } - - if (item.length === 1) { - item[0]?.update({ - img: "icons/containers/bags/sack-simple-leather-orange.webp" }); - } - - if (ret.stats.encumbrance <= ret.stats.heavyLoad) { - item[0]?.update({ - data: { - equipped: false, - } - }); - } - - if (!skip?.encumbrance) { - if (ret.stats.encumbrance > ret.stats.heavyLoad) { - item[0].update({ - data: { - equipped: true, - }, - }); - } - } - } + //if (!skip?.encumbrance) { + //const item = context.items.filter((x) => x.name === "Belastung"); + //if (item.length === 0) { + // this.createEffect("Belastung", [ + // { id: "movement", operation: M5ModOperation.DIVISION, type: M5ModType.STAT, value: 2 }, + // { id: "attackBonus", operation: M5ModOperation.SUBTRACT, type: M5ModType.STAT, value: 4 }, + // { id: "defenseBonus", operation: M5ModOperation.SUBTRACT, type: M5ModType.STAT, value: 4 } + // ]); + //} else if (item.length === 2) { + // item[1]?.delete(); + //} + // + //if (item.length === 1) { + // item[0]?.update({ + // img: "icons/containers/bags/sack-simple-leather-orange.webp" }); + // } + // + //if (ret.stats.encumbrance <= ret.stats.heavyLoad) { + // item[0]?.update({ + // data: { + // equipped: false, + // } + // }); + // } + // + //if (ret.stats.encumbrance > ret.stats.heavyLoad) { + // item[0].update({ + // data: { + // equipped: true, + // }, + // }); + // } + //} + } if (!skip?.effects) { context.items diff --git a/templates/sheets/character/effects.hbs b/templates/sheets/character/effects.hbs index 931816c..1d06a1b 100644 --- a/templates/sheets/character/effects.hbs +++ b/templates/sheets/character/effects.hbs @@ -20,9 +20,9 @@ {{/unless}} {{/if}} - {{#unless (eq item.label "Belastung")}} + {{!--{{#unless (eq item.label "Belastung")}}--}} - {{/unless}} + {{!--{{/unless}}--}} {{/each}}