WIP
This commit is contained in:
parent
2afaba9827
commit
50eca41fa6
|
|
@ -457,7 +457,7 @@ export class M5Character extends Actor {
|
||||||
|
|
||||||
if (!skip?.encumbrance) {
|
if (!skip?.encumbrance) {
|
||||||
const item = context.items.find((x) => x.name === "Belastung");
|
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) {
|
if (!item) {
|
||||||
this.createEffect("Belastung", [{ id: "movement", operation: M5ModOperation.DIVISION, type: M5ModType.STAT, value: 2 }]);
|
this.createEffect("Belastung", [{ id: "movement", operation: M5ModOperation.DIVISION, type: M5ModType.STAT, value: 2 }]);
|
||||||
} else {
|
} 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) {
|
if (!!item) {
|
||||||
item.update({
|
item.update({
|
||||||
data: {
|
data: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue