Scripts englisch statt französisch
This commit is contained in:
@@ -10,7 +10,7 @@ let characteristics = {
|
||||
"wp" : 10,
|
||||
"fel" : 15
|
||||
}
|
||||
let skills = ["Focalisation", "Charm", "Perform (Dancing)"]
|
||||
let skills = ["Channelling", "Charm", "Perform (Dancing)"]
|
||||
let skillAdvancements = [0, 6, 3]
|
||||
let talents = ["Attractive", "Distract", "Mimic"]
|
||||
let traits = ["Distracting", "Flight (6)", "Spellcaster (Petty)"]
|
||||
@@ -50,7 +50,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})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ for (let trait of traits)
|
||||
}
|
||||
catch { }
|
||||
if (!traitItem) {
|
||||
ui.notifications.warn(`Impossible de trouver ${trait}`, {permanent : true})
|
||||
ui.notifications.warn(`Could not find ${trait}`, {permanent : true})
|
||||
}
|
||||
traitItem = traitItem.toObject()
|
||||
|
||||
@@ -91,13 +91,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})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -112,11 +112,22 @@ for (let spell of spells)
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.notifications.warn(`Impossible de trouver ${spell}`, {permanent : true})
|
||||
ui.notifications.warn(`Could not find ${spell}`, {permanent : true})
|
||||
}
|
||||
}
|
||||
|
||||
updateObj.name = updateObj.name += " " + this.effect.name
|
||||
|
||||
await this.actor.update(updateObj)
|
||||
this.actor.createEmbeddedDocuments("Item", items);
|
||||
this.actor.createEmbeddedDocuments("Item", items);
|
||||
|
||||
|
||||
function equip(item)
|
||||
{
|
||||
if (item.type == "armour")
|
||||
item.worn = true
|
||||
else if (item.type == "weapon")
|
||||
item.equipped = true
|
||||
else if (item.type == "trapping" && item.trappingType?.value == "clothingAccessories")
|
||||
item.worn = true
|
||||
}
|
||||
Reference in New Issue
Block a user