Suppression item Attribut : redondant avec le DataModel personnage
- DataModel CelestopolAttribute supprimé (items.mjs) - CelestopolAttributeSheet supprimée (item-sheets.mjs) - Imports/registrations retirés (fvtt-celestopol.mjs) - Section 'Attributs' supprimée de character-competences.hbs - Action createAttribute + contexte attributes retirés (character-sheet.mjs) - Template attribute.hbs supprimé - Clés i18n attribute/attributes/newAttribute supprimées (fr.json) - Type 'attribute' retiré des htmlFields (system.json) - htmlFields anomaly corrigés : technique/narratif/exemples Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
export { default as CelestopolCharacter } from "./character.mjs"
|
||||
export { default as CelestopolNPC } from "./npc.mjs"
|
||||
export { CelestopolAnomaly, CelestopolAspect, CelestopolAttribute, CelestopolEquipment } from "./items.mjs"
|
||||
export { CelestopolAnomaly, CelestopolAspect, CelestopolEquipment } from "./items.mjs"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { SYSTEM } from "../config/system.mjs"
|
||||
|
||||
/** Schéma partagé pour les bonus/malus par domaine (utilisé dans anomaly/aspect/attribute). */
|
||||
/** Schéma partagé pour les bonus/malus par domaine (utilisé dans anomaly/aspect). */
|
||||
function skillScoresSchema() {
|
||||
const fields = foundry.data.fields
|
||||
const reqInt = { required: true, nullable: false, integer: true }
|
||||
@@ -57,21 +57,6 @@ export class CelestopolAspect extends foundry.abstract.TypeDataModel {
|
||||
}
|
||||
}
|
||||
|
||||
export class CelestopolAttribute extends foundry.abstract.TypeDataModel {
|
||||
static defineSchema() {
|
||||
const fields = foundry.data.fields
|
||||
const reqInt = { required: true, nullable: false, integer: true }
|
||||
return {
|
||||
value: new fields.NumberField({ ...reqInt, initial: 0, min: 0, max: 8 }),
|
||||
scores: skillScoresSchema(),
|
||||
description: new fields.HTMLField({ required: true, textSearch: true }),
|
||||
technique: new fields.HTMLField({ required: true, textSearch: true }),
|
||||
narratif: new fields.HTMLField({ required: true, textSearch: true }),
|
||||
notes: new fields.HTMLField({ required: true, textSearch: true }),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export class CelestopolEquipment extends foundry.abstract.TypeDataModel {
|
||||
static defineSchema() {
|
||||
const fields = foundry.data.fields
|
||||
|
||||
Reference in New Issue
Block a user