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

ajout des archétypes de taromancien et d'officier

This commit is contained in:
Maxime Moraine 2021-05-07 11:54:56 +02:00
parent 9b9a54b134
commit 233a8cc5de
10 changed files with 491 additions and 72 deletions

View file

@ -193,6 +193,23 @@ export default {
})
}
// let json = []
// for (var magicItem of results) {
// let mi = {}
// mi.name = magicItem.frontmatter.title
// mi.attunement = magicItem.frontmatter.attunement
// mi.rarity = magicItem.frontmatter.rarity
// mi.type = magicItem.frontmatter.type
// mi.subtype = magicItem.frontmatter.subtype
// mi.source = magicItem.frontmatter.source
// mi.content = magicItem.rawContent
// json.push(mi)
// }
//
// console.log(json)
// console.log(results)
return results
}
},

View file

@ -152,7 +152,19 @@
<script>
import { mapState } from 'vuex'
import Breadcrumb from '@theme/components/Breadcrumb'
import { displayChallenge } from '@theme/util/monsterHelpers'
import {
displayChallenge,
displayAC,
displayHP,
displayMovement,
displaySavingThrows,
displaySkills,
displayVulnerabilities,
displayResistances,
displayImmunities,
displayConditionImmunities,
displaySenses,
} from '@theme/util/monsterHelpers'
import { setUrlParams, getUrlParameter } from '@theme/util/filterHelpers'
import { isResourceInLibrary, handleTooltips } from '@theme/util'
import Monster from '@theme/components/Monster'
@ -351,6 +363,40 @@ export default {
results = classFiltered
}
// let json = []
// for (var monster of results) {
// let m = {}
// m.name = monster.frontmatter.title
// m.size = monster.frontmatter.size
// m.alignment = monster.frontmatter.alignment
// m.type = monster.frontmatter.type
// m.subtype = monster.frontmatter.subtype
// m.swarm = monster.frontmatter.isSwarm
// m.challenge = monster.frontmatter.challenge
// m.ac = displayAC(monster)
// m.hp = displayHP(monster)
// m.speed = displayMovement(monster)
// m.abilityScores = monster.frontmatter.abilityScores
// m.savingThrows = displaySavingThrows(monster)
// m.skills = displaySkills(monster)
// m.vulnerabilities = displayVulnerabilities(monster)
// m.resistances = displayResistances(monster)
// m.immunities = displayImmunities(monster)
// m.conditionImmunities = displayConditionImmunities(monster)
// m.senses = displaySenses(monster)
// m.languages = monster.frontmatter.languages
// m.telepathy = monster.frontmatter.telepathy
// m.source = monster.frontmatter.source
// m.sourcePage = monster.frontmatter.source_page
// m.content = monster.rawContent
// m.environments = monster.frontmatter.environments
// m.dungeon_types = monster.frontmatter.dungeonTypes
// json.push(m)
// }
//
// console.log(json)
// console.log(results)
return results
}
},

View file

@ -394,6 +394,27 @@ export default {
// }
// console.log(csv)
// let json = []
// for (var spell of results) {
// let s = {}
// s.name = spell.frontmatter.title
// s.casting_time = spell.frontmatter.casting_time
// s.classes = spell.frontmatter.classes
// s.components = spell.frontmatter.components
// s.concentration = spell.frontmatter.concentration
// s.description = spell.frontmatter.description
// s.duration = spell.frontmatter.duration
// s.level = spell.frontmatter.level
// s.range = spell.frontmatter.range
// s.ritual = spell.frontmatter.ritual
// s.school = spell.frontmatter.school
// s.source = spell.frontmatter.source
// s.content = spell.rawContent
// json.push(s)
// }
//
// console.log(json)
return results
}
},