Ajout de la commande /voyage et grosse MAJK de la commande /auberge
This commit is contained in:
@@ -12,8 +12,8 @@
|
||||
}
|
||||
let skills = ["Perception", "Escamotage", "Discrétion (Urbaine)"]
|
||||
let skillAdvancements = [10, 10, 10]
|
||||
let talents = ["Criminel", "Etiquette (Criminels)"]
|
||||
let trappings = ["Corde, 10 mètres", "Outils de crochetage", "Masque"]
|
||||
let talents = ["Criminel", "Etiquette (Criminals)"]
|
||||
let trappings = ["Corde, 10 mètres", "Lockpick", "Masque"]
|
||||
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})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user