This commit is contained in:
Byroks 2024-01-21 17:37:22 +01:00
parent 2afaba9827
commit 50eca41fa6
1 changed files with 2 additions and 2 deletions

View File

@ -457,7 +457,7 @@ export class M5Character extends Actor {
if (!skip?.encumbrance) {
const item = context.items.find((x) => x.name === "Belastung");
if (ret.stats.encumbrance > data.info.heavyLoad) {
if (ret.stats.encumbrance > ret.stats.heavyLoad) {
if (!item) {
this.createEffect("Belastung", [{ id: "movement", operation: M5ModOperation.DIVISION, type: M5ModType.STAT, value: 2 }]);
} else {
@ -467,7 +467,7 @@ export class M5Character extends Actor {
},
});
}
} else if (ret.stats.encumbrance <= data.info.heavyLoad) {
} else if (ret.stats.encumbrance <= ret.stats.heavyLoad) {
if (!!item) {
item.update({
data: {