foundryvtt-reve-de-dragon/module/item-plante-sheet.js

26 lines
693 B
JavaScript
Raw Normal View History

2023-01-14 01:15:15 +01:00
import { EnvironmentSheetHelper } from "./environnement.js";
import { RdDItemSheet } from "./item-sheet.js";
export class RdDPlanteItemSheet extends RdDItemSheet {
static get ITEM_TYPE() { return "plante" };
static get defaultOptions() {
return EnvironmentSheetHelper.defaultOptions(super.defaultOptions);
}
setPosition(options = {}) {
return EnvironmentSheetHelper.setPosition(this, super.setPosition(options));
}
async getData() {
const formData = await super.getData();
return await EnvironmentSheetHelper.getData(this, formData);
}
activateListeners(html) {
super.activateListeners(html);
EnvironmentSheetHelper.activateListeners(this);
}
}