Créer des plats cuisinés

Lors de l'exécution d'une recette de cuisine, permettre l'ajout d'un
plat à l'équipement
This commit is contained in:
Vincent Vandemeulebrouck
2021-04-08 20:36:02 +02:00
parent dcdfa357c1
commit 8bbf40a84b
7 changed files with 95 additions and 52 deletions

View File

@ -223,12 +223,13 @@ export class RdDRoll extends Dialog {
this.rollData.tactique = event.currentTarget.value;
this.updateRollResult();
});
html.find('#useMalusSurenc').change((event) => {
this.rollData.useMalusSurenc = event.currentTarget.checked;
html.find('.cuisine-proportions').change((event) => {
this.rollData.proportions = Number(event.currentTarget.value);
this.updateRollResult();
});
html.find('#useMalusEncTotal').change((event) => {
this.rollData.useMalusEncTotal = event.currentTarget.checked;
html.find('.checkbox-by-name').change((event) => {
const attribute = event.currentTarget.attributes['name'].value;
this.rollData[attribute] = event.currentTarget.checked;
this.updateRollResult();
});
html.find('.imgAppelAuMoral').click((event) => { /* l'appel au moral, qui donne un bonus de +1 */