items, weapons, armor, accessories
This commit is contained in:
parent
77a2e08c3e
commit
ff9452ec3d
@ -222,7 +222,7 @@ exports.items = [
|
||||
item('S Dstry', 100, 'Defense2', [ polasu ]),
|
||||
item('B Aglty', 100, 'Agility', [ pang, padal, pasanda, palsu, airship ]),
|
||||
item('Mirror', 200, 'Reflect Petrify', [ zellis, pang, pandam, guanta, ligena, palsu, airship ]),
|
||||
item('Harp', 500, 'Prevents Vacuum1/2', [ polasu, bilthem, ligena, airship ]),
|
||||
item('Harp', 500, 'Prevents Vacuum', [ polasu, bilthem, ligena, airship ]),
|
||||
item('B Fire', 20, 'Fire1', [ bone, guanta ]),
|
||||
item('B Ice', 20, 'Ice1', [ dowaine, belaine, bugask ]),
|
||||
item('B Fossl', 100, 'Petrify', [ bonro, pang, bugask ]),
|
||||
|
@ -36,6 +36,34 @@ app.get('/exp', (req, res) => {
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/weapons', (req, res) => {
|
||||
res.render('weapons', {
|
||||
context: 'weapons',
|
||||
weapons: items.weapons,
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/armor', (req, res) => {
|
||||
res.render('armor', {
|
||||
context: 'armor',
|
||||
armor: items.armor,
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/accessories', (req, res) => {
|
||||
res.render('accessories', {
|
||||
context: 'accessories',
|
||||
accessories: items.accessories,
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/items', (req, res) => {
|
||||
res.render('items', {
|
||||
context: 'items',
|
||||
items: items.items,
|
||||
});
|
||||
});
|
||||
|
||||
const port = process.env.PORT || 18000;
|
||||
|
||||
const server = app.listen(port, () => {
|
||||
|
44
web/views/accessories.pug
Normal file
44
web/views/accessories.pug
Normal file
@ -0,0 +1,44 @@
|
||||
extends master.pug
|
||||
|
||||
block tab-content
|
||||
+apprenticeFilterForm()
|
||||
|
||||
div.table-responsive
|
||||
table.table.table-sm.table-borderless.table-hover.table-striped
|
||||
thead: tr
|
||||
+sortHeader('Name')
|
||||
+sortHeader('Defense')
|
||||
+sortHeader('Cost')
|
||||
+sortHeader('Fire')
|
||||
+sortHeader('Ice')
|
||||
+sortHeader('Thunder')
|
||||
+sortHeader('Vacuum')
|
||||
+sortHeader('Debuff')
|
||||
th.align-middle Users
|
||||
th.align-middle Locations
|
||||
tbody: each item in accessories
|
||||
tr(
|
||||
data-name=item.name
|
||||
data-defense=item.defense
|
||||
data-cost=item.cost
|
||||
data-res-fire=item.resistance.fire
|
||||
data-res-ice=item.resistance.ice
|
||||
data-res-thunder=item.resistance.thunder
|
||||
data-res-vacuum=item.resistance.vacuum
|
||||
data-res-debuff=item.resistance.debuff
|
||||
)
|
||||
td: strong= item.name
|
||||
td.text-right: code= item.defense
|
||||
td.text-right: code= item.cost.toLocaleString()
|
||||
td.text-right: code= item.resistance.fire
|
||||
td.text-right: code= item.resistance.ice
|
||||
td.text-right: code= item.resistance.thunder
|
||||
td.text-right: code= item.resistance.vacuum
|
||||
td.text-right: code= item.resistance.debuff
|
||||
td: ul.list-horizontal
|
||||
each char in item.users
|
||||
li= char
|
||||
td: ul.list-horizontal
|
||||
each location in item.locations
|
||||
li= location
|
||||
|
42
web/views/armor.pug
Normal file
42
web/views/armor.pug
Normal file
@ -0,0 +1,42 @@
|
||||
extends master.pug
|
||||
|
||||
block tab-content
|
||||
div.table-responsive
|
||||
table.table.table-sm.table-borderless.table-hover.table-striped
|
||||
thead: tr
|
||||
+sortHeader('Name')
|
||||
+sortHeader('Defense')
|
||||
+sortHeader('Cost')
|
||||
+sortHeader('Fire')
|
||||
+sortHeader('Ice')
|
||||
+sortHeader('Thunder')
|
||||
+sortHeader('Vacuum')
|
||||
+sortHeader('Debuff')
|
||||
th.align-middle Users
|
||||
th.align-middle Locations
|
||||
tbody: each item in armor
|
||||
tr(
|
||||
data-name=item.name
|
||||
data-defense=item.defense
|
||||
data-cost=item.cost
|
||||
data-res-fire=item.resistance.fire
|
||||
data-res-ice=item.resistance.ice
|
||||
data-res-thunder=item.resistance.thunder
|
||||
data-res-vacuum=item.resistance.vacuum
|
||||
data-res-debuff=item.resistance.debuff
|
||||
)
|
||||
td: strong= item.name
|
||||
td.text-right: code= item.defense
|
||||
td.text-right: code= item.cost.toLocaleString()
|
||||
td.text-right: code= item.resistance.fire
|
||||
td.text-right: code= item.resistance.ice
|
||||
td.text-right: code= item.resistance.thunder
|
||||
td.text-right: code= item.resistance.vacuum
|
||||
td.text-right: code= item.resistance.debuff
|
||||
td: ul.list-horizontal
|
||||
each char in item.users
|
||||
li= char
|
||||
td: ul.list-horizontal
|
||||
each location in item.locations
|
||||
li= location
|
||||
|
22
web/views/items.pug
Normal file
22
web/views/items.pug
Normal file
@ -0,0 +1,22 @@
|
||||
extends master.pug
|
||||
|
||||
block tab-content
|
||||
div.row: div.col-12: div.table-responsive
|
||||
table.table.table-sm.table-borderless.table-hover.table-striped
|
||||
thead: tr
|
||||
+sortHeader('Name')
|
||||
+sortHeader('Cost')
|
||||
th.align-middle Effect
|
||||
th.align-middle Locations
|
||||
tbody: each item in items
|
||||
tr(
|
||||
data-name=item.name
|
||||
data-cost=item.cost
|
||||
)
|
||||
td: strong= item.name
|
||||
td.text-right: code= item.cost.toLocaleString()
|
||||
td: em= item.effect
|
||||
td: ul.list-horizontal
|
||||
each location in item.locations
|
||||
li= location
|
||||
|
@ -20,11 +20,22 @@ html
|
||||
else
|
||||
small: em.text-muted= text || 'n/a'
|
||||
|
||||
mixin apprenticeFilterForm()
|
||||
form.apprentice-filter-form: div.d-flex.justify-content-center
|
||||
each apprentice in [ 'Esuna', 'Kamil', 'Olvan', 'Lejes', 'Lux', 'Valsu', 'Wilme' ]
|
||||
div.form-check-inline
|
||||
- const id = 'apprentice-' + apprentice;
|
||||
input.form-check-input(type="checkbox" name=apprentice id=id)
|
||||
label.form-check-label(for=id)= apprentice
|
||||
|
||||
div.container-fluid
|
||||
ul.nav.nav-tabs.mt-4.px-4
|
||||
ul.nav.nav-tabs.mt-4.px-4.position-sticky(style="top: 0; background-color: white;")
|
||||
li.nav-item: a.nav-link(href="/enemies" class=(context === 'enemies' ? 'active' : '')) Enemies
|
||||
li.nav-item: a.nav-link(href="/spells" class=(context === 'spells' ? 'active' : '')) Spells
|
||||
li.nav-item: a.nav-link(href="/items" class=(context === 'items' ? 'active' : '')) Items
|
||||
li.nav-item: a.nav-link(href="/weapons" class=(context === 'weapons' ? 'active' : '')) Weapons
|
||||
li.nav-item: a.nav-link(href="/armor" class=(context === 'armor' ? 'active' : '')) Armor
|
||||
li.nav-item: a.nav-link(href="/accessories" class=(context === 'accessories' ? 'active' : '')) Accessories
|
||||
li.nav-item: a.nav-link(href="/exp" class=(context === 'exp' ? 'active' : '')) Experience
|
||||
li.nav-item: a.nav-link(href="/calc" class=(context === 'calc' ? 'active' : '')) Calculations
|
||||
div.tab-content
|
||||
|
27
web/views/weapons.pug
Normal file
27
web/views/weapons.pug
Normal file
@ -0,0 +1,27 @@
|
||||
extends master.pug
|
||||
|
||||
block tab-content
|
||||
div.row: div.col-12.col-md-6: div.table-responsive
|
||||
table.table.table-sm.table-borderless.table-hover.table-striped
|
||||
thead: tr
|
||||
+sortHeader('Name')
|
||||
+sortHeader('Power')
|
||||
+sortHeader('Cost')
|
||||
th.align-middle Users
|
||||
th.align-middle Locations
|
||||
tbody: each weapon in weapons
|
||||
tr(
|
||||
data-name=weapon.name
|
||||
data-power=weapon.attack
|
||||
data-cost=weapon.cost
|
||||
)
|
||||
td: strong= weapon.name
|
||||
td.text-right: code= weapon.attack
|
||||
td.text-right: code= weapon.cost.toLocaleString()
|
||||
td: ul.list-horizontal
|
||||
each char in weapon.users
|
||||
li= char
|
||||
td: ul.list-horizontal
|
||||
each location in weapon.locations
|
||||
li= location
|
||||
|
Loading…
Reference in New Issue
Block a user