feat: ajoute le champ 'valeur' sur l'item Aspect
- DataModel : champ NumberField 'valeur' (entier, min 0, défaut 0) - Fiche item aspect.hbs : champ valeur dans le header - Fiche personnage : affiche item.system.valeur dans la liste des aspects - CSS : .item-value dans cel-item-row (vert, gras) ; .item-header-valeur dans items.less - i18n : CELESTOPOL.Aspect.valeur Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -46,6 +46,7 @@ export class CelestopolAspect extends foundry.abstract.TypeDataModel {
|
||||
static defineSchema() {
|
||||
const fields = foundry.data.fields
|
||||
return {
|
||||
valeur: new fields.NumberField({ required: true, integer: true, initial: 0, min: 0 }),
|
||||
description: new fields.HTMLField({ required: true, textSearch: true }),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user