Add all systems effects scripts + translations

This commit is contained in:
2024-05-17 12:46:44 +02:00
parent 039df5c10a
commit a308181834
1421 changed files with 9940 additions and 547 deletions

View File

@ -10,13 +10,13 @@ let characteristics = {
"wp" : 10,
"fel" : 10
}
let skills = ["Charm", "Channelling", "Entertain (Prophecy)", "Intuition"]
let skills = ["Charme", "Focalisation", "Divertissement (Prophecie)", "Intuition"]
let skillAdvancements = [0, 0, 20, 10]
let talents = ["Detect Artefact", "Menacing", "Sixth Sense"]
let traits = ["Dooming", "Spellcaster (Lore of Life)", "Ward"]
let talents = ["Détection dartefact", "Menaçant", "Sixième Sens"]
let traits = ["Destinée", "Lanceur de sorts (Domaine de la Vie)", "Protection"]
let trappings = []
let items = [];
let spells = ["Forest of Thorns"];
let spells = ["Forêt d'épines"];
let updateObj = this.actor.toObject();
@ -50,7 +50,7 @@ for (let talent of talents)
}
else
{
ui.notifications.warn(`Could not find ${talent}`, {permanent : true})
ui.notifications.warn(`Impossible de trouver ${talent}`, {permanent : true})
}
}
@ -68,13 +68,13 @@ for (let trait of traits)
}
catch { }
if (!traitItem) {
ui.notifications.warn(`Could not find ${trait}`, {permanent : true})
ui.notifications.warn(`Impossible de trouver ${trait}`, {permanent : true})
}
traitItem = traitItem.toObject()
if (Number.isNumeric(traitVal))
{
traitItem.system.specification.value = traitName.includes('Weapon','Horns','Tail','Tentacles','Bite') ? traitVal - parseInt(characteristicValues[3]/10) : traitVal;
traitItem.system.specification.value = traitName.includes('Arme','Cornes','Queue','Tentacules','Morsure') ? traitVal - parseInt(characteristicValues[3]/10) : traitVal;
traitItem.name = (traitItem.name + ` ${traitSpec ? "("+ traitSpec + ")" : ""}`).trim()
}
else