Anonymous

Module:GolbinRaid: Difference between revisions

From Melvor Idle
Removed prefix code in getRaidModifierList
(Updated for changes in Constants, getModifierDetails)
(Removed prefix code in getRaidModifierList)
Line 86: Line 86:
for i, modDet in ipairs(GameData.rawData.golbinRaid.possibleModifiers) do
for i, modDet in ipairs(GameData.rawData.golbinRaid.possibleModifiers) do
local baseName, modText, isNeg, modifyValue = Constants.getModifierDetails(modDet.key)
local baseName, modText, isNeg, modifyValue = Constants.getModifierDetails(modDet.key)
--TODO: Is this necessary? getModifierDetails has the same code and this function doesn't have params
local prefix = ''
if Shared.startsWith(baseName, 'increased') or Shared.startsWith(baseName, 'decreased') then
prefix = string.sub(baseName, 1, 9)
end
if modList[baseName] == nil then
if modList[baseName] == nil then
local modVal = {1, 5}
local modVal = {1, 5}