Anonymous

Module:Skills/Summoning: Difference between revisions

From Melvor Idle
getMarkTable: Amend sort to match in-game order
(Added a getFamiliarSynergyTable function)
(getMarkTable: Amend sort to match in-game order)
Line 21: Line 21:


   local Familiars = p.getFamiliars()
   local Familiars = p.getFamiliars()
   table.sort(Familiars, function(a, b) return a.summoningLevel < b.summoningLevel end)
   table.sort(Familiars, function(a, b)  
                          if a.summoningLevel == b.summoningLevel then
                            return a.summoningID < b.summoningID
                          else
                            return a.summoningLevel < b.summoningLevel
                          end
                        end)


   local rowArray = {}
   local rowArray = {}