2022-12-03 01:21:30 +01:00
|
|
|
import { EnvironmentSheetHelper } from "./environnement.js";
|
|
|
|
import { RdDItemSheet } from "./item-sheet.js";
|
2022-11-28 11:31:19 +01:00
|
|
|
|
2022-12-03 01:21:30 +01:00
|
|
|
export class RdDHerbeItemSheet extends RdDItemSheet {
|
2022-11-28 11:31:19 +01:00
|
|
|
|
2022-12-03 18:29:29 +01:00
|
|
|
static get ITEM_TYPE() { return "herbe" };
|
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 = {}) {
|
2022-12-03 01:21:30 +01:00
|
|
|
return EnvironmentSheetHelper.setPosition(this, super.setPosition(options));
|
2022-11-28 11:31:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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-03 01:21:30 +01:00
|
|
|
EnvironmentSheetHelper.activateListeners(this, html);
|
2022-11-28 11:31:19 +01:00
|
|
|
}
|
|
|
|
}
|