Ajouter de "jet de dés" dans les descriptions,

On peut maintenant ajouter des liens dans les descriptions
(acteurs, items) et autres champs similaires.
This commit is contained in:
2025-01-11 00:44:59 +01:00
parent 785bd4b9ce
commit b87f406093
15 changed files with 169 additions and 68 deletions

View File

@ -19,6 +19,7 @@ import { RdDBaseActorSangSheet } from "./actor/base-actor-sang-sheet.js";
import { RdDCoeur } from "./coeur/rdd-coeur.js";
import { AppPersonnageAleatoire } from "./actor/random/app-personnage-aleatoire.js";
import { RdDItemRace } from "./item/race.js";
import { RdDTextEditor } from "./apps/rdd-text-roll.js";
/* -------------------------------------------- */
/**
@ -44,8 +45,8 @@ export class RdDActorSheet extends RdDBaseActorSangSheet {
cssClass: this.isEditable ? "editable" : "locked",
limited: this.actor.limited,
owner: this.actor.isOwner,
biographie: await TextEditor.enrichHTML(this.actor.system.biographie, { async: true }),
notes: await TextEditor.enrichHTML(this.actor.system.notes, { async: true }),
biographie: await RdDTextEditor.enrichHTML(this.actor.system.biographie),
notes: await RdDTextEditor.enrichHTML(this.actor.system.notes),
});
foundry.utils.mergeObject(formData.calc, {
surenc: this.actor.computeMalusSurEncombrement(),