V11.0.11 - Les bleus de Khrachtchoum le Problémeux #659

Merged
uberwald merged 3 commits from VincentVk/foundryvtt-reve-de-dragon:v11 into v11 2023-06-25 09:48:18 +02:00
Showing only changes of commit 34b5df637f - Show all commits

View File

@ -387,6 +387,14 @@ export class RdDActor extends RdDBaseActor {
await this.distribuerStress('stress', consigne.stress.valeur, consigne.stress.motif); await this.distribuerStress('stress', consigne.stress.valeur, consigne.stress.motif);
} }
await this.update({ 'system.sommeil': consigne.sommeil }) await this.update({ 'system.sommeil': consigne.sommeil })
const player = this.findPlayer();
if (player) {
ChatUtility.notifyUser(player.id, 'info', `Vous pouvez gérer la nuit de ${this.name}`);
}
}
findPlayer() {
return game.users.players.find(player => player.active && player.character?.id == this.id);
} }
async onTimeChanging(oldTimestamp, newTimestamp) { async onTimeChanging(oldTimestamp, newTimestamp) {