Module:Monsters: Difference between revisions

Tweaked Dungeon Rewards to account for Miolite Caves not rewarding any GP
(Fixed dungeon rewards to account for off-by-one error on the GP reward.)
(Tweaked Dungeon Rewards to account for Miolite Caves not rewarding any GP)
Line 778: Line 778:
   local chestQty = bossMonster.lootTable[1][3]
   local chestQty = bossMonster.lootTable[1][3]
   local theChest = Items.getItemByID(chestID)
   local theChest = Items.getItemByID(chestID)
   local result = '* '..Icons.GP(gpMin, gpMax)
   local result = ''
   result = result..'\r\n* '..Icons.Icon({theChest.name, type='item', qty=chestQty})
  if gpMin > 0 and gpMax > 0 then
    result = result..'* '..Icons.GP(gpMin, gpMax)..'\r\n'
  end
   result = result..'* '..Icons.Icon({theChest.name, type='item', qty=chestQty})
   if area.name == 'Volcanic Cave' then
   if area.name == 'Volcanic Cave' then
     result = result..'\r\n* '..Icons.Icon({'Fire Cape', type='item', qty=1})
     result = result..'\r\n* '..Icons.Icon({'Fire Cape', type='item', qty=1})