Add the ability to create custom items
This commit is contained in:
parent
23dd021df6
commit
83039c6144
9 changed files with 118 additions and 4 deletions
21
module/sheets/Items/CustomItemSheet.mjs
Normal file
21
module/sheets/Items/CustomItemSheet.mjs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import { GenericItemSheet } from "./GenericItemSheet.mjs";
|
||||
|
||||
export class CustomItemSheet extends GenericItemSheet {
|
||||
static get defaultOptions() {
|
||||
let opts = mergeObject(
|
||||
super.defaultOptions,
|
||||
{
|
||||
template: `systems/dotdungeon/templates/items/custom.hbs`,
|
||||
width: 280,
|
||||
height: 340,
|
||||
}
|
||||
);
|
||||
opts.classes.push(`dotdungeon`);
|
||||
return opts;
|
||||
};
|
||||
|
||||
async getData() {
|
||||
const ctx = await super.getData();
|
||||
return ctx;
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue