v10 support - minor fixes
This commit is contained in:
		| @@ -354,11 +354,17 @@ Hooks.once('init', () => { | |||||||
|       "trapping_qualities_flaws": (value) => { |       "trapping_qualities_flaws": (value) => { | ||||||
|         if ( value ) {  |         if ( value ) {  | ||||||
|           let newQF = []; |           let newQF = []; | ||||||
|           //console.log("ATOUTS", value); |           //console.log("ATOUTS", value, typeof(value)); | ||||||
|           var i=0; |           let list = value | ||||||
|           //var re  = /(.*) (\d+)/i;         |           if (typeof(value) == "string") { | ||||||
|           for (i=0; i<value.length; i++) { |             let myList = value.split(",") | ||||||
|             newQF[i] = duplicate(value[i]); |             list = [] | ||||||
|  |             for (let l of myList) { | ||||||
|  |               list.push( { name: l.trim() } ) | ||||||
|  |             } | ||||||
|  |           } | ||||||
|  |           for (let i=0; i<list.length; i++) {             | ||||||
|  |             newQF[i] = duplicate(list[i] ) | ||||||
|             if ( newQF[i].name == "Trap Blade") { |             if ( newQF[i].name == "Trap Blade") { | ||||||
|               newQF[i].name = "TrapBlade"; // Auto-patch, without space! |               newQF[i].name = "TrapBlade"; // Auto-patch, without space! | ||||||
|               //console.log("PATCHED", trim); |               //console.log("PATCHED", trim); | ||||||
|   | |||||||
| @@ -14,7 +14,7 @@ | |||||||
|       "converter": "generic_localization" |       "converter": "generic_localization" | ||||||
|     }, |     }, | ||||||
|     "careergroup": "system.careergroup.value", |     "careergroup": "system.careergroup.value", | ||||||
|     "trappings": "data.trappings" |     "trappings": "system.trappings" | ||||||
|   }, |   }, | ||||||
| 	"entries": [ | 	"entries": [ | ||||||
| 		{ | 		{ | ||||||
|   | |||||||
							
								
								
									
										22
									
								
								module.json
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								module.json
									
									
									
									
									
								
							| @@ -8,7 +8,7 @@ | |||||||
|     } |     } | ||||||
|   ], |   ], | ||||||
|   "url": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr", |   "url": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr", | ||||||
|   "version": "6.2.1", |   "version": "6.2.2", | ||||||
|   "esmodules": [ |   "esmodules": [ | ||||||
|     "babele-register.js", |     "babele-register.js", | ||||||
|     "addon-register.js", |     "addon-register.js", | ||||||
| @@ -136,20 +136,26 @@ | |||||||
|     } |     } | ||||||
|   ], |   ], | ||||||
|   "manifest": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/raw/v10/module.json", |   "manifest": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/raw/v10/module.json", | ||||||
|   "download": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/archive/foundryvtt-wh4-lang-fr-6.2.1.zip", |   "download": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/archive/foundryvtt-wh4-lang-fr-6.2.2.zip", | ||||||
|   "id": "wh4-fr-translation", |   "id": "wh4-fr-translation", | ||||||
|   "compatibility": { |   "compatibility": { | ||||||
|     "minimum": "10", |     "minimum": "10", | ||||||
|     "verified": "10.285" |     "verified": "10.285" | ||||||
|   }, |   }, | ||||||
|   "relationships": { |   "relationships": { | ||||||
|     "systems": [{ |     "systems": [ | ||||||
|  |       { | ||||||
|         "id": "wfrp4e", |         "id": "wfrp4e", | ||||||
|       "type": "system" |         "type": "system", | ||||||
|     }], |         "compatibility": {} | ||||||
|     "requires": [{ |       } | ||||||
|  |     ], | ||||||
|  |     "requires": [ | ||||||
|  |       { | ||||||
|         "id": "babele", |         "id": "babele", | ||||||
|       "type": "module" |         "type": "module", | ||||||
|     }] |         "compatibility": {} | ||||||
|  |       } | ||||||
|  |     ] | ||||||
|   } |   } | ||||||
| } | } | ||||||
		Reference in New Issue
	
	Block a user