Ajout de la commande /voyage et grosse MAJK de la commande /auberge

This commit is contained in:
2026-01-07 15:04:49 +01:00
parent c8119601d8
commit f525b6c07a
1329 changed files with 24138 additions and 4397 deletions

View File

@@ -1,11 +1,11 @@
const templateMap = {
'P2e7Yx98bK3u110a' : "",
'iuMp3KLaMT2WCmie' : "Xp4r2KUhqfjak8zq",
'RBuYcT5tppwcmnC5' : "wYN19h3WVF1yOVq2",
'vcGpNwNbhvfzVveQ' : "ac5ClOuaYtzOYyWp",
'jmhKZy0w9TzkEK9c' : "IS3LTdTuay6uRHUq",
'9Byj6k7SmdTYis2V' : "LjMlx99gBGeRJUQu",
'laJwc2l9tzJPgaaJ' : "x5wpMprsObuqMCYg",
'iuMp3KLaMT2WCmie' : "4s01nHFKVKTEZd3B",
'RBuYcT5tppwcmnC5' : "h3yuJDWnixliXeBG",
'vcGpNwNbhvfzVveQ' : "7QrsbofccMOE1YsF",
'jmhKZy0w9TzkEK9c' : "scVTPVyDDbli4WZL",
'9Byj6k7SmdTYis2V' : "4Cd7Dknee2WjReOo",
'laJwc2l9tzJPgaaJ' : "2hJ2a5YjbwZWWYrd",
}
let template = (await game.wfrp4e.tables.rollTable("hireling-templates", {hideDSN: true})).object;
let physicalQuirk = (await game.wfrp4e.tables.rollTable("physical-quirks", {hideDSN: true})).text;
@@ -15,14 +15,14 @@
let templateItem = await warhammer.utility.findItemId(templateMap[template._id]);
let bio =
let bio =
`
<p><strong>Template</strong>: ${template.text}</p>
<p><strong>Trait physique</strong>: ${physicalQuirk}</p>
<p><strong>Ethique</strong>: ${workEthic}</p>
<p><strong>Trait de personnalité</strong>: ${personalityQuirk}</p>
<p><strong>Particularité physique</strong>: ${physicalQuirk}</p>
<p><strong>Éthique de travail</strong>: ${workEthic}</p>
<p><strong>Particularité de personnalité</strong>: ${personalityQuirk}</p>
`
this.script.message(bio, {whisper : ChatMessage.getWhisperRecipients("GM")})
await this.actor.update({"system.details.gmnotes.value" : bio})