Anonymous

Module:Monsters: Difference between revisions

From Melvor Idle
m
no edit summary
(attempting to fix this would be easier if the testing console would work properly)
mNo edit summary
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..'\r\n'..monster.name..','..monster.dropCoins[1]..','..monster.dropCoins[2]..','..monster.avgGp
       result = result..'\r\n'..monster.name..','..monster.dropCoins[1]..','..monster.dropCoins[2]..','..avgGp
       end
       end
     end
     end