#150 : Gestion du cas Thanatos

This commit is contained in:
2021-02-06 23:51:04 +01:00
parent 5cd60ca76a
commit 4b88efa999
5 changed files with 24 additions and 2 deletions

View File

@ -80,6 +80,12 @@ export class RdDItemSheet extends ItemSheet {
// Select competence categorie
html.find("#categorie").on("click", this._onClickSelectCategorie.bind(this) );
html.find('#sheet-competence-xp').change((event) => {
if ( this.object.data.type == 'competence') {
RdDUtility.checkThanatosXP( this.object.data.name );
}
} );
html.find('#creer-tache-livre').click((event) => {
let actorId = event.currentTarget.attributes['data-actor-id'].value;
let actor = game.actors.get( actorId );