Module:Type box

local p = {}

local typeList = {   "Normal", "Water", "Electric", "Fighting", "Ground", "Psychic", "Rock", "Dark", "Steel", "Fire", "Grass", "Ice", "Poison", "Flying", "Bug", "Ghost", "Dragon", "Fairy" }; local typeWeaknesses = {   ["Normal"] = {"Fighting"}, ["Water"] = {"Electric","Grass"}, ["Electric"] = {"Ground"}, ["Fighting"] = {"Psychic","Flying","Fairy"}, ["Ground"] = {"Water","Grass","Ice"}, ["Psychic"] = {"Dark","Bug","Ghost"}, ["Rock"] = {"Water","Fighting","Ground","Steel","Grass"}, ["Dark"] = {"Fighting","Bug","Fairy"}, ["Steel"] = {"Fighting","Ground","Fire"}, ["Fire"] = {"Water","Ground","Rock"}, ["Grass"] = {"Fire","Ice","Poison","Flying","Bug"}, ["Ice"] = {"Fighting","Rock","Steel","Fire"}, ["Poison"] = {"Ground","Psychic"}, ["Flying"] = {"Electric","Rock","Ice"}, ["Bug"] = {"Rock","Fire","Flying"}, ["Ghost"] = {"Dark","Ghost"}, ["Dragon"] = {"Ice","Dragon","Fairy"}, ["Fairy"] = {"Steel","Poison"} };

local typeWeaknesses1 = {   ["Psychic"] = {"Bug"}, ["Poison"] = {"Ground","Psychic","Bug"}, ["Bug"] = {"Rock","Fire","Poison","Flying"} };

local typeResistances = {   ["Normal"] = {}, ["Water"] = {"Water","Steel","Fire","Ice"}, }

function p.base(frame) local args =frame:getParent; return ""; end

return p;