Anonymous

Module:Sandbox/AuronTest: Difference between revisions

From Melvor Idle
m
no edit summary
mNo edit summary
mNo edit summary
Line 397: Line 397:
end
end


-- TODO attackType no longer exists
function p.getCombatStyleName(styleNum)
function p.getCombatStyleName(styleNum)
   for name, num in Shared.skpairs(ConstantData.attackType) do
   return type(styleNum) == 'number' and Shared.titleCase(ConstantData.attackType[styleNum]) or "ERROR: Invalid combat style[[Category:Pages with script errors]]"
    if num == styleNum then
      return name
    end
  end
  return "ERROR: Invalid combat style[[Category:Pages with script errors]]"
end
end