Module:Moves

local moves = {} local CategoryData = mw.loadData('Module:Moves/Category') local PowerData = mw.loadData('Module:Moves/Power') local TypeData = mw.loadData('Module:Moves/Type') local AccuracyData = mw.loadData('Module:Moves/Accuracy') local PPData = mw.loadData('Module:Moves/PP') function moves.Category(frame) local CategoryText = frame.args[1] return CategoryData[CategoryText] or "Physical" end function moves.Power(frame) local PowerText = frame.args[1] return PowerData[PowerText] or "—" end function moves.Type(frame) local TypeText = frame.args[1] return TypeData[TypeText] or "Normal" end

function moves.Accuracy(frame) local AccuracyText = frame.args[1] return AccuracyData[AccuracyText] or "100" end

function moves.PP(frame) local PPText = frame.args[1] return PPData[PPText] or "10" end

return moves