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:
2026-03-29 19:10:42 +02:00
parent a5f0224b65
commit d5488516c4
6 changed files with 39 additions and 1 deletions

View File

@@ -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 }),
}
}