Migration datamodels !

This commit is contained in:
2026-01-11 22:40:06 +01:00
parent 8d3fdbd009
commit fc7c51e369
238 changed files with 16947 additions and 2539 deletions

View File

@@ -156,7 +156,7 @@ export class YggdrasillUtility {
console.log("ROLLLL ATTR!!!!", rollData);
this.createChatWithRollMode( rollData.alias, {
content: await foundry.applications.handlebars.renderTemplate(`systems/fvtt-yggdrasill/templates/chat-generic-result.html`, rollData)
content: await foundry.applications.handlebars.renderTemplate(`systems/fvtt-yggdrasill/templates/chat-generic-result-new.hbs`, rollData)
});
}
@@ -218,9 +218,14 @@ export class YggdrasillUtility {
rollData.niveauCompetence = niveauCompetence
// Compute total SR
rollData.srFinal = rollData.sr;
if ( rollData.bonusdefense ) {
rollData.srFinal += rollData.bonusdefense;
// Pour les sorts, utiliser srTotal si calculé, sinon sr + bonusdefense
if (rollData.srTotal !== undefined) {
rollData.srFinal = rollData.srTotal
} else {
rollData.srFinal = rollData.sr
if (rollData.bonusdefense) {
rollData.srFinal += rollData.bonusdefense
}
}
if ( rollData.srFinal > 0 ) {
@@ -272,7 +277,7 @@ export class YggdrasillUtility {
console.log("ROLLLL!!!!", rollData);
this.createChatWithRollMode( rollData.alias, {
content: await renderTemplate(`systems/fvtt-yggdrasill/templates/chat-generic-result.html`, rollData)
content: await foundry.applications.handlebars.renderTemplate(`systems/fvtt-yggdrasill/templates/chat-generic-result-new.hbs`, rollData)
});
}