Correction calendrier pour joueurs

This commit is contained in:
sladecraven 2020-12-21 21:02:24 +01:00
parent 7aa9e197cd
commit 240dc51336
2 changed files with 7 additions and 5 deletions

View File

@ -1015,6 +1015,7 @@ export class RdDActor extends Actor {
this.update( { "data.blessures": blessures } );
}
/* -------------------------------------------- */
async jetDeMoral(situation) {
let jetMoral = new Roll("1d20").roll();
RdDDice.show(jetMoral);
@ -1037,11 +1038,12 @@ export class RdDActor extends Actor {
await this.update( { 'data.compteurs': compteurs} );
}
ChatMessage.create({
whisper: ChatMessage.getWhisperRecipients(game.user.name),
whisper: ChatMessage.getWhisperRecipients(game.user.name).concat(ChatMessage.getWhisperRecipients("GM") ),
content: "Jet de moral ("+ jetMoral.total + ")" + (succes? "réussi": "manqué") + " en situation "+situation+", vous "+(ajustementMoral>0? "gagnez du moral":ajustementMoral<0? "perdez du moral": "gardez votre moral")
});
}
/* -------------------------------------------- */
_calculAjustementMoral(succes, moral, situation)
{
switch (situation) {
@ -1098,7 +1100,7 @@ export class RdDActor extends Actor {
await this.update( { 'data.compteurs.ethylisme': ethylisme} );
const message = {
content: msgText,
whisper: ChatMessage.getWhisperRecipients(game.user.name)
whisper: ChatMessage.getWhisperRecipients(game.user.name).concat(ChatMessage.getWhisperRecipients("GM") )
};
ChatMessage.create(message);
@ -1111,7 +1113,7 @@ export class RdDActor extends Actor {
async stressTest() {
const message = {
content: "",
whisper: ChatMessage.getWhisperRecipients(game.user.name)
whisper: ChatMessage.getWhisperRecipients(game.user.name).concat(ChatMessage.getWhisperRecipients("GM") )
};
await this.transformerStress(message);

View File

@ -2,7 +2,7 @@
"name": "foundryvtt-reve-de-dragon",
"title": "Rêve de Dragon",
"description": "Rêve de Dragon RPG for FoundryVTT",
"version": "1.1.17",
"version": "1.1.18",
"minimumCoreVersion": "0.7.5",
"compatibleCoreVersion": "0.7.8",
"templateVersion": 72,