Ajout de la commande /voyage et grosse MAJK de la commande /auberge
This commit is contained in:
@@ -10,12 +10,12 @@ let characteristics = {
|
||||
"wp" : 15,
|
||||
"fel" : -20
|
||||
}
|
||||
let skills = ["Melee (Brawling)"]
|
||||
let skills = ["Corps à corps (Bagarre)"]
|
||||
let skillAdvancements = [10]
|
||||
|
||||
let talents = ["Fearless (Everything)", "Frenzy", "Implacable"]
|
||||
let trappings = ["Plate Breastplate", "Plate Bracers", "Plate Helm", "Plate Leggings"]
|
||||
let specialItems = []
|
||||
let talents = ["Peurless (Everything)", "Frénésie", "Endurci"]
|
||||
let trappings = ["Plastron d'acier", "Brassards", "Heaume", "Jambières d'acier"]
|
||||
let specialItems = []
|
||||
let items = [];
|
||||
|
||||
let updateObj = this.actor.toObject();
|
||||
@@ -44,7 +44,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();
|
||||
@@ -60,13 +60,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)
|
||||
@@ -77,13 +77,13 @@ for (let trapping of trappings)
|
||||
|
||||
items.push(trappingItem);
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
ui.notifications.warn(`Impossible de trouver ${trapping}`, {permanent : true})
|
||||
}
|
||||
}
|
||||
|
||||
updateObj.name = updateObj.name += " " + this.effect.name
|
||||
updateObj.name = updateObj.name += " " + this.effet.name
|
||||
|
||||
await this.actor.update(updateObj)
|
||||
console.log(">>>>>>><", items)
|
||||
|
||||
Reference in New Issue
Block a user