REFACTOR: rename folder data/items -> data/item

REFACTOR: rename folder `data/messages` -> `data/chat-message`.
This commit is contained in:
Joaquin Pereyra 2025-06-02 18:00:04 -03:00
parent a6acbe750a
commit 08a21dcb2f
19 changed files with 25 additions and 16 deletions

View file

@ -0,0 +1,22 @@
import BaseDataItem from "./base.mjs";
export default class DHConsumable extends BaseDataItem {
/** @inheritDoc */
static get metadata() {
return foundry.utils.mergeObject(super.metadata, {
label: "TYPES.Item.consumable",
type: "consumable",
hasDescription: true,
isQuantifiable: true,
});
}
/** @inheritDoc */
static defineSchema() {
const fields = foundry.data.fields;
return {
...super.defineSchema(),
consumeOnUse: new fields.BooleanField({ initial: false })
};
}
}