#18 Gestion des sort 1+ sans selection

This commit is contained in:
sladecraven 2020-11-14 20:30:30 +01:00
parent d9b27bda0f
commit a7ac184ca3
2 changed files with 4 additions and 1 deletions

View File

@ -98,6 +98,9 @@ export class RdDRollDialog extends Dialog {
rollData.selectedCarac = rollData.carac[rollData.competence.data.defaut_carac]; rollData.selectedCarac = rollData.carac[rollData.competence.data.defaut_carac];
$("#carac").val(rollData.competence.data.defaut_carac); $("#carac").val(rollData.competence.data.defaut_carac);
} }
// Si sort, for les points de reve à 1
if (!rollData.selectedSort.data.ptreve_reel)
rollData.selectedSort.data.ptreve_reel = 1;
$("#bonusmalus").val(rollData.bmValue); $("#bonusmalus").val(rollData.bmValue);
updateRollResult(rollData); updateRollResult(rollData);
}); });

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": "0.9.39", "version": "0.9.40",
"minimumCoreVersion": "0.7.5", "minimumCoreVersion": "0.7.5",
"compatibleCoreVersion": "0.7.6", "compatibleCoreVersion": "0.7.6",
"templateVersion": 44, "templateVersion": 44,