fixe des hexa

This commit is contained in:
rwanoux
2024-05-14 09:24:49 +02:00
parent 682c4a963a
commit ff03badcdd
11 changed files with 49 additions and 53 deletions
+3 -3
View File
@@ -94,18 +94,18 @@ export class VermineActorSheet extends ActorSheet {
//click on wound radio
html.find('.hexa [type="radio"]').change(ev => {
ev.preventDefault()
console.log(ev.target.checked , "CHECK______________________")
console.log(ev.target.checked, "CHECK______________________")
return this._onClickRadioHexa(ev)
})
}
_onClickRadioHexa(ev) {
console.log("________________iiiiiii")
if (!ev.currentTarget.checked) { return false};
if (!ev.currentTarget.checked) { return false };
ev.preventDefault();
let prop = ev.currentTarget.name;
let update = {};
update[prop] = ev.currentTarget.value-1
update[prop] = ev.currentTarget.value - 1
return this.actor.update(update)