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

@@ -12,8 +12,8 @@ let characteristics = {
}
let skills = ["Calme", "Esquive"]
let skillAdvancements = [10, 10]
let talents = ["Combat Reflexes"]
let trappings = ["Leather Jack", "Leather Skullcap", "Leather Leggings", "Shield"]
let talents = ["Réflexes de Combat"]
let trappings = ["Veste en cuir", "Casque en cuir", "Jambières en cuir", "Bouclier"]
let items = []
let updateObj = this.actor.toObject();
@@ -30,7 +30,7 @@ for (let index = 0; index < skills.length; index++)
skillItem = updateObj.items.find(i => i.name == skill && i.type == "skill")
if (skillItem)
skillItem.system.advances.value += skillAdvancements[index]
else
else
{
skillItem = await game.wfrp4e.utility.findSkill(skill)
skillItem = skillItem.toObject();
@@ -46,13 +46,13 @@ for (let talent of talents)
{
items.push(talentItem.toObject());
}
else
else
{
ui.notifications.warn(`Impossible de trouver ${talent}`, {permanent : true})
}
}
for (let trapping of trappings)
for (let trapping of trappings)
{
let trappingItem = await game.wfrp4e.utility.findItem(trapping)
if (trappingItem)
@@ -63,7 +63,7 @@ for (let trapping of trappings)
items.push(trappingItem);
}
else
else
{
ui.notifications.warn(`Impossible de trouver ${trapping}`, {permanent : true})
}