Update carrières

This commit is contained in:
sladecraven 2021-08-23 22:55:07 +02:00
parent c9225fad50
commit d40f768909
5 changed files with 3958 additions and 1586 deletions

View File

@ -204,7 +204,35 @@ const __check_fix_wrong_modules = ( chatFlag, patchFinished ) => {
if (game.user.isGM && 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") } ); 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;
} }
/************************************************************************************/ /************************************************************************************/

View File

@ -2,7 +2,7 @@
"name": "WH4-fr-translation", "name": "WH4-fr-translation",
"title": "WFRP4e - Core Module en français.", "title": "WFRP4e - Core Module en français.",
"description": "Traduction Française pour Warhammer v4.", "description": "Traduction Française pour Warhammer v4.",
"version": "4.1.1", "version": "4.1.2",
"minimumCoreVersion" : "0.8.0", "minimumCoreVersion" : "0.8.0",
"compatibleCoreVersion": "0.8.8", "compatibleCoreVersion": "0.8.8",
"author": "LeRatierBretonnien", "author": "LeRatierBretonnien",

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

266
tables/career_archives.json Normal file
View 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"
]
}