Séparation ingrédients/plantes

This commit is contained in:
2023-01-14 01:15:15 +01:00
parent 162a6a04b8
commit a4802d1113
9 changed files with 131 additions and 37 deletions

View File

@@ -0,0 +1,25 @@
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);
}
}