@@ -262,41 +262,41 @@ directiveTable.base = function(state, args, out)
262262 end
263263 -- Special handling of Runes and SoulCores
264264 if state .type == " Rune" or state .type == " SoulCore" or state .type == " Talisman" then
265- local soulcore = dat (" SoulCores" ):GetRow (" BaseItemTypes" , baseItemType )
266- local soulcoresperclass = dat (" SoulCoresPerClass" ):GetRow (" BaseItemType" , baseItemType )
265+ local soulCores = dat (" SoulCores" ):GetRow (" BaseItemTypes" , baseItemType )
266+ local soulCoresPerClass = dat (" SoulCoresPerClass" ):GetRow (" BaseItemType" , baseItemType )
267267
268268 local stats = { }
269269 local outLines = { }
270- if soulcore then
271- if # soulcore .StatsKeysWeapon > 0 then
272- for i , statKey in ipairs (soulcore .StatsKeysWeapon ) do
273- local statValue = soulcore [" StatsValuesWeapon" ][i ]
270+ if soulCores then
271+ if # soulCores .StatsKeysWeapon > 0 then
272+ for i , statKey in ipairs (soulCores .StatsKeysWeapon ) do
273+ local statValue = soulCores [" StatsValuesWeapon" ][i ]
274274 stats [statKey .Id ] = { min = statValue , max = statValue }
275275 end
276276 table.insert (outLines , ' Martial Weapons: ' .. table.concat (describeStats (stats ), ' \\ n' ))
277277 end
278- if # soulcore .StatsKeysArmour > 0 then
278+ if # soulCores .StatsKeysArmour > 0 then
279279 stats = { } -- reset stats to empty
280- for i , statKey in ipairs (soulcore .StatsKeysArmour ) do
281- local statValue = soulcore [" StatsValuesArmour" ][i ]
280+ for i , statKey in ipairs (soulCores .StatsKeysArmour ) do
281+ local statValue = soulCores [" StatsValuesArmour" ][i ]
282282 stats [statKey .Id ] = { min = statValue , max = statValue }
283283 end
284284 table.insert (outLines , ' Armour: ' .. table.concat (describeStats (stats ), ' \\ n' ))
285285 end
286- if # soulcore .StatsKeysCaster > 0 then
286+ if # soulCores .StatsKeysCaster > 0 then
287287 stats = { } -- reset stats to empty
288- for i , statKey in ipairs (soulcore .StatsKeysCaster ) do
289- local statValue = soulcore [" StatsValuesCaster" ][i ]
288+ for i , statKey in ipairs (soulCores .StatsKeysCaster ) do
289+ local statValue = soulCores [" StatsValuesCaster" ][i ]
290290 stats [statKey .Id ] = { min = statValue , max = statValue }
291291 end
292292 table.insert (outLines , ' Caster: ' .. table.concat (describeStats (stats ), ' \\ n' ))
293293 end
294294 -- Attribute runes are special case and can socket in everything
295- -- Sceptres are handled in "soulcoresperclass "
296- if # soulcore .StatsKeysAttributes > 0 then
295+ -- Sceptres are handled in "soulCoresPerClass "
296+ if # soulCores .StatsKeysAttributes > 0 then
297297 stats = { } -- reset stats to empty
298- for i , statKey in ipairs (soulcore .StatsKeysAttributes ) do
299- local statValue = soulcore [" StatsValuesAttributes" ][i ]
298+ for i , statKey in ipairs (soulCores .StatsKeysAttributes ) do
299+ local statValue = soulCores [" StatsValuesAttributes" ][i ]
300300 stats [statKey .Id ] = { min = statValue , max = statValue }
301301 end
302302 table.insert (outLines , ' Martial Weapons: ' .. table.concat (describeStats (stats ), ' \\ n' ))
@@ -305,13 +305,13 @@ directiveTable.base = function(state, args, out)
305305 end
306306 end
307307 -- Check for more slot specific Soulcores/Runes/Talismans
308- if soulcoresperclass then
308+ if soulCoresPerClass then
309309 stats = { }
310- for i , statKey in ipairs (soulcoresperclass .Stats ) do
311- local statValue = soulcoresperclass [" StatsValues" ][i ]
310+ for i , statKey in ipairs (soulCoresPerClass .Stats ) do
311+ local statValue = soulCoresPerClass [" StatsValues" ][i ]
312312 stats [statKey .Id ] = { min = statValue , max = statValue }
313313 end
314- local coreItemClass = soulcoresperclass .ItemClass .Id
314+ local coreItemClass = soulCoresPerClass .ItemClass .Id
315315 table.insert (outLines , coreItemClass .. ' : ' .. table.concat (describeStats (stats ), ' \\ n' ))
316316 end
317317 out :write (' \t implicit = "' .. table.concat (outLines , ' \\ n' ).. ' ",\n ' )
0 commit comments