Remove game version dependency of jewel radius data
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user