Update scripts

This commit is contained in:
2024-10-08 20:52:09 +02:00
parent 1f1d871e53
commit fc4fa1deb5
178 changed files with 12247 additions and 10701 deletions

View File

@ -13,17 +13,17 @@
let personalityQuirk = (await game.wfrp4e.tables.rollTable("personality-quirks", {hideDSN: true})).text;
let templateItem = await game.wfrp4e.utility.findItemId(templateMap[template._id]);
let templateItem = await warhammer.utility.findItemId(templateMap[template._id]);
let bio =
`
<p><strong>Template</strong>: ${template.text}</p>
<p><strong>Bizarrerie Physique</strong>: ${physicalQuirk}</p>
<p><strong>Etique de travail</strong>: ${workEthic}</p>
<p><strong>Bizarrerie de personnalité</strong>: ${personalityQuirk}</p>
<p><strong>Trait physique</strong>: ${physicalQuirk}</p>
<p><strong>Ethique</strong>: ${workEthic}</p>
<p><strong>Trait de personnalité</strong>: ${personalityQuirk}</p>
`
this.script.scriptMessage(bio, {whisper : ChatMessage.getWhisperRecipients("GM")})
this.script.message(bio, {whisper : ChatMessage.getWhisperRecipients("GM")})
await this.actor.update({"system.details.gmnotes.value" : bio})