Anonymous

Module:Skills/Summoning: Difference between revisions

From Melvor Idle
itemID -> productID to match game data
(summons -> summonIDs to match game data)
(itemID -> productID to match game data)
Line 20: Line 20:
local rowArray = {}
local rowArray = {}
for i, Fam in ipairs(Familiars) do
for i, Fam in ipairs(Familiars) do
local item = Items.getItemByID(Fam.itemID)
local item = Items.getItemByID(Fam.productID)
if item ~= nil then
if item ~= nil then
local rowText = '|-'
local rowText = '|-'
Line 52: Line 52:
local rowArray = {}
local rowArray = {}
for i, Fam in ipairs(Familiars) do
for i, Fam in ipairs(Familiars) do
local item = Items.getItemByID(Fam.itemID)
local item = Items.getItemByID(Fam.productID)
if item ~= nil then
if item ~= nil then
local maxHit, maxHitText = Items._getItemStat(item, 'summoningMaxhit'), ''
local maxHit, maxHitText = Items._getItemStat(item, 'summoningMaxhit'), ''