12,704
edits
m (getSlayerTierByLevel: Further fixes) |
(_getModifierText: Fix issue with interpretation of 'V+100' modifier values) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 65: | Line 65: | ||
["MaxHitPercent"] = { text = "{V}% Max Hit", skills = {'Combat'} }, | ["MaxHitPercent"] = { text = "{V}% Max Hit", skills = {'Combat'} }, | ||
["AltMagicSkillXP"] = { text = "{V}% Alt. Magic Skill XP", skills = {'Magic'} }, | ["AltMagicSkillXP"] = { text = "{V}% Alt. Magic Skill XP", skills = {'Magic'} }, | ||
["MinAirSpellDmg"] = { text = "{VX} Min Air Spell Dmg", skills = {' | ["MinAirSpellDmg"] = { text = "{VX} Min Air Spell Dmg", skills = {'Magic'} }, | ||
["AutoEatEfficiency"] = { text = "{V}% Auto Eat Efficiency", skills = {'Combat'} }, | ["AutoEatEfficiency"] = { text = "{V}% Auto Eat Efficiency", skills = {'Combat'} }, | ||
["GPFromThieving"] = { text = "{V}% GP From Thieving", skills = {'Thieving'} }, | ["GPFromThieving"] = { text = "{V}% GP From Thieving", skills = {'Thieving'} }, | ||
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]]" | ||
Line 523: | Line 525: | ||
['VX'] = function(val) return val * 10 end, | ['VX'] = function(val) return val * 10 end, | ||
['VX100'] = function(val) return val * 100 end, | ['VX100'] = function(val) return val * 100 end, | ||
['V | ['V+100'] = function(val) return val + 100 end, | ||
['VMUL'] = function(val) return 2^val end, | ['VMUL'] = function(val) return 2^val end, | ||
['VITEM'] = function(val) | ['VITEM'] = function(val) |