From c540b17e709caed435e77c41a0f678934ff2c282 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnier Date: Sat, 28 Mar 2026 20:47:39 +0100 Subject: [PATCH] =?UTF-8?q?Suppression=20du=20champ=20R=C3=A9f=C3=A9rence?= =?UTF-8?q?=20(page)=20de=20tous=20les=20items?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - templates : anomaly.hbs, aspect.hbs, attribute.hbs, equipment.hbs Suppression du form-group 'reference' dans l'onglet description - module/models/items.mjs : suppression du StringField 'reference' dans CelestopolAnomaly, CelestopolAspect, CelestopolAttribute, CelestopolEquipment - lang/fr.json : suppression de la clé CELESTOPOL.Item.reference Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- lang/fr.json | 1 - module/models/items.mjs | 4 ---- templates/anomaly.hbs | 5 ----- templates/aspect.hbs | 5 ----- templates/attribute.hbs | 5 ----- templates/equipment.hbs | 4 ---- 6 files changed, 24 deletions(-) diff --git a/lang/fr.json b/lang/fr.json index d732b55..6371902 100644 --- a/lang/fr.json +++ b/lang/fr.json @@ -163,7 +163,6 @@ "newEquipment": "Nouvel équipement", "value": "Valeur", "scores": "Scores bonus / malus", - "reference": "Référence (page)", "technique": "Description technique", "narratif": "Description narrative", "quantity": "Quantité", diff --git a/module/models/items.mjs b/module/models/items.mjs index 1fde29e..b1f4b3f 100644 --- a/module/models/items.mjs +++ b/module/models/items.mjs @@ -35,7 +35,6 @@ export class CelestopolAnomaly extends foundry.abstract.TypeDataModel { choices: Object.keys(SYSTEM.ANOMALY_TYPES) }), level: new fields.NumberField({ ...reqInt, initial: 2, min: 1, max: 4 }), usesRemaining: new fields.NumberField({ ...reqInt, initial: 2, min: 0, max: 4 }), - reference: new fields.StringField({ required: true, nullable: false, initial: "" }), description: new fields.HTMLField({ required: true, textSearch: true }), technique: new fields.HTMLField({ required: true, textSearch: true }), narratif: new fields.HTMLField({ required: true, textSearch: true }), @@ -49,7 +48,6 @@ export class CelestopolAspect extends foundry.abstract.TypeDataModel { const reqInt = { required: true, nullable: false, integer: true } return { value: new fields.NumberField({ ...reqInt, initial: 0, min: 0, max: 8 }), - reference: new fields.StringField({ required: true, nullable: false, initial: "" }), scores: skillScoresSchema(), description: new fields.HTMLField({ required: true, textSearch: true }), technique: new fields.HTMLField({ required: true, textSearch: true }), @@ -65,7 +63,6 @@ export class CelestopolAttribute extends foundry.abstract.TypeDataModel { const reqInt = { required: true, nullable: false, integer: true } return { value: new fields.NumberField({ ...reqInt, initial: 0, min: 0, max: 8 }), - reference: new fields.StringField({ required: true, nullable: false, initial: "" }), scores: skillScoresSchema(), description: new fields.HTMLField({ required: true, textSearch: true }), technique: new fields.HTMLField({ required: true, textSearch: true }), @@ -82,7 +79,6 @@ export class CelestopolEquipment extends foundry.abstract.TypeDataModel { return { subtype: new fields.StringField({ required: true, nullable: false, initial: "autre", choices: Object.keys(SYSTEM.EQUIPMENT_TYPES) }), - reference: new fields.StringField({ required: true, nullable: false, initial: "" }), quantity: new fields.NumberField({ ...reqInt, initial: 1, min: 0 }), weight: new fields.NumberField({ required: true, nullable: false, initial: 0, min: 0 }), damage: new fields.StringField({ required: true, nullable: false, initial: "" }), diff --git a/templates/anomaly.hbs b/templates/anomaly.hbs index 6cc27a6..54ba7a9 100644 --- a/templates/anomaly.hbs +++ b/templates/anomaly.hbs @@ -62,11 +62,6 @@
{{editor system.description target="system.description" button=true editable=isEditable}}
-
- - -
diff --git a/templates/aspect.hbs b/templates/aspect.hbs index 5803f50..4ac4717 100644 --- a/templates/aspect.hbs +++ b/templates/aspect.hbs @@ -28,11 +28,6 @@
{{editor system.description target="system.description" button=true editable=isEditable}}
-
- - -
diff --git a/templates/attribute.hbs b/templates/attribute.hbs index 0632384..6c0548c 100644 --- a/templates/attribute.hbs +++ b/templates/attribute.hbs @@ -28,11 +28,6 @@
{{editor system.description target="system.description" button=true editable=isEditable}}
-
- - -
diff --git a/templates/equipment.hbs b/templates/equipment.hbs index 035b864..4c91cac 100644 --- a/templates/equipment.hbs +++ b/templates/equipment.hbs @@ -51,8 +51,4 @@
{{editor system.description target="system.description" button=true editable=isEditable}}
-
- - -