Anonymous

Module:Monsters: Difference between revisions

From Melvor Idle
Fixed dungeon rewards to account for off-by-one error on the GP reward.
(_getMonsterTable: Add excludeDungeons parameter & show dungeons on full monster table)
(Fixed dungeon rewards to account for off-by-one error on the GP reward.)
Line 774: Line 774:
   local bossMonster = p.getMonsterByID(area.monsters[Shared.tableCount(area.monsters)])
   local bossMonster = p.getMonsterByID(area.monsters[Shared.tableCount(area.monsters)])
   local gpMin = bossMonster.dropCoins[1]
   local gpMin = bossMonster.dropCoins[1]
   local gpMax = bossMonster.dropCoins[2]
   local gpMax = bossMonster.dropCoins[2] - 1
   local chestID = bossMonster.lootTable[1][1]
   local chestID = bossMonster.lootTable[1][1]
   local chestQty = bossMonster.lootTable[1][3]
   local chestQty = bossMonster.lootTable[1][3]