Autoformat

This commit is contained in:
Vincent Vandemeulebrouck
2022-01-01 14:01:41 +01:00
parent 25420cb481
commit bb1d03c8a4
6 changed files with 24 additions and 23 deletions

View File

@ -80,7 +80,7 @@ export class RdDActorSheet extends ActorSheet {
formData.competences.forEach(item => {
item.visible = this.options.cherchercompetence
? RdDItemCompetence.nomContientTexte(item, this.options.cherchercompetence)
: ( !this.options.showCompNiveauBase || !RdDItemCompetence.isNiveauBase(item) );
: (!this.options.showCompNiveauBase || !RdDItemCompetence.isNiveauBase(item));
RdDItemCompetence.levelUp(item, formData.data.compteurs.experience.value);
});
@ -135,6 +135,7 @@ export class RdDActorSheet extends ActorSheet {
this.actor.addSubacteur(dragData.id || dragData.data._id);
super._onDropActor(event, dragData);
}
/* -------------------------------------------- */
async _onDropItem(event, dragData) {
const destItemId = RdDSheetUtility.getItemId(event);
@ -215,7 +216,7 @@ export class RdDActorSheet extends ActorSheet {
this.createEmptyTache();
});
html.find('.creer-un-objet').click(async event => {
RdDUtility.selectObjetType( this );
RdDUtility.selectObjetType(this);
});
html.find('.creer-une-oeuvre').click(async event => {
RdDUtility.selectTypeOeuvre(this);
@ -324,7 +325,7 @@ export class RdDActorSheet extends ActorSheet {
// Roll Weapon1
html.find('.arme-label a').click(async event => {
let arme = this._getEventArmeCombat(event);
this.actor.rollArme( duplicate(arme) );
this.actor.rollArme(duplicate(arme));
});
// Initiative pour l'arme
html.find('.arme-initiative a').click(async event => {
@ -410,7 +411,7 @@ export class RdDActorSheet extends ActorSheet {
this.actor.updateCompetenceArchetype(compName, parseInt(event.target.value));
});
}
html.find('.show-hide-competences').click(async event => {
this.options.showCompNiveauBase = !this.options.showCompNiveauBase;
this.render(true);