Kamihime Project Wiki
(moving aq)
(added fangs)
 
Line 128: Line 128:
 
Light = 'Luminous Rune',
 
Light = 'Luminous Rune',
 
Dark = 'Rune of Darkness'
 
Dark = 'Rune of Darkness'
  +
}
  +
local selected = names[type]
  +
  +
if (selected == nil) then
  +
return "Invalid"
  +
end
  +
  +
return selected
  +
end
  +
  +
function p.fang(frame)
  +
local type = frame.args['type']
  +
local names = {
  +
Fire = 'Corona',
  +
Water = 'Frost',
  +
Wind = 'Gale',
  +
Thunder = 'Electric',
  +
Light = 'Luminous',
  +
Dark = 'Chaos'
 
}
 
}
 
local selected = names[type]
 
local selected = names[type]

Latest revision as of 10:31, 23 January 2020

Documentation for this module may be created at Module:Materials/doc

-- Currently being used at: https://kamihime-project.fandom.com/wiki/User_blog:Skrub_Blazer/Fire_Raid_Quest_Test#Standard%20/%20Expert

-- p.disaster is also used for "Prison of X, Idea Cores"
 
local p = {}
 
function p.disaster(frame)
    local type = frame.args['type']
    local names = {
        Fire = 'Fire',
        Water = 'Ice',
        Wind = 'Wind',
        Thunder = 'Lightning',
        Light = 'Light',
        Dark = 'Darkness'
    }
    local selected = names[type]
 
    if (selected == nil) then
        return "Invalid"
    end
 
    return selected
end

function p.regalia(frame)
    local type = frame.args['type']
    local names = {
        Fire = 'Blaze',
        Water = 'Blizzard',
        Wind = 'Gale',
        Thunder = 'Bolt',
        Light = 'Light',
        Dark = 'Shadow'
    }
    local selected = names[type]
 
    if (selected == nil) then
        return "Invalid"
    end
 
    return selected
end

function p.idea_core(frame)
    local type = frame.args['type']
    local names = {
        Fire = 'Blazing',
        Water = 'Frozen',
        Wind = 'Howling',
        Thunder = 'Electric',
        Light = 'Flashing Light',
        Dark = 'Dark'
    }
    local selected = names[type]
 
    if (selected == nil) then
        return "Invalid"
    end
 
    return selected
end
 
function p.n_material(frame)
    local type = frame.args['type']
    local names = {
        Fire = 'Fire',
        Water = 'Water',
        Wind = 'Wind',
        Thunder = 'Lightning',
        Light = 'Light',
        Dark = 'Darkness'
    }
    local selected = names[type]
 
    if (selected == nil) then
        return "Invalid"
    end
 
    return selected
end

function p.r_bone(frame)
    local type = frame.args['type']
    local names = {
        Fire = 'Heliolatry',
        Water = 'Ice',
        Wind = 'Fluttering Verdancy',
        Thunder = 'Thunder',
        Light = 'Flashing Light',
        Dark = 'Obsidian'
    }
    local selected = names[type]
 
    if (selected == nil) then
        return "Invalid"
    end
 
    return selected
end

function p.r_lithograph(frame)
    local type = frame.args['type']
    local names = {
        Fire = 'Scorching Heat',
        Water = 'Ice',
        Wind = 'Raging Wind',
        Thunder = 'Electrical Lightning',
        Light = 'Holy Light',
        Dark = 'the Abyss'
    }
    local selected = names[type]
 
    if (selected == nil) then
        return "Invalid"
    end
 
    return selected
end

function p.sr_rune(frame)
    local type = frame.args['type']
    local names = {
        Fire = 'Flame Rune',
        Water = 'Frozen Rune',
        Wind = 'Cyclone Rune',
        Thunder = 'Lightning Rune',
        Light = 'Luminous Rune',
        Dark = 'Rune of Darkness'
    }
    local selected = names[type]
 
    if (selected == nil) then
        return "Invalid"
    end
 
    return selected
end

function p.fang(frame)
    local type = frame.args['type']
    local names = {
        Fire = 'Corona',
        Water = 'Frost',
        Wind = 'Gale',
        Thunder = 'Electric',
        Light = 'Luminous',
        Dark = 'Chaos'
    }
    local selected = names[type]
 
    if (selected == nil) then
        return "Invalid"
    end
 
    return selected
end

return p