Correction calendrier pour joueurs
This commit is contained in:
parent
7aa9e197cd
commit
240dc51336
@ -1014,7 +1014,8 @@ export class RdDActor extends Actor {
|
|||||||
|
|
||||||
this.update( { "data.blessures": blessures } );
|
this.update( { "data.blessures": blessures } );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
async jetDeMoral(situation) {
|
async jetDeMoral(situation) {
|
||||||
let jetMoral = new Roll("1d20").roll();
|
let jetMoral = new Roll("1d20").roll();
|
||||||
RdDDice.show(jetMoral);
|
RdDDice.show(jetMoral);
|
||||||
@ -1037,11 +1038,12 @@ export class RdDActor extends Actor {
|
|||||||
await this.update( { 'data.compteurs': compteurs} );
|
await this.update( { 'data.compteurs': compteurs} );
|
||||||
}
|
}
|
||||||
ChatMessage.create({
|
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")
|
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)
|
_calculAjustementMoral(succes, moral, situation)
|
||||||
{
|
{
|
||||||
switch (situation) {
|
switch (situation) {
|
||||||
@ -1098,7 +1100,7 @@ export class RdDActor extends Actor {
|
|||||||
await this.update( { 'data.compteurs.ethylisme': ethylisme} );
|
await this.update( { 'data.compteurs.ethylisme': ethylisme} );
|
||||||
const message = {
|
const message = {
|
||||||
content: msgText,
|
content: msgText,
|
||||||
whisper: ChatMessage.getWhisperRecipients(game.user.name)
|
whisper: ChatMessage.getWhisperRecipients(game.user.name).concat(ChatMessage.getWhisperRecipients("GM") )
|
||||||
};
|
};
|
||||||
ChatMessage.create(message);
|
ChatMessage.create(message);
|
||||||
|
|
||||||
@ -1111,7 +1113,7 @@ export class RdDActor extends Actor {
|
|||||||
async stressTest() {
|
async stressTest() {
|
||||||
const message = {
|
const message = {
|
||||||
content: "",
|
content: "",
|
||||||
whisper: ChatMessage.getWhisperRecipients(game.user.name)
|
whisper: ChatMessage.getWhisperRecipients(game.user.name).concat(ChatMessage.getWhisperRecipients("GM") )
|
||||||
};
|
};
|
||||||
await this.transformerStress(message);
|
await this.transformerStress(message);
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "foundryvtt-reve-de-dragon",
|
"name": "foundryvtt-reve-de-dragon",
|
||||||
"title": "Rêve de Dragon",
|
"title": "Rêve de Dragon",
|
||||||
"description": "Rêve de Dragon RPG for FoundryVTT",
|
"description": "Rêve de Dragon RPG for FoundryVTT",
|
||||||
"version": "1.1.17",
|
"version": "1.1.18",
|
||||||
"minimumCoreVersion": "0.7.5",
|
"minimumCoreVersion": "0.7.5",
|
||||||
"compatibleCoreVersion": "0.7.8",
|
"compatibleCoreVersion": "0.7.8",
|
||||||
"templateVersion": 72,
|
"templateVersion": 72,
|
||||||
|
Loading…
Reference in New Issue
Block a user