Anonymous

Module:Sandbox/Constants: Difference between revisions

From Melvor Idle
no edit summary
(Small cleanup, added note for why modifierTypes is still needed)
No edit summary
Line 914: Line 914:
local baseName = modifierName
local baseName = modifierName
local modifier = GameData.rawData.modifierData[modifierName]
local modifier = GameData.rawData.modifierData[modifierName]
if Shared.startsWith(modifierName, "increased") or Shared.startsWith(modifierName, "decreased") then
baseName = string.sub(modifierName, 10)
end


if modifier == nil then
if modifier == nil then
return nil
return nil
end
if Shared.startsWith(modifierName, "increased") or Shared.startsWith(modifierName, "decreased") then
baseName = string.sub(modifierName, 10)
end
end