Module:Monsters: Difference between revisions

Fixed bounds on coins being wrong
mNo edit summary
(Fixed bounds on coins being wrong)
Line 755: Line 755:
       if monster.dropCoins ~= nil and monster.dropCoins[2] > 1 then
       if monster.dropCoins ~= nil and monster.dropCoins[2] > 1 then
       local avgGp = (monster.dropCoins[1] + monster.dropCoins[2] - 1) / 2
       local avgGp = (monster.dropCoins[1] + monster.dropCoins[2] - 1) / 2
       result = result..'<br/>'..monster.name..','..monster.dropCoins[1]..','..monster.dropCoins[2]..','..avgGp
       result = result..'<br/>'..monster.name..','..monster.dropCoins[1]..','..(monster.dropCoins[2]-1)..','..avgGp
       end
       end
     end
     end