2022-11-28 11:31:19 +01:00
|
|
|
import { EnvironmentSheetHelper } from "./environnement.js";
|
2022-12-03 01:21:30 +01:00
|
|
|
import { RdDItemSheet } from "./item-sheet.js";
|
2022-11-28 11:31:19 +01:00
|
|
|
|
2022-12-03 01:21:30 +01:00
|
|
|
export class RdDIngredientItemSheet extends RdDItemSheet {
|
2022-11-28 11:31:19 +01:00
|
|
|
|
2022-12-03 18:29:29 +01:00
|
|
|
static get ITEM_TYPE() { return "ingredient" };
|
2022-11-28 11:31:19 +01:00
|
|
|
|
|
|
|
static get defaultOptions() {
|
2022-12-03 18:29:29 +01:00
|
|
|
return EnvironmentSheetHelper.defaultOptions(super.defaultOptions);
|
2022-11-28 11:31:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
setPosition(options = {}) {
|
|
|
|
return EnvironmentSheetHelper.setPosition(this, super.setPosition(options));
|
|
|
|
}
|
|
|
|
|
|
|
|
async getData() {
|
2022-12-03 01:21:30 +01:00
|
|
|
const formData = await super.getData();
|
|
|
|
return await EnvironmentSheetHelper.getData(this, formData);
|
2022-11-28 11:31:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
activateListeners(html) {
|
|
|
|
super.activateListeners(html);
|
2022-12-09 02:00:31 +01:00
|
|
|
EnvironmentSheetHelper.activateListeners(this);
|
2022-11-28 11:31:19 +01:00
|
|
|
}
|
|
|
|
}
|