Scripts englisch statt französisch
This commit is contained in:
@@ -10,10 +10,10 @@ let characteristics = {
|
||||
"wp" : 5,
|
||||
"fel" : 5
|
||||
}
|
||||
let skills = ["Calme", "Esquive"]
|
||||
let skills = ["Cool", "Dodge"]
|
||||
let skillAdvancements = [10, 10]
|
||||
let talents = ["Combat Reflexes", "Resolute"]
|
||||
let trappings = ["Leather Jack", "Leather Leggings", "Leather Skullcap", "Arme simple", "Spear", "Shield"]
|
||||
let trappings = ["Leather Jack", "Leather Leggings", "Leather Skullcap", "Hand Weapon", "Spear", "Shield"]
|
||||
let items = [];
|
||||
|
||||
let updateObj = this.actor.toObject();
|
||||
@@ -48,7 +48,7 @@ for (let talent of talents)
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.notifications.warn(`Impossible de trouver ${talent}`, {permanent : true})
|
||||
ui.notifications.warn(`Could not find ${talent}`, {permanent : true})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,13 +59,13 @@ for (let trapping of trappings)
|
||||
{
|
||||
trappingItem = trappingItem.toObject()
|
||||
|
||||
trappingItem.system.equipped.value = true;
|
||||
equip(trappingItem)
|
||||
|
||||
items.push(trappingItem);
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.notifications.warn(`Impossible de trouver ${trapping}`, {permanent : true})
|
||||
ui.notifications.warn(`Could not find ${trapping}`, {permanent : true})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,3 +74,13 @@ updateObj.name = updateObj.name += " " + this.effect.name
|
||||
await this.actor.update(updateObj)
|
||||
this.actor.createEmbeddedDocuments("Item", items);
|
||||
|
||||
|
||||
function equip(item)
|
||||
{
|
||||
if (item.type == "armour")
|
||||
item.system.worn.value = true
|
||||
else if (item.type == "weapon")
|
||||
item.system.equipped = true
|
||||
else if (item.type == "trapping" && item.system.trappingType.value == "clothingAccessories")
|
||||
item.system.worn = true
|
||||
}
|
||||
Reference in New Issue
Block a user