Nouvelles corrections sur la fiche

This commit is contained in:
2026-03-06 13:34:18 +01:00
parent b9db8eb2fc
commit 4f15f0cc4c
15 changed files with 204 additions and 55 deletions
@@ -0,0 +1,28 @@
import AwEItemSheet from "./base-item-sheet.mjs"
import { SYSTEM } from "../../config/system.mjs"
export default class AwESpecializationSheet extends AwEItemSheet {
/** @override */
static DEFAULT_OPTIONS = {
classes: ["specialization"],
position: { width: 620 },
window: { contentClasses: ["specialization-content"] }
}
/** @override */
static PARTS = {
main: {
template: "systems/fvtt-adventures-with-emmy/templates/specialization.hbs"
}
}
/** @override */
async _prepareContext(options) {
const context = await super._prepareContext(options)
context.attributeChoices = {
"": "—",
...Object.fromEntries(Object.values(SYSTEM.ATTRIBUTES).map(a => [a.id, game.i18n.localize(a.label)]))
}
return context
}
}