foundryvtt-wh4-lang-fr-fr/scripts/toSrgcvWq9b5eN0K.js

4 lines
293 B
JavaScript

let location = await game.wfrp4e.tables.rollTable("hitloc", {hideDSN: true})
this.item.updateSource({name : `${this.item.name} (${location.description})`})
this.script.scriptMessage(`<strong>Localisation:</strong> ${location.description}`, { whisper: ChatMessage.getWhisperRecipients("GM") })