4,951
edits
Falterfire (talk | contribs) (attempting to fix this would be easier if the testing console would work properly) |
Falterfire (talk | contribs) 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]..','. | result = result..'\r\n'..monster.name..','..monster.dropCoins[1]..','..monster.dropCoins[2]..','..avgGp | ||
end | end | ||
end | end |