Scripts englisch statt französisch
This commit is contained in:
@@ -10,9 +10,9 @@ let characteristics = {
|
||||
"wp" : 10,
|
||||
"fel" : 10
|
||||
}
|
||||
let skills = ["Charm", "Focalisation", "Entertain (Prophecy)", "Intuition"]
|
||||
let skills = ["Charm", "Channelling", "Entertain (Prophecy)", "Intuition"]
|
||||
let skillAdvancements = [0, 0, 20, 10]
|
||||
let talents = ["Detect Artefact", "Menaçant", "Sixième Sens"]
|
||||
let talents = ["Detect Artefact", "Menacing", "Sixth Sense"]
|
||||
let traits = ["Dooming", "Spellcaster (Lore of Life)", "Ward"]
|
||||
let trappings = []
|
||||
let items = [];
|
||||
@@ -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