285
edits
ByteFoolish (talk | contribs) (getMiningGemsTable) |
ByteFoolish (talk | contribs) m (Switch to spairs in getMiningGemsTable) |
||
Line 238: | Line 238: | ||
result = result..'\r\n!colspan=2|Gem!!Gem Chance!!Gem Price' | result = result..'\r\n!colspan=2|Gem!!Gem Chance!!Gem Price' | ||
-- | -- Sort gems by ID order | ||
for i, gemData in Shared.spairs(Items.GemTable, function(t,a,b) return t[a].id < t[b].id end) do | |||
for i, gemData in Shared. | |||
local gem = Items.getItemByID(gemData.id) | local gem = Items.getItemByID(gemData.id) | ||
result = result..'\r\n|-\r\n|style="min-width:25px"|' | result = result..'\r\n|-\r\n|style="min-width:25px"|' |
edits