Fix edit objets d'un véhicule
Nommage des events homogène
This commit is contained in:
@ -56,15 +56,15 @@ export class RdDActorCreatureSheet extends RdDActorSheet {
|
||||
if (!this.options.editable) return;
|
||||
|
||||
// On competence change
|
||||
html.find('.creature-carac').change((event) => {
|
||||
html.find('.creature-carac').change(async event => {
|
||||
let compName = event.currentTarget.attributes.compname.value;
|
||||
this.actor.updateCreatureCompetence(compName, "carac_value", parseInt(event.target.value));
|
||||
});
|
||||
html.find('.creature-niveau').change((event) => {
|
||||
html.find('.creature-niveau').change(async event => {
|
||||
let compName = event.currentTarget.attributes.compname.value;
|
||||
this.actor.updateCreatureCompetence(compName, "niveau", parseInt(event.target.value));
|
||||
});
|
||||
html.find('.creature-dommages').change((event) => {
|
||||
html.find('.creature-dommages').change(async event => {
|
||||
let compName = event.currentTarget.attributes.compname.value;
|
||||
this.actor.updateCreatureCompetence(compName, "dommages", parseInt(event.target.value));
|
||||
});
|
||||
|
Reference in New Issue
Block a user