Add all systems effects scripts + translations

This commit is contained in:
2024-05-17 09:19:48 +02:00
parent 7b97578bd7
commit 039df5c10a
119 changed files with 255 additions and 232 deletions

View File

@ -10,13 +10,13 @@ let characteristics = {
"wp" : 10,
"fel" : 15
}
let skills = ["Channelling", "Charm", "Perform (Dancing)"]
let skills = ["Focalisation", "Charme", "Représentation (Danser)"]
let skillAdvancements = [0, 6, 3]
let talents = ["Attractive", "Distract", "Mimic"]
let traits = ["Distracting", "Flight (6)", "Spellcaster (Petty)"]
let talents = ["Attirant", "Distraire", "Imitation"]
let traits = ["Perturbant", "Vol (6)", "Lanceur de Sorts (Magie Mineure)"]
let trappings = []
let items = [];
let spells = ["Marsh Lights", "Sleep"];
let spells = ["Feux follets", "Sommeil"];
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
@ -112,7 +112,7 @@ for (let spell of spells)
}
else
{
ui.notifications.warn(`Could not find ${spell}`, {permanent : true})
ui.notifications.warn(`Impossible de trouver ${spell}`, {permanent : true})
}
}