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

4 lines
289 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>Location:</strong> ${location.description}`, { whisper: ChatMessage.getWhisperRecipients("GM") })