Scripts englisch statt französisch

This commit is contained in:
alzer
2025-05-15 23:03:43 +02:00
parent 0bcbc29f0f
commit d80779f206
503 changed files with 10469 additions and 1616 deletions
+18 -7
View File
@@ -12,7 +12,7 @@ let characteristics = {
}
let skills = ["Charm", "Intimidate", "Melee (Basic)"]
let skillAdvancements = [7, 60, 7]
let talents = ["Menaçant", "Ombres"]
let talents = ["Menacing", "Shadow"]
let traits = ["Distracting"]
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
}