Compare commits

...

2 Commits

2 changed files with 21 additions and 1 deletions

View File

@ -48,7 +48,7 @@ module.exports = {
priority: 1, priority: 1,
load: async (plugin, app) => { load: async (plugin, app) => {
// Load up our DB. // Load up our DB.
const db_dir = path.resolve(path.join(app.config.srd, 'db')) const db_dir = path.resolve(app.config.aedifex)
await refresh(plugin, app, db_dir) await refresh(plugin, app, db_dir)

View File

@ -82,6 +82,26 @@
{{? it.results }} {{? it.results }}
{{#def.entry:it.results[0] || ''}} {{#def.entry:it.results[0] || ''}}
<h2>got results</h2> <h2>got results</h2>
{{? it.collection === "gear" }}
gear
{{? it.type }}
got type
{{? it.type === "weapon"}}
<h1>Weapons</h1>
{{#def.weapons_table:it.results || ''}}
{{?? it.type === "armor"}}
<h1>Armor</h1>
TODO
{{?? it.type === "consumable"}}
<h1>Consumables</h1>
{{#def.consumables_table:it.results || ''}}
{{?}}
{{?}}
{{?? it.collection === "specimens" }}
specimens
{{?}}
{{?? !it.name }} {{?? !it.name }}
{{? it.type === "weapon"}} {{? it.type === "weapon"}}
<h1>Weapons</h1> <h1>Weapons</h1>