foundryvtt-wh4-lang-fr-fr/reference_scripts/FqevMs0ukQ9WuUHl.js

9 lines
349 B
JavaScript
Raw Permalink Normal View History

// 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 (this.item.getFlag("wfrp4e", "brittle"))
{
ChatMessage.create({content: `<strong>${this.item.name}</strong> shatters!`})
this.item.update({name : `${this.item.name} (Shattered)`})
}