1
0
Fork 0
mirror of https://github.com/em-squared/5e-drs.git synced 2025-10-30 05:04:21 +00:00

améliorations et corrections diverses

This commit is contained in:
Maxime Moraine 2022-02-21 20:56:20 +01:00
parent 65ac9b531f
commit 530399d55e
10 changed files with 285 additions and 10 deletions

View file

@ -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
}
},