Moral sur les oeuvres

Simplification de l'appel au moral pour les oeuvres

Ajout de la possibilité d'utiliser le moral sur les oeuvres

Affichage du moral/appel selon la caractéristique
This commit is contained in:
Vincent Vandemeulebrouck
2021-03-16 21:49:21 +01:00
parent dab371578d
commit 98de1a6922
14 changed files with 199 additions and 178 deletions

View File

@ -489,15 +489,15 @@ export class RdDActorSheet extends ActorSheet {
this.actor.transformerStress();
this.render(true);
});
html.find('#moral-malheureux').click((event) => {
html.find('.moral-malheureux').click((event) => {
this.actor.jetDeMoral('malheureuse');
this.render(true);
});
html.find('#moral-neutre').click((event) => {
html.find('.moral-neutre').click((event) => {
this.actor.jetDeMoral('neutre');
this.render(true);
});
html.find('#moral-heureux').click((event) => {
html.find('.moral-heureux').click((event) => {
this.actor.jetDeMoral('heureuse');
this.render(true);
});