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
+15 -5
View File
@@ -10,10 +10,10 @@ let characteristics = {
"wp" : 5,
"fel" : 0
}
let skills = ["Esquive", "Perception"]
let skills = ["Dodge", "Perception"]
let skillAdvancements = [10, 10]
let talents = ["Flee!", "Marksman"]
let trappings = ["Arme simple"]
let trappings = ["Hand Weapon"]
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})
}
}
@@ -73,3 +73,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
}