forked from public/foundryvtt-wh4-lang-fr-fr
		
	Compare commits
	
		
			4 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 9c160b5e93 | |||
| ffd187a832 | |||
| 401e507559 | |||
| 8310029b81 | 
| @@ -1,3 +1,6 @@ | ||||
| import WFRP4E from "/systems/wfrp4e/modules/system/config-wfrp4e.js" | ||||
| import WFRP_Tables from "/systems/wfrp4e/modules/system/tables-wfrp4e.js"; | ||||
|  | ||||
|  | ||||
| /************************************************************************************/ | ||||
| const _patch_eis = () => { | ||||
| @@ -27,6 +30,7 @@ const _patch_eis = () => { | ||||
|   } | ||||
| } | ||||
|  | ||||
|  | ||||
| /************************************************************************************/ | ||||
| const _fix_post_module_loading = () => { | ||||
|    | ||||
| @@ -216,7 +220,9 @@ let __wfrp4e_tables =  { "career": 1, "critbody":1, "critleg": 1, "doom": 1, "ey | ||||
|                           "critarm": 1, "crithead": 1, "delirium": 1, "event": 1, "hair": 1, "minormis": 1, "mutatephys": 1, "talents": 1, "wrath": 1        | ||||
|                        } | ||||
| let __to_table_translate =  [ { name:"traits", transl:"Traits"}, {name:"talents", transl:"Talents"}, {name:"skills", transl:"Compétences"} ,  | ||||
|                               { name:"careers", transl:"Carrières"}, {name:"spells", transl:"Sorts"}, {name:"prayers", transl:"Bénédictions et Miracles" }  | ||||
|                               { name:"careers", transl:"Carrières"}, {name:"spells", transl:"Sorts"}, {name:"prayers", transl:"Bénédictions et Miracles" },  | ||||
|                               { name: "diseases", transl: "Maladies"}, { name: "injuries", transl: "Blessures"}, { name: "criticals", transl: "Critiques"}, | ||||
|                               { name: "trappings", transl: "Equipement"} | ||||
|                             ] | ||||
|  | ||||
| /************************************************************************************/ | ||||
| @@ -404,7 +410,9 @@ Hooks.on("chatMessage", (html, content, msg) => { | ||||
| /************************************************************************************/ | ||||
| /* Additionnal hooks ready */ | ||||
| Hooks.once('ready', () => { | ||||
|      | ||||
|    | ||||
|   _patch_initiative();   | ||||
|  | ||||
|   if (game.user.isGM) | ||||
|     ChatMessage.create( { title: "Patch en progression", content: "Les modules WFRP4E sont <strong>en cours de patch pour traduction</strong>... Merci <strong>d'attendre le message de fin</strong> (dans environ 20 secondes)", whisper: ChatMessage.getWhisperRecipients("GM") } );       | ||||
|  | ||||
| @@ -423,7 +431,7 @@ Hooks.once('ready', () => { | ||||
|   __auto_patch_translation_journal_compendium( compmod ) | ||||
|   /* Uncomment this to auto-create the translation tables  | ||||
|      Auto-create translation journal tables | ||||
|   __create_translation_tables(compmod); | ||||
|   */ | ||||
|   // __create_translation_tables(compmod); | ||||
|    | ||||
| } ); | ||||
|   | ||||
| @@ -1,6 +1,8 @@ | ||||
| import ActorSheetWfrp4e from "/systems/wfrp4e/modules/actor/sheet/actor-sheet.js" | ||||
|  | ||||
| /************************************************************************************/ | ||||
| /* Override some methods of the WFRP4 actor class, mainly to compute spells/weapons */ | ||||
| class ActorWfrp4e_fr extends ActorWfrp4e { | ||||
| class ActorWfrp4e_fr extends ActorSheetWfrp4e { | ||||
|   | ||||
|   /** | ||||
|    * Calculates a weapon's range or damage formula. | ||||
| @@ -154,6 +156,7 @@ class ActorWfrp4e_fr extends ActorWfrp4e { | ||||
|   } | ||||
| } | ||||
|  | ||||
|  | ||||
| /************************************************************************************/ | ||||
| var compmod = "wfrp4e"; | ||||
|  | ||||
| @@ -161,7 +164,9 @@ var compmod = "wfrp4e"; | ||||
| Hooks.once('init', () => { | ||||
|  | ||||
|   // Replace to manage specific bonuses/char. computations | ||||
|   CONFIG.Actor.entityClass = ActorWfrp4e_fr;   | ||||
|   //CONFIG.Actor.entityClass = ActorWfrp4e_fr;   | ||||
|   //Actors.unregisterSheet("core", ActorSheetWfrp4eCharacter); | ||||
|   Actors.registerSheet("wfrp4e", ActorWfrp4e_fr, { types: ["character"], makeDefault: true }); | ||||
|      | ||||
|   // Check various settings in the installation   | ||||
|   game.modules.forEach((module, name) => { | ||||
|   | ||||
							
								
								
									
										15
									
								
								fr.json
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								fr.json
									
									
									
									
									
								
							| @@ -1121,5 +1121,18 @@ | ||||
|     "Garneder": "Jardinier", | ||||
|  | ||||
|     "Broken": "Dressé", | ||||
|     "Home": "Revenir à la maison"     | ||||
|     "Home": "Revenir à la maison", | ||||
|  | ||||
|     "TRAVEL.TravelMessageBase": "De <b>{from}</b> à <b>{to}</b> : ", | ||||
|     "TRAVEL.TravelMessageRoad": "<br><b>Route</b> : {road_distance} km<br>  En diligence : {road_days} jours, dangerosité {road_danger_string}<br>  A cheval (lent) : {road_horse_heavy_days} jours, dangerosité {road_danger_string}<br>  A cheval (rapide) : {road_horse_fast_days} jours, dangerosité {road_danger_string}<br>  A pieds : {road_feet_days} jours, dangerosité {road_danger_feet_string}", | ||||
|     "TRAVEL.TravelMessageRiver": "<br><b>Rivière</b> : {river_distance} km<br>  En bateau : {river_days} jours, dangerosité {river_danger_string}", | ||||
|     "TRAVEL.TravelMessageSea": "<br><b>Mer</b> : {sea_distance} km<br>  En bateau : {sea_days} jours, dangerosité {sea_danger_string}", | ||||
|     "TRAVEL.TownPrompt": "Sélectionnez une ville de destination", | ||||
|     "TRAVEL.TownOriginPrompt": "Sélectionnez une ville de départ", | ||||
|     "TRAVEL.DangerVeryLow": "Trés Faible", | ||||
|     "TRAVEL.DangerLow" : "Faible", | ||||
|     "TRAVEL.DangerMedium" : "Moyenne", | ||||
|     "TRAVEL.DangerHigh" : "Haute", | ||||
|     "TRAVEL.DangerVeryHigh" : "Très Haute", | ||||
|     "TRAVEL.Helper" : "Les distances sont basés sur le document <i>Travel Distances in the Empire</i>, de <i>Jackdays</i>. Ces distances ont été revus sur la base de documents historiques concernant les voyages. Le sens du courant des rivières a également été pris en compte.<br><b>Usage</b> : <b>/travel ville</b> ou <b>/travel ville1 ville2</b> ou <b>/travel</b>" | ||||
| } | ||||
|   | ||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										11
									
								
								wkspace.code-workspace
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								wkspace.code-workspace
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| { | ||||
| 	"folders": [ | ||||
| 		{ | ||||
| 			"path": "../WFRP-4th-Edition-FoundryVTT_2_SLADECRAVEN" | ||||
| 		}, | ||||
| 		{ | ||||
| 			"path": "." | ||||
| 		} | ||||
| 	], | ||||
| 	"settings": {} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user