fixe des hexa
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user