Anonymous

Module:Monsters: Difference between revisions

From Melvor Idle
Remove Impending Darkness special handling pending revised implementation
(_getDungeonMonsterList: Add Bane for Impending Darkness)
(Remove Impending Darkness special handling pending revised implementation)
Line 933: Line 933:
   table.insert(returnPart, '\r\n! Name !! Combat Level !! Hitpoints !! Max Hit !! [[Combat Triangle|Combat Style]] !! Count')
   table.insert(returnPart, '\r\n! Name !! Combat Level !! Hitpoints !! Max Hit !! [[Combat Triangle|Combat Style]] !! Count')
   -- Special handing for Impending Darkness event
   -- Special handing for Impending Darkness event
   if area.isEvent ~= nil and area.isEvent then
   -- TODO needs to be revised once there is a better understanding of how the event works
  for i, eventAreaID in ipairs(Areas.eventData.slayerAreas) do
  --if area.isEvent ~= nil and area.isEvent then
    table.insert(returnPart, buildRow(eventAreaID, {5, 8}, 'SlayerArea'))
  -- for i, eventAreaID in ipairs(Areas.eventData.slayerAreas) do
  end
  --   table.insert(returnPart, buildRow(eventAreaID, {5, 8}, 'SlayerArea'))
    -- Add Bane * 4
  -- end
    table.insert(returnPart, buildRow(152, 4))
  --  -- Add Bane * 4
   end
  --  table.insert(returnPart, buildRow(152, 4))
   --end
   for i, monsterID in pairs(area.monsters) do
   for i, monsterID in pairs(area.monsters) do
     if not Shared.contains(usedMonsters, monsterID) then
     if not Shared.contains(usedMonsters, monsterID) then
Line 970: Line 971:
   local count = 0
   local count = 0
   -- Special handing for Impending Darkness event
   -- Special handing for Impending Darkness event
   if area.isEvent ~= nil and area.isEvent then
   -- TODO needs to be revised once there is a better understanding of how the event works
  for i, eventAreaID in ipairs(Areas.eventData.slayerAreas) do
  --if area.isEvent ~= nil and area.isEvent then
    local eventArea = Areas.getAreaByID('slayer', eventAreaID)
  -- for i, eventAreaID in ipairs(Areas.eventData.slayerAreas) do
    table.insert(monsterList, '5-8 ' .. Icons.Icon({eventArea.name, type='combatArea'}) .. ' Monsters')
  --   local eventArea = Areas.getAreaByID('slayer', eventAreaID)
  end
  --   table.insert(monsterList, '5-8 ' .. Icons.Icon({eventArea.name, type='combatArea'}) .. ' Monsters')
  table.insert(monsterList, '4 ' .. Icons.Icon({'Bane', type='monster'}))
  -- end
   end
  -- table.insert(monsterList, '4 ' .. Icons.Icon({'Bane', type='monster'}))
   --end
   for i, monsterID in Shared.skpairs(area.monsters) do
   for i, monsterID in Shared.skpairs(area.monsters) do
     if monsterID ~= lastID then
     if monsterID ~= lastID then