#158 : Gestion de l'armure sur la fenêtre d'encaissement

This commit is contained in:
2021-02-17 14:52:50 +01:00
parent 1cdadbd9d6
commit 155990610a
3 changed files with 28 additions and 11 deletions

View File

@ -29,6 +29,7 @@ export class RdDEncaisser extends Dialog {
this.actor = actor;
this.modifier = 0;
this.encaisserSpecial = "aucun";
}
/* -------------------------------------------- */
@ -36,6 +37,7 @@ export class RdDEncaisser extends Dialog {
this.actor.encaisserDommages({
dmg:{
total: Number(this.modifier),
encaisserSpecial: this.encaisserSpecial,
loc: { result: 0, label: "Corps" },
mortalite: mortalite
}
@ -54,6 +56,9 @@ export class RdDEncaisser extends Dialog {
html.find('#modificateurDegats').change((event) => {
this.modifier = event.currentTarget.value; // Update the selected bonus/malus
});
html.find('#encaisserSpecial').change((event) => {
this.encaisserSpecial = event.currentTarget.value; // Update the selected bonus/malus
});
}
}