7th-saga/web/views/levels.pug

52 lines
1.5 KiB
Plaintext

extends master.pug
block tab-content
table#main-table.table.table-sm.table-borderless.table-striped.table-hover.sticky-header
thead: tr.header
th Level
th Esuna
th Kamil
th Olvan
th Lejes
th Lux
th Valsu
th Wilme
- let level = 0;
- const wilme = { initial: [ 20, 2, 5, 7, 2, 4 ], level: [ 8, 1, 4, 5, 2, 4 ] };
- const lux = { initial: [ 18, 3, 5, 6, 3, 3 ], level: [ 7, 2, 4, 5, 3, 3 ] };
- const olvan = { initial: [ 18, 3, 4, 5, 3, 3 ], level: [ 6, 2, 3, 3, 3, 3 ] };
- const kamil = { initial: [ 16, 4, 4, 4, 3, 3 ], level: [ 5, 3, 3, 3, 3, 3 ] };
- const lejes = { initial: [ 16, 10, 4, 4, 3, 4 ], level: [ 5, 4, 3, 3, 3, 4 ] };
- const valsu = { initial: [ 15, 10, 4, 4, 4, 4 ], level: [ 5, 4, 2, 3, 4, 4 ] };
- const esuna = { initial: [ 14, 16, 3, 3, 4, 4 ], level: [ 5, 5, 2, 2, 4, 4 ] };
tbody.data
while level < 80
mixin calcCharStats(char)
- const values = char.initial.map((x, i) => Math.min(i < 4 ? 999 : 255, x + (char.level[i] * (level - 1))))
code: a.apply-level-stats(
href="#"
data-hp=values[0]
data-mp=values[1]
data-power=values[2]
data-guard=values[3]
data-magic=values[4]
data-speed=values[5]
)
= values.slice(0, 2).join('/')
= ' '
= values.slice(2).join('/')
tr
td= ++level
td: +calcCharStats(esuna)
td: +calcCharStats(kamil)
td: +calcCharStats(olvan)
td: +calcCharStats(lejes)
td: +calcCharStats(lux)
td: +calcCharStats(valsu)
td: +calcCharStats(wilme)