Anonymous

Module:CombatAreas/AreaTables: Difference between revisions

From Melvor Idle
_getDungeonRewards: Add support for Impending Darkness Event
(Obey in-game display order for area tables)
(_getDungeonRewards: Add support for Impending Darkness Event)
Line 98: Line 98:
   if theChest ~= nil then
   if theChest ~= nil then
     table.insert(rewardList, chr..Icons.Icon({theChest.name, type='item', qty=chestQty}))
     table.insert(rewardList, chr..Icons.Icon({theChest.name, type='item', qty=chestQty}))
  end
  if area.isEvent ~= nil and area.isEvent then
  for i, rewardID in ipairs(AreaData.event.rewards) do
    local rewardItem = Items.getItemByID(rewardID)
    table.insert(rewardList, chr .. Icons.Icon({rewardItem.name, type='item', qty=1}))
  end
   end
   end
   if area.name == 'Volcanic Cave' then
   if area.name == 'Volcanic Cave' then