17,007
edits
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', | -- 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 |