2024-05-16 17:57:51 +02:00
|
|
|
// Each time the blade is used, the GM should secretly roll a d10.
|
|
|
|
// On a 1, its poison has run dry,
|
|
|
|
// and the next time it is employed it will shatter.
|
|
|
|
|
|
|
|
if (Math.ceil(CONFIG.Dice.randomUniform() * 10) == 1) {
|
|
|
|
this.item.setFlag("wfrp4e", "brittle", true)
|
|
|
|
ChatMessage.create({
|
|
|
|
content: `
|
2024-05-17 12:46:44 +02:00
|
|
|
<strong>${this.item.name}</strong> n'a plus de Poison. Il se brisera à sa prochaine utilisation.`,
|
2024-05-16 17:57:51 +02:00
|
|
|
whisper: ChatMessage.getWhisperRecipients("GM"),
|
|
|
|
blind: true
|
|
|
|
})
|
|
|
|
}
|