Improve how capacity consumption calculations are performed
This commit is contained in:
parent
cf109a6ed1
commit
aa5c6d5aba
6 changed files with 38 additions and 2 deletions
9
module/documents/Item/Material.mjs
Normal file
9
module/documents/Item/Material.mjs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { DotDungeonItem } from "./GenericItem.mjs";
|
||||
|
||||
export class Material extends DotDungeonItem {
|
||||
get usedCapacity() {
|
||||
let affects = game.settings.get(`dotdungeon`, `materialsAffectCapacity`);
|
||||
console.log(`materialsAffectCapacity =`, affects)
|
||||
return affects ? super.usedCapacity : 0;
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue