Remove game version dependency of jewel radius data

This commit is contained in:
ppoelzl
2020-11-08 21:05:19 +01:00
parent 3bdfc8be9f
commit 047148ef5d
2 changed files with 2 additions and 2 deletions

View File

@@ -247,7 +247,7 @@ function ItemClass:ParseRaw(raw)
-- Jewel radius is variable and must be read from it's mods instead after they are parsed
deferJewelRadiusIndexAssignment = true
else
for index, data in pairs(verData.jewelRadius) do
for index, data in pairs(data.jewelRadius) do
if specVal:match("^%a+") == data.label then
self.jewelRadiusIndex = index
break

View File

@@ -399,7 +399,7 @@ local PassiveTreeClass = newClass("PassiveTree", function(self, treeVersion)
for nodeId, socket in pairs(self.sockets) do
socket.nodesInRadius = { }
socket.attributesInRadius = { }
for radiusIndex, radiusInfo in ipairs(data[self.targetVersion].jewelRadius) do
for radiusIndex, radiusInfo in ipairs(data.jewelRadius) do
socket.nodesInRadius[radiusIndex] = { }
socket.attributesInRadius[radiusIndex] = { }
local outerRadiusSquared = radiusInfo.outer * radiusInfo.outer