mirror of
				https://github.com/em-squared/5e-drs.git
				synced 2025-10-30 21:24:18 +00:00 
			
		
		
		
	améliorations et corrections diverses
This commit is contained in:
		
							parent
							
								
									65ac9b531f
								
							
						
					
					
						commit
						530399d55e
					
				
					 10 changed files with 285 additions and 10 deletions
				
			
		|  | @ -415,6 +415,37 @@ export default { | |||
|       // | ||||
|       // console.log(json) | ||||
| 
 | ||||
|       // let json = [] | ||||
|       // for (var spell of results) { | ||||
|       //   let s = {} | ||||
|       //   s.title = spell.frontmatter.title | ||||
|       //   let classes = [] | ||||
|       //   const EQUIVALENTS = { | ||||
|       //     'Barde': 'bard', | ||||
|       //     'Barbare': 'barbarian', | ||||
|       //     'Clerc': 'cleric', | ||||
|       //     'Druide': 'druid', | ||||
|       //     'Guerrier': 'figther', | ||||
|       //     'Moine': 'monk', | ||||
|       //     'Paladin': 'paladin', | ||||
|       //     'Rôdeur': 'ranger', | ||||
|       //     'Roublard': 'rogue', | ||||
|       //     'Ensorceleur/Sorcelame': 'sorcerer', | ||||
|       //     'Magicien': 'wizard', | ||||
|       //     'Sorcier': 'warlock', | ||||
|       //     'Ombrelame': 'shadowblade', | ||||
|       //   } | ||||
|       //   for (var classe of spell.frontmatter.classes) { | ||||
|       //     if (EQUIVALENTS[classe]) { | ||||
|       //       classes.push(EQUIVALENTS[classe]) | ||||
|       //     } | ||||
|       //   } | ||||
|       //   s.classes = classes | ||||
|       //   s.slug = spell.path.split('/')[2] | ||||
|       //   json.push(s) | ||||
|       // } | ||||
|       // console.log(json) | ||||
| 
 | ||||
|       return results | ||||
|     } | ||||
|   }, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Maxime Moraine
						Maxime Moraine