From 6198146c6cbcbdbf06ea496812e7e554b89f5d6c Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Fri, 19 Apr 2024 19:06:15 -0600 Subject: [PATCH] Make it so that Materials can only be in unknown location or your inventory --- module/documents/Item/Material.mjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/module/documents/Item/Material.mjs b/module/documents/Item/Material.mjs index 15d2a58..c6c5b72 100644 --- a/module/documents/Item/Material.mjs +++ b/module/documents/Item/Material.mjs @@ -5,4 +5,11 @@ export class Material extends DotDungeonItem { let affects = game.settings.get(`dotdungeon`, `materialsAffectCapacity`); return affects ? super.usedCapacity : 0; }; + + get availableLocations() { + return [ + { value: null, label: `dotdungeon.location.unknown` }, + { value: `inventory`, label: `dotdungeon.location.inventory` }, + ]; + }; };