Module:IdToString

-- This module provides mappings of game type IDs (weapon types, elements) -- to their string representations.

local m = {}

local buildup_pieces = { ['1'] = 'Unbind', ['2'] = 'Refinement', ['3'] = 'Slots', ['5'] = 'Weapon Bonus', ['6'] = 'Copies', } local classes = { ['0'] = 'None', ['1'] = 'Attack', ['2'] = 'Defense', ['3'] = 'Support', ['4'] = 'Healing', } local elements = { ['0'] = 'None', ['1'] = 'Flame', ['2'] = 'Water', ['3'] = 'Wind', ['4'] = 'Light', ['5'] = 'Shadow', ['99'] = 'None' } local weapons = { ['0'] = 'None', ['1'] = 'Sword', ['2'] = 'Blade', ['3'] = 'Dagger', ['4'] = 'Axe', ['5'] = 'Lance', ['6'] = 'Bow', ['7'] = 'Wand', ['8'] = 'Staff', ['9'] = 'Manacaster' } local weapon_series = { ['1'] = 'Core', ['2'] = 'Void', ['3'] = 'High Dragon', ['4'] = 'Agito', ['5'] = 'Chimeratech', ['6'] = 'Other', }

-- Usage: function m.BuildupPieces(frame, options) local typeId = frame.args[1] return buildup_pieces[typeId] or typeId end

-- Usage: function m.Class(frame, options) local typeId = frame.args[1] return classes[typeId] or typeId end

-- Usage: function m.Element(frame, options) local typeId = frame.args[1] return elements[typeId] or typeId end

-- Usage: function m.Weapon(frame, options) local typeId = frame.args[1] return weapons[typeId] or typeId end

-- Usage: function m.WeaponSeries(frame, options) local typeId = frame.args[1] return weapon_series[typeId] or typeId end

return m