Update carrières
This commit is contained in:
parent
c9225fad50
commit
d40f768909
@ -204,7 +204,35 @@ const __check_fix_wrong_modules = ( chatFlag, patchFinished ) => {
|
||||
|
||||
if (game.user.isGM && patchFinished)
|
||||
ChatMessage.create( { title: "Patch fini !", content: "Les modules WFRP4E ont été patchés <strong>avec succès</strong>. Vous pouvez y aller et que <strong>Shallya vous garde !</strong>", whisper: ChatMessage.getWhisperRecipients("GM") } );
|
||||
}
|
||||
|
||||
/************************************************************************************/
|
||||
const convertColumnToMulti = (table) => {
|
||||
let columns = table.columns;
|
||||
let newTable = duplicate(table)
|
||||
|
||||
delete newTable.columns;
|
||||
newTable.rows = table.rows.map(i => {return {range : {}}})
|
||||
newTable.multi = table.columns
|
||||
|
||||
for(let column of columns)
|
||||
{
|
||||
for (let row of newTable.rows)
|
||||
{
|
||||
row[column] = {}
|
||||
row.range[column] = []
|
||||
}
|
||||
}
|
||||
|
||||
for(let index in newTable.rows)
|
||||
{
|
||||
for (let column in table.rows[index].range)
|
||||
{
|
||||
newTable.rows[index][column] = {name : table.rows[index].name}
|
||||
newTable.rows[index].range[column] = table.rows[index].range[column]
|
||||
}
|
||||
}
|
||||
return newTable;
|
||||
}
|
||||
|
||||
/************************************************************************************/
|
||||
|
@ -2,7 +2,7 @@
|
||||
"name": "WH4-fr-translation",
|
||||
"title": "WFRP4e - Core Module en français.",
|
||||
"description": "Traduction Française pour Warhammer v4.",
|
||||
"version": "4.1.1",
|
||||
"version": "4.1.2",
|
||||
"minimumCoreVersion" : "0.8.0",
|
||||
"compatibleCoreVersion": "0.8.8",
|
||||
"author": "LeRatierBretonnien",
|
||||
|
@ -134,9 +134,7 @@ export class WH4FRPatchConfig {
|
||||
game.wfrp4e.config.species["helf"] = "Haut Elfe";
|
||||
game.wfrp4e.config.species["welf"] = "Elfe Sylvain";
|
||||
|
||||
game.wfrp4e.config.subspecies = {
|
||||
human : {
|
||||
reiklander: {
|
||||
game.wfrp4e.config.subspecies["human"]["reiklander"] = {
|
||||
name: "Reiklander",
|
||||
skills: [
|
||||
"Soins aux animaux",
|
||||
@ -158,7 +156,165 @@ export class WH4FRPatchConfig {
|
||||
3
|
||||
]
|
||||
}
|
||||
|
||||
if (game.wfrp4e.config.subspecies["welf"]["harioth"]) { // Archives Empire
|
||||
game.wfrp4e.config.subspecies["welf"]["harioth"] = {
|
||||
name: "Harioth",
|
||||
talents: [
|
||||
"Sens Aiguisé (Vue)",
|
||||
"Dur à cuire, Seconde Vue",
|
||||
"Vision Nocturne",
|
||||
"Lire/Ecrire, Très Résistant",
|
||||
"Nomade",
|
||||
"Youngblood",
|
||||
0
|
||||
]
|
||||
}
|
||||
game.wfrp4e.config.subspecies["halfling"]["ashfield"] = {
|
||||
name: "Ashfield",
|
||||
skills: [
|
||||
"Charme",
|
||||
"Résistance à l'alcool",
|
||||
"Marchandage",
|
||||
"Savoir (Reikland)",
|
||||
"Escamotage",
|
||||
"Discrétion (Au choix)",
|
||||
"Métier (Cuisinier)",
|
||||
"Calme",
|
||||
"Intuition",
|
||||
"Langue (Mootish)",
|
||||
"Projectiles (Au choix)"
|
||||
],
|
||||
talents: [
|
||||
"Sens Aiguisé (Goût)",
|
||||
"Vision Nocturne",
|
||||
"Résistant (Chaos)",
|
||||
"Petit",
|
||||
"Sens Aiguisé (Vue), Etiquette (Soldats)",
|
||||
1
|
||||
]
|
||||
}
|
||||
game.wfrp4e.config.subspecies.halfling["brambledown"] = {
|
||||
name: "Brambledown",
|
||||
skills: [
|
||||
"Charme",
|
||||
"Résistance à l'alcool",
|
||||
"Marchandage",
|
||||
"Savoir (Reikland)",
|
||||
"Escamotage",
|
||||
"Discrétion (Au choix)",
|
||||
"Métier (Cuisinier)",
|
||||
"Langue (Mootish) ",
|
||||
"Orientation",
|
||||
"Survie en extérieur ",
|
||||
"Natation"
|
||||
],
|
||||
talents: [
|
||||
"Sens Aiguisé (Goût)",
|
||||
"Vision Nocturne",
|
||||
"Résistant (Chaos)",
|
||||
"Petit",
|
||||
"Sociable, Voyageur aguerri",
|
||||
1
|
||||
]
|
||||
}
|
||||
game.wfrp4e.config.subspecies.halfling["brandysnap"] = {
|
||||
name: "Brandysnap",
|
||||
skills: [
|
||||
"Charme",
|
||||
"Résistance à l'alcool",
|
||||
"Marchandage",
|
||||
"Savoir (Reikland)",
|
||||
"Escamotage",
|
||||
"Discrétion (Au choix)",
|
||||
"Métier (Cuisinier)",
|
||||
"Soins aux animaux",
|
||||
"Pari",
|
||||
"Langue (Mootish)",
|
||||
"Métier (Herboriste)"
|
||||
],
|
||||
talents: [
|
||||
"Sens Aiguisé (Goût)",
|
||||
"Vision Nocturne",
|
||||
"Résistant (Chaos)",
|
||||
"Petit",
|
||||
"Maître Artisan (Fermier), Costaud",
|
||||
1
|
||||
]
|
||||
}
|
||||
game.wfrp4e.config.subspecies.halfling["hayfoot"] = {
|
||||
name: "Hayfoot",
|
||||
skills: [
|
||||
"Charme",
|
||||
"Résistance à l'alcool",
|
||||
"Marchandage",
|
||||
"Savoir (Reikland)",
|
||||
"Escamotage",
|
||||
"Discrétion (Au choix)",
|
||||
"Métier (Cuisinier)",
|
||||
"Gamble",
|
||||
"Pari",
|
||||
"Evaluation",
|
||||
"Langue (Mootish)"
|
||||
],
|
||||
talents: [
|
||||
"Sens Aiguisé (Goût)",
|
||||
"Vision Nocturne",
|
||||
"Résistant (Chaos)",
|
||||
"Petit",
|
||||
"Négociateur, Etiquette (Guildes)",
|
||||
1
|
||||
]
|
||||
}
|
||||
game.wfrp4e.config.subspecies.halfling["hollyfoot"] = {
|
||||
name: "Hollyfoot",
|
||||
skills: [
|
||||
"Charme",
|
||||
"Résistance à l'alcool",
|
||||
"Marchandage",
|
||||
"Savoir (Reikland)",
|
||||
"Escamotage",
|
||||
"Discrétion (Au choix)",
|
||||
"Métier (Cuisinier)",
|
||||
"Subornation",
|
||||
"Marchandage",
|
||||
"Ragot",
|
||||
"Langue (Mootish)"
|
||||
],
|
||||
talents: [
|
||||
"Sens Aiguisé (Goût)",
|
||||
"Vision Nocturne",
|
||||
"Résistant (Chaos)",
|
||||
"Petit",
|
||||
"Maître Artisan (Au choix), Doigts de fée",
|
||||
1
|
||||
]
|
||||
}
|
||||
game.wfrp4e.config.subspecies.halfling["hayfoot—hollyfoot"] = {
|
||||
name: "Hayfoot—Hollyfoot",
|
||||
skills: [
|
||||
"Charme",
|
||||
"Résistance à l'alcool",
|
||||
"Marchandage",
|
||||
"Savoir (Reikland)",
|
||||
"Escamotage",
|
||||
"Discrétion (Au choix)",
|
||||
"Métier (Cuisinier)",
|
||||
"Subornation",
|
||||
"Marchandage",
|
||||
"Ragot",
|
||||
"Langue (Mootish)"
|
||||
],
|
||||
talents: [
|
||||
"Sens Aiguisé (Goût)",
|
||||
"Vision Nocturne",
|
||||
"Résistant (Chaos)",
|
||||
"Petit",
|
||||
"Ergoteur, Numismate",
|
||||
1
|
||||
]
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
game.wfrp4e.config.conditionScripts = {
|
||||
@ -168,10 +324,8 @@ export class WH4FRPatchConfig {
|
||||
|
||||
let leastProtectedLoc;
|
||||
let leastProtectedValue = 999;
|
||||
for (let loc in actor.status.armour)
|
||||
{
|
||||
if (actor.status.armour[loc].value != undefined && actor.status.armour[loc].value < leastProtectedValue)
|
||||
{
|
||||
for (let loc in actor.status.armour) {
|
||||
if (actor.status.armour[loc].value != undefined && actor.status.armour[loc].value < leastProtectedValue) {
|
||||
leastProtectedLoc = loc;
|
||||
leastProtectedValue = actor.status.armour[loc].value;
|
||||
}
|
||||
@ -214,28 +368,23 @@ export class WH4FRPatchConfig {
|
||||
let value = effect.conditionValue;
|
||||
msg += await actor.applyBasicDamage(value, { damageType: game.wfrp4e.config.DAMAGE_TYPE.IGNORE_ALL, minimumOne: false, suppressMsg: true })
|
||||
|
||||
if (actor.status.wounds.value == 0 && !actor.hasCondition("unconscious"))
|
||||
{
|
||||
if (actor.status.wounds.value == 0 && !actor.hasCondition("unconscious")) {
|
||||
await actor.addCondition("unconscious")
|
||||
msg += `<br><b>${actor.data.token.name}</b> tombe inconscient!`
|
||||
}
|
||||
|
||||
if (actor.hasCondition("unconscious"))
|
||||
{
|
||||
if (actor.hasCondition("unconscious")) {
|
||||
bleedingAmt = value;
|
||||
bleedingRoll = new Roll("1d100").roll().total;
|
||||
if (bleedingRoll <= bleedingAmt * 10)
|
||||
{
|
||||
if (bleedingRoll <= bleedingAmt * 10) {
|
||||
msg += `<br><b>${actor.data.token.name}</b> meurt de la perte de sang! (Lancé ${bleedingRoll})`
|
||||
actor.addCondition("dead")
|
||||
}
|
||||
else if (bleedingRoll % 11 == 0)
|
||||
{
|
||||
else if (bleedingRoll % 11 == 0) {
|
||||
msg += `<br><b>${actor.data.token.name}'s</b> cicatrise un peu et élimine 1 Etat Hémorragique (Lancé ${bleedingRoll})`
|
||||
actor.removeCondition("bleeding")
|
||||
}
|
||||
else
|
||||
{
|
||||
else {
|
||||
msg += `<br>Bleeding Roll: ${bleedingRoll}`
|
||||
}
|
||||
}
|
||||
|
2653
tables/career.json
2653
tables/career.json
File diff suppressed because it is too large
Load Diff
266
tables/career_archives.json
Normal file
266
tables/career_archives.json
Normal file
@ -0,0 +1,266 @@
|
||||
{
|
||||
"name": "Carrières aléatoires",
|
||||
"extend": true,
|
||||
"die": "1d100",
|
||||
"rows": [
|
||||
{
|
||||
"range": { "welf-toriour": [1,2]},
|
||||
"welf-toriour": { "name": "Apothicaire" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Ingénieur" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [3,6]},
|
||||
"welf-toriour": { "name": "Lawyer" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Nonne" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [7,8]},
|
||||
"welf-toriour": { "name": "Médecin" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Prêtre" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [9,12]},
|
||||
"welf-toriour": { "name": "Scholar" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [13,16]},
|
||||
"welf-toriour": { "name": "Wizard" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Agitator" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [17,19]},
|
||||
"welf-toriour": { "name": "Artisan" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Beggar" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [20,21]},
|
||||
"welf-toriour": { "name": "Investigator" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [22,26]},
|
||||
"welf-toriour": { "name": "Merchant" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Rat Catcher" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [27,28]},
|
||||
"welf-toriour": { "name": "Townsman" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [29,29]},
|
||||
"welf-toriour": { "name": "Watchman" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [30,31]},
|
||||
"welf-toriour": { "name": "Advisor" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [32,32]},
|
||||
"welf-toriour": { "name": "Artist" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [33,34]},
|
||||
"welf-toriour": { "name": "Duellist" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [35,37]},
|
||||
"welf-toriour": { "name": "Envoy" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [38,40]},
|
||||
"welf-toriour": { "name": "Noble" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Servant" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [41,43]},
|
||||
"welf-toriour": { "name": "Spy" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [44,45]},
|
||||
"welf-toriour": { "name": "Warden" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Bailiff" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Hedge Witch" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [46,47]},
|
||||
"welf-toriour": { "name": "Herbalist" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [48,50]},
|
||||
"welf-toriour": { "name": "Hunter" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Miner" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Mystic" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [51,56]},
|
||||
"welf-toriour": { "name": "Scout" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Villager" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [57,59]},
|
||||
"welf-toriour": { "name": "Bounty Hunter" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Coachman" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [60,62]},
|
||||
"welf-toriour": { "name": "Entertainer" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Flagellant" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [63,63]},
|
||||
"welf-toriour": { "name": "Messenger" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Pedlar" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Road warden" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Witch Hunter" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [64,64]},
|
||||
"welf-toriour": { "name": "Boatman" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Huffer" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Riverwarden" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Riverwoman" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [65,79]},
|
||||
"welf-toriour": { "name": "Seaman" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [80,80]},
|
||||
"welf-toriour": { "name": "Smuggler" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Stevedore" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Wrecker" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [81,82]},
|
||||
"welf-toriour": { "name": "Bawd" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [83,85]},
|
||||
"welf-toriour": { "name": "Charlatan" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Fence" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Grave Robber" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [86,88]},
|
||||
"welf-toriour": { "name": "Outlaw" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Racketeer" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Thief" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Witch" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [89,92]},
|
||||
"welf-toriour": { "name": "Cavalryman" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [93,94]},
|
||||
"welf-toriour": { "name": "Guard" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [95,95]},
|
||||
"welf-toriour": { "name": "Knight" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [96,97]},
|
||||
"welf-toriour": { "name": "Pit Fighter" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [98,98]},
|
||||
"welf-toriour": { "name": "Protagonist" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": [99,100]},
|
||||
"welf-toriour": { "name": "Soldier" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Slayer" }
|
||||
},
|
||||
{
|
||||
"range": { "welf-toriour": []},
|
||||
"welf-toriour": { "name": "Warrior Priest" }
|
||||
}
|
||||
],
|
||||
"multi": [
|
||||
"welf-toriour"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user