Corrections sur echec total en sort

This commit is contained in:
sladecraven 2020-12-30 11:51:37 +01:00
parent d3ede537a8
commit a8ba245495
2 changed files with 2 additions and 2 deletions

View File

@ -1292,7 +1292,7 @@ export class RdDActor extends Actor {
} }
} else { } else {
if (rolled.isETotal) { // Echec total ! if (rolled.isETotal) { // Echec total !
depenseReve = Math.max(myReve.value, Math.floor(depenseReve * 1.5)) depenseReve = Math.min(myReve.value, Math.floor(depenseReve * 1.5))
explications += "<br><strong>Echec TOTAL</strong> du sort : " + depenseReve + " Points de Rêve"; explications += "<br><strong>Echec TOTAL</strong> du sort : " + depenseReve + " Points de Rêve";
// TODO: mise en réserve d'un échec total... // TODO: mise en réserve d'un échec total...
} else { } else {

View File

@ -2,7 +2,7 @@
"name": "foundryvtt-reve-de-dragon", "name": "foundryvtt-reve-de-dragon",
"title": "Rêve de Dragon", "title": "Rêve de Dragon",
"description": "Rêve de Dragon RPG for FoundryVTT", "description": "Rêve de Dragon RPG for FoundryVTT",
"version": "1.1.23", "version": "1.1.24",
"minimumCoreVersion": "0.7.5", "minimumCoreVersion": "0.7.5",
"compatibleCoreVersion": "0.7.8", "compatibleCoreVersion": "0.7.8",
"templateVersion": 72, "templateVersion": 72,