forked from public/foundryvtt-wh4-lang-fr-fr
		
	Sync et support royaumes ogres
This commit is contained in:
		| @@ -162,6 +162,13 @@ const __check_fix_wrong_modules = ( chatFlag, patchFinished ) => { | |||||||
|       if (game.user.isGM && chatFlag) |       if (game.user.isGM && chatFlag) | ||||||
|         ChatMessage.create( { title: "Module RNHD patché", content: "<strong>Le module RHND a été detecté et automatiquement patché.</strong>", whisper: ChatMessage.getWhisperRecipients("GM") } ); |         ChatMessage.create( { title: "Module RNHD patché", content: "<strong>Le module RHND a été detecté et automatiquement patché.</strong>", whisper: ChatMessage.getWhisperRecipients("GM") } ); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     if ( name == 'ogre-kingdom-wfrp4e' && module.active) { | ||||||
|  |       WH4FRPatchConfig.perform_ogrekingdom_patch(); | ||||||
|  |       if (game.user.isGM && chatFlag) | ||||||
|  |         ChatMessage.create( { title: "Module Ogre-Kingdom patché", content: "<strong>Le module Ogre-Kingdom a été detecté et automatiquement patché.</strong>", whisper: ChatMessage.getWhisperRecipients("GM") } ); | ||||||
|  |     } | ||||||
|  |  | ||||||
|     if ( name == "wfrp4e-ew" && module.active && game.user.isGM && chatFlag) {     |     if ( name == "wfrp4e-ew" && module.active && game.user.isGM && chatFlag) {     | ||||||
|       ChatMessage.create( { title: "Module non compatible detecté !", content: "<strong>Vous avez le module EW (wfrp4e-ew ?) installé. Malheureusement, ce module n'est pas compatible avec" + |       ChatMessage.create( { title: "Module non compatible detecté !", content: "<strong>Vous avez le module EW (wfrp4e-ew ?) installé. Malheureusement, ce module n'est pas compatible avec" + | ||||||
|       " les traductions et vient casser le fonctionnement de la traduction. Veuillez recopier les compendiums dans votre monde, désactiver le module et re-démarrer le monde</strong>", |       " les traductions et vient casser le fonctionnement de la traduction. Veuillez recopier les compendiums dans votre monde, désactiver le module et re-démarrer le monde</strong>", | ||||||
|   | |||||||
| @@ -2,7 +2,7 @@ | |||||||
|   "name": "WH4-fr-translation", |   "name": "WH4-fr-translation", | ||||||
|   "title": "Traduction du module WH4 en Français.", |   "title": "Traduction du module WH4 en Français.", | ||||||
|   "description": "La traduction du module WH4.", |   "description": "La traduction du module WH4.", | ||||||
|   "version": "1.6.0", |   "version": "1.6.1", | ||||||
|   "minimumCoreVersion" : "0.7.1", |   "minimumCoreVersion" : "0.7.1", | ||||||
|   "compatibleCoreVersion": "0.7.9", |   "compatibleCoreVersion": "0.7.9", | ||||||
|   "author": "LeRatierBretonnien", |   "author": "LeRatierBretonnien", | ||||||
|   | |||||||
| @@ -1,6 +1,7 @@ | |||||||
|  |  | ||||||
| export class WH4FRPatchConfig  {  | export class WH4FRPatchConfig  {  | ||||||
|  |  | ||||||
|  |   /************************************************************************************/   | ||||||
|   static perform_patch( ) { |   static perform_patch( ) { | ||||||
|  |  | ||||||
|     // Detect and patch as necessary |     // Detect and patch as necessary | ||||||
| @@ -20,8 +21,7 @@ export class WH4FRPatchConfig  { | |||||||
|             "doigts de fée": "dex", |             "doigts de fée": "dex", | ||||||
|             "guerrier né": "ws" |             "guerrier né": "ws" | ||||||
|       } |       } | ||||||
|       game.wfrp4e.config.speciesSkills = { |       game.wfrp4e.config.speciesSkills["human"] = [ | ||||||
|         "human": [ |  | ||||||
|           "Soins aux animaux", |           "Soins aux animaux", | ||||||
|           "Charme", |           "Charme", | ||||||
|           "Calme", |           "Calme", | ||||||
| @@ -34,8 +34,8 @@ export class WH4FRPatchConfig  { | |||||||
|           "Savoir (Reikland)", |           "Savoir (Reikland)", | ||||||
|           "Corps à corps (Base)", |           "Corps à corps (Base)", | ||||||
|           "Projectiles (Arc)" |           "Projectiles (Arc)" | ||||||
|         ], |         ]; | ||||||
|         "dwarf": [ |       game.wfrp4e.config.speciesSkills["dwarf"] = [ | ||||||
|           "Résistance à l'alcool", |           "Résistance à l'alcool", | ||||||
|           "Calme", |           "Calme", | ||||||
|           "Résistance", |           "Résistance", | ||||||
| @@ -48,8 +48,8 @@ export class WH4FRPatchConfig  { | |||||||
|           "Savoir (Metallurgie)", |           "Savoir (Metallurgie)", | ||||||
|           "Corps à corps (Base)", |           "Corps à corps (Base)", | ||||||
|           "Métier (Au choix)" |           "Métier (Au choix)" | ||||||
|         ], |         ]; | ||||||
|         "halfling": [ |       game.wfrp4e.config.speciesSkills["halfling"] = [ | ||||||
|           "Charme", |           "Charme", | ||||||
|           "Résistance à l'alcool", |           "Résistance à l'alcool", | ||||||
|           "Esquive", |           "Esquive", | ||||||
| @@ -62,8 +62,8 @@ export class WH4FRPatchConfig  { | |||||||
|           "Escamotage", |           "Escamotage", | ||||||
|           "Discrétion (Au choix)", |           "Discrétion (Au choix)", | ||||||
|           "Métier (Cuisinier)" |           "Métier (Cuisinier)" | ||||||
|         ], |       ]; | ||||||
|         "helf": [ |       game.wfrp4e.config.speciesSkills["helf"] = [ | ||||||
|           "Calme", |           "Calme", | ||||||
|           "Divertissement (Chant)", |           "Divertissement (Chant)", | ||||||
|           "Evaluation", |           "Evaluation", | ||||||
| @@ -76,8 +76,9 @@ export class WH4FRPatchConfig  { | |||||||
|           "Projectiles (Arc)", |           "Projectiles (Arc)", | ||||||
|           "Voile", |           "Voile", | ||||||
|           "Natation" |           "Natation" | ||||||
|         ], |         ]; | ||||||
|         "welf": [ |  | ||||||
|  |       game.wfrp4e.config.speciesSkills["welf"] = [ | ||||||
|           "Athlétisme", |           "Athlétisme", | ||||||
|           "Escalade", |           "Escalade", | ||||||
|           "Résistance", |           "Résistance", | ||||||
| @@ -90,53 +91,48 @@ export class WH4FRPatchConfig  { | |||||||
|           "Projectiles (Arc)", |           "Projectiles (Arc)", | ||||||
|           "Discrétion (Rural)", |           "Discrétion (Rural)", | ||||||
|           "Pistage" |           "Pistage" | ||||||
|         ], |         ]; | ||||||
|       } |       game.wfrp4e.config.speciesTalents["human"] = [ | ||||||
|       game.wfrp4e.config.speciesTalents = { |  | ||||||
|         "human": [ |  | ||||||
|         "Destinée", |         "Destinée", | ||||||
|         "Affable, Perspicace", |         "Affable, Perspicace", | ||||||
|         3 |         3 | ||||||
|         ], |       ] | ||||||
|         "dwarf": [ |       game.wfrp4e.config.speciesTalents["dwarf"] = [ | ||||||
|           "Résistance à la Magie", |           "Résistance à la Magie", | ||||||
|           "Vision Nocturne", |           "Vision Nocturne", | ||||||
|           "Lire/Ecrire, Impitoyable", |           "Lire/Ecrire, Impitoyable", | ||||||
|           "Déterminé, Obstiné", |           "Déterminé, Obstiné", | ||||||
|           "Costaud", |           "Costaud", | ||||||
|           0 |           0 | ||||||
|         ], |         ] | ||||||
|         "halfling": [ |       game.wfrp4e.config.speciesTalents["halfling"] = [ | ||||||
|           "Sens Aiguisé (Gout)", |           "Sens Aiguisé (Gout)", | ||||||
|           "Vision Nocturne", |           "Vision Nocturne", | ||||||
|           "Résistant (Chaos)", |           "Résistant (Chaos)", | ||||||
|           "Petit", |           "Petit", | ||||||
|           2 |           2 | ||||||
|         ], |         ]; | ||||||
|         "helf": [ |       game.wfrp4e.config.speciesTalents["helf"] = [ | ||||||
|           "Sens Aiguisé (Vue)", |           "Sens Aiguisé (Vue)", | ||||||
|           "Imperturbable, Perspicace", |           "Imperturbable, Perspicace", | ||||||
|           "Vision Nocturne", |           "Vision Nocturne", | ||||||
|           "Seconde Vue, Sixième Sens", |           "Seconde Vue, Sixième Sens", | ||||||
|           "Lire/Ecrire", |           "Lire/Ecrire", | ||||||
|           0 |           0 | ||||||
|         ], |         ] | ||||||
|         "welf": [ |       game.wfrp4e.config.speciesTalents["welf"] = [ | ||||||
|           "Sens Aiguisé (Vue)", |           "Sens Aiguisé (Vue)", | ||||||
|           "Dur à cuire, Seconde Vue", |           "Dur à cuire, Seconde Vue", | ||||||
|           "Vision Nocturne", |           "Vision Nocturne", | ||||||
|           "Nomade", |           "Nomade", | ||||||
|           "Lire/Ecrire, Très Résistant", |           "Lire/Ecrire, Très Résistant", | ||||||
|           0 |           0 | ||||||
|         ], |         ] | ||||||
|       } |       game.wfrp4e.config.species["human"] = "Humain"; | ||||||
|       game.wfrp4e.config.species = { |       game.wfrp4e.config.species["dwarf"] = "Nain"; | ||||||
|         "human": "Humain", |       game.wfrp4e.config.species["halfling"] = "Halfling"; | ||||||
|         "dwarf": "Nain", |       game.wfrp4e.config.species["helf"] = "Haut Elfe"; | ||||||
|         "halfling": "Halfling", |       game.wfrp4e.config.species["welf"] = "Elfe Sylvain"; | ||||||
|         "helf": "Haut Elfe", |  | ||||||
|         "welf": "Elfe Sylvain" |  | ||||||
|       } |  | ||||||
|  |  | ||||||
|       game.wfrp4e.config.statusEffects = [ |       game.wfrp4e.config.statusEffects = [ | ||||||
|         { |         { | ||||||
| @@ -1058,6 +1054,41 @@ export class WH4FRPatchConfig  { | |||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  |   /************************************************************************************/   | ||||||
|  |   static  perform_ogrekingdom_patch () { | ||||||
|  |  | ||||||
|  |     WFRP4E.speciesSkills["ogre"] = [ | ||||||
|  |         "Résistance à l'alcool", | ||||||
|  |         "Calme", | ||||||
|  |         "Résistance", | ||||||
|  |         "Parier", | ||||||
|  |         "Intimidation", | ||||||
|  |         "Langue (Au choix)", | ||||||
|  |         "Langue (Grumbarth)", | ||||||
|  |         "Langue (Mootland)", | ||||||
|  |         "Savoir (Ogres)", | ||||||
|  |         "Corps à corps (Base)", | ||||||
|  |         "Corps à corps  (Bagarre)", | ||||||
|  |         "Métier (Cuisiner)", | ||||||
|  |     ] | ||||||
|  |  | ||||||
|  |     WFRP4E.speciesTalents["ogre"] = [ | ||||||
|  |         "Sens aiguisé (Odorat), Sens aiguisé (Goût)", | ||||||
|  |         "Résistance (Mutation), Obstiné", | ||||||
|  |         "Vision nocturne", | ||||||
|  |         "Très résistant, Très fort", | ||||||
|  |         "Seconde vue, Sixième sens", | ||||||
|  |         "Trait - Morsure", | ||||||
|  |         "Trait - Taille (Grand)", | ||||||
|  |         "Psychologie - Faim d'Ogre", | ||||||
|  |         "Psychologie - Met favori (Cible)", | ||||||
|  |         "Trait de tribu d'ogre (Au choix)", | ||||||
|  |         0 | ||||||
|  |     ]     | ||||||
|  |  | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   /************************************************************************************/   | ||||||
|   static perform_rnhd_patch() { |   static perform_rnhd_patch() { | ||||||
|     game.wfrp4e.config.species['gnome'] = 'Gnome';     |     game.wfrp4e.config.species['gnome'] = 'Gnome';     | ||||||
|     game.wfrp4e.config.speciesSkills["gnome"] =  [ |     game.wfrp4e.config.speciesSkills["gnome"] =  [ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user