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,10 +10,10 @@ let characteristics = {
"wp" : 0,
"fel" : 10
}
let skills = ["Melee (Basic)", "Track"]
let skills = ["Corps à corps (Base)", "Pistage"]
let skillAdvancements = [8, 7]
let talents = ["Berserk Charge", "Careful Strike", "Strike to Injure"]
let traits = ["Flight (8)", "Fury", "Swarm", "Tracker"]
let talents = ["Charge Berserk", "Frappe précise", "Frappe blessante"]
let traits = ["Vol (8)", "Rage", "Essaim", "Pisteur"]
let trappings = []
let items = [];
let spells = [];
@ -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