Anonymous

Module:Constants: Difference between revisions

From Melvor Idle
getCombatStyleName: Validate string representation of combat styles also
m (Correct skills for some modifiers)
(getCombatStyleName: Validate string representation of combat styles also)
Line 409: Line 409:
return Shared.titleCase(styleName)
return Shared.titleCase(styleName)
end
end
elseif type(styleNum) == 'string' and type(ConstantData.attackType[string.lower(styleNum)]) == 'number' then
return Shared.titleCase(styleNum)
end
end
return "ERROR: Invalid combat style[[Category:Pages with script errors]]"
return "ERROR: Invalid combat style[[Category:Pages with script errors]]"