forked from public/foundryvtt-reve-de-dragon
Ajout bouton augmenter niveau
This commit is contained in:
@ -440,7 +440,15 @@ export class RdDActorSheet extends ActorSheet {
|
||||
RdDUtility.toggleAfficheContenu(myID);
|
||||
this.render(true);
|
||||
});
|
||||
|
||||
html.find('.carac-xp-augmenter').click((event) => {
|
||||
let caracName = event.currentTarget.name.replace("augmenter.", "");
|
||||
this.actor.updateCaracXPAuto(caracName);
|
||||
});
|
||||
html.find('.competence-xp-augmenter').click((event) => {
|
||||
let compName = event.currentTarget.attributes.compname.value;
|
||||
this.actor.updateCompetenceXPAuto(compName);
|
||||
});
|
||||
|
||||
if (this.options.editCaracComp) {
|
||||
// On carac change
|
||||
html.find('.carac-value').change((event) => {
|
||||
|
Reference in New Issue
Block a user