|
|
@ -4,6 +4,20 @@ local utils = require "utils" |
|
|
|
local yqtemplateform = utils.readfile("yqform.etlua") |
|
|
|
|
|
|
|
local form = etlua.compile(yqtemplateform) |
|
|
|
--- @type [table] |
|
|
|
local classes = { |
|
|
|
{ n = "Beast", f = "c01.beast.png" }, |
|
|
|
{ n = "Swordsman", f = "c02.swordsman.png" }, |
|
|
|
{ n = "Spirit Bird", f = "c03.spirit-bird.png" }, |
|
|
|
{ n = "Twin Blades", f = "c04.twin-blades.png" }, |
|
|
|
{ n = "Healer", f = "c05.healer.png" }, |
|
|
|
{ n = "Summoner", f = "c06.summoner.png" }, |
|
|
|
{ n = "Tamer", f = "c07.tamer.png" }, |
|
|
|
{ n = "Pugilist", f = "c08.pugilist.png" }, |
|
|
|
{ n = "Mounted Fighter", f = "c09.mounted-fighter.png" }, |
|
|
|
{ n = "Fruit Animal", f = "c10.fruit-animal.png" }, |
|
|
|
{ n = "Spellcaster", f = "c11.spellcaster.png" } |
|
|
|
} |
|
|
|
|
|
|
|
return { |
|
|
|
desc = "Creates Yokoka’s quest-style personal status page", |
|
|
@ -33,21 +47,10 @@ return { |
|
|
|
end |
|
|
|
fcgi.print( |
|
|
|
form { |
|
|
|
encoder = require"base64".encode, |
|
|
|
encoder = require "base64".encode, |
|
|
|
readfile = utils.readfile, |
|
|
|
args = args, |
|
|
|
classes = { |
|
|
|
"Beast", |
|
|
|
"Swordsman", |
|
|
|
"Spirit Bird", |
|
|
|
"Twin Blades", |
|
|
|
"Healer", |
|
|
|
"Summoner", |
|
|
|
"Tamer", |
|
|
|
"Pugilist", |
|
|
|
"Mounted Fighter", |
|
|
|
"Fruit Animal", |
|
|
|
"Spellcaster" |
|
|
|
}, |
|
|
|
classes = classes |
|
|
|
elements = { |
|
|
|
"Fire", "Water", "Earth", "Air", |
|
|
|
"Wood", "Electricity", "Metals", "Dreams", |
|
|
|