Module:Constants: Difference between revisions

_getModifierText: Fix for Golbin raid starting weapon
No edit summary
(_getModifierText: Fix for Golbin raid starting weapon)
Line 794: Line 794:
['VMUL'] = function(val) return 2^val end,
['VMUL'] = function(val) return 2^val end,
['VITEM'] = function(val)
['VITEM'] = function(val)
local item = GameData.getEntityByID('items', val)
-- For golbin raid starting weapons
local startingWeapons = { 'melvorD:Bronze_Scimitar', 'melvorD:Adamant_Scimitar' }
local itemID = startingWeapons[val + 1]
local item = GameData.getEntityByID('items', itemID)
if item ~= nil then
if item ~= nil then
return item.name
return item.name
else
return 'Unknown'
end
end
end
end