forked from public/foundryvtt-wh4-lang-fr-fr
Add all systems effects scripts + translations
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user