2024-05-16 17:57:51 +02:00
|
|
|
if (args.test.item?.type == "skill" && args.test.item.name.includes(game.i18n.localize("NAME.Stealth")))
|
|
|
|
{
|
2024-05-17 01:07:37 +02:00
|
|
|
args.test.result.description = "Echech Stupéfiant";
|
2024-05-16 17:57:51 +02:00
|
|
|
args.test.result.outcome = "failure";
|
|
|
|
ChatMessage.create({content : "<em>SQUEAK</em>", speaker : ChatMessage.getSpeaker({token: this.actor.getActiveTokens()[0]?.document, actor: this.actor})}, {chatBubble : true})
|
|
|
|
AudioHelper.play({ src: `${game.settings.get("wfrp4e", "soundPath")}squeek.wav` }, true);
|
|
|
|
}
|