Ajout de la commande /voyage et grosse MAJK de la commande /auberge

This commit is contained in:
2026-01-07 15:04:49 +01:00
parent c8119601d8
commit f525b6c07a
1329 changed files with 24138 additions and 4397 deletions

View File

@@ -1,18 +1,18 @@
// Any Characteristic penalties due to failed Consume Alcohol Tests
// or the state of being Stinking Drunk are eliminated.
// or the state of being Stinking Drunk are eliminated.
await this.actor.removeSystemEffect("consumealcohol1")
await this.actor.removeSystemEffect("consumealcohol2")
await this.actor.removeSystemEffect("consumealcohol3")
await this.actor.removeSystemEffect("stinkingdrunk1")
// The drinker is thereafter Fatigued
// for a number of hours equal to 10 minus their Toughness Bonus —
// The drinker is thereafter Fatigued
// for a number of hours equal to 10 minus their Toughness Bonus —
// nothing but time and rest can eliminate this penalty.
await this.actor.addCondition("fatigued")
const duration = 10 - parseInt(this.actor.system.characteristics.t.bonus)
this.effect.updateSource({"duration.rounds" : duration});
this.script.scriptMessage(`<p><strong>${this.actor.prototypeToken.name}</strong> ne souffre des pénalités dues à l'alcool et reçoit 1 état Fatigué pour ${duration} heures.</p>`,
this.script.message(`<p><strong>${this.actor.prototypeToken.name}</strong> n'a plus de pénalités liées à l'alcool et gagne l'état Extenué pendant ${duration} heures.</p>`,
{
whisper: ChatMessage.getWhisperRecipients("GM"),
blind: true
})
whisper: ChatMessage.getWhisperRecipients("GM"),
blind: true
})