FANDOM


local p = {}
 
function p.description(frame)
    local skill = frame.args[1]
    local element = frame.args[2]
    local image = frame.args[3]
    local tooltip = frame.args[4]
    local multiplier = frame.args[5]
    local description = frame.args[6]
    local cooltime = string.upper(frame.args[7])
 
    local result = ''
 
    if skill ~= '' then
        result = '| style="text-align:center; padding: 15px 10px 0px 10px; width:90px;"|'
 
        if image ~= '' then
            result = result .. '[[File:' .. image .. '|50px]]<br>'
        else
            result = result .. '[[File:' .. skill .. ' (' .. element .. ').png|50px]]<br>'
        end
 
        if tooltip ~= '' then
            result = result .. '<b><span class="basic-tooltip" style="cursor: help; border-bottom: 1px dotted;" title="' .. tooltip .. '">' .. multiplier .. ' </span></b>\n'
        else
            result = result .. '<b><span class="basic-tooltip" style="cursor: help; border-bottom: 1px dotted;" title="This skill deals approximately ' .. multiplier .. ' of the ATK stat before reduction.">' .. multiplier .. ' </span></b>\n'
        end        
 
        result = result .. '|<b>' .. skill.. '</b>: ' .. description
 
        if cooltime == 'AUTO' then
            result = result .. ' [Automatic Effect]'
        elseif cooltime ~= '' then
            result = result .. ' (Reusable in ' .. cooltime .. ' turns)'
        end
 
        return result
 
    end
 
 
 
end
 
 
function p.skillups(frame)
    local skillup = {frame.args[1], frame.args[2], frame.args[3], frame.args[4], frame.args[5], frame.args[6], frame.args[7], frame.args[8]}
 
    local i = 2
    local counter = 1
    local result 
 
    if skillup[1] ~= '' then
        result = '|\n|\n'
    else 
        result = ''
    end
 
    while i <= 9 do
        if skillup[counter] ~= '' then
            result = result .. '* Lv.' .. i .. ' ' .. skillup[counter] .. '\n'
        end
 
        i = i + 1
        counter = counter + 1
    end
 
 
    result = result .. '|-'
 
    return result
 
end
 
return p

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.