Migration datamodels !
This commit is contained in:
@@ -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)
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user