- Profils raciaux appliqués automatiquement - DsN opératonnel - Gestion plus fine des fils/orbes

This commit is contained in:
2026-05-04 08:09:27 +02:00
parent 320b2941dc
commit 3534bdf181
68 changed files with 2199 additions and 24 deletions
+6
View File
@@ -97,6 +97,12 @@ export class LesOubliesUtility {
return [...documents].sort((left, right) => left.name.localeCompare(right.name, "fr"))
}
static uniqueStrings(values = []) {
return [...new Set((Array.isArray(values) ? values : [])
.map((value) => String(value ?? "").trim())
.filter(Boolean))]
}
static async prepareEnrichedHtml(documentName, type, systemData) {
const htmlFields = game.system.documentTypes?.[documentName]?.[type]?.htmlFields ?? []
const enriched = {}