4,951
edits
Falterfire (talk | contribs) (Added logic to make sure if monsters can do a normal attack due to a special not being repeatable in close succession, the max hit is appropriate updated) |
Falterfire (talk | contribs) (Added punctuation) |
||
Line 547: | Line 547: | ||
avgGp = (monster.dropCoins[1] + monster.dropCoins[2] - 1) / 2 | avgGp = (monster.dropCoins[1] + monster.dropCoins[2] - 1) / 2 | ||
local gpTxt = Icons.GP(monster.dropCoins[1], monster.dropCoins[2] - 1) | local gpTxt = Icons.GP(monster.dropCoins[1], monster.dropCoins[2] - 1) | ||
result = result.."\r\nIn addition to loot, the monster will also drop "..gpTxt | result = result.."\r\nIn addition to loot, the monster will also drop "..gpTxt..'.' | ||
end | end | ||
Line 605: | Line 605: | ||
end | end | ||
result = result..'\r\n|}' | result = result..'\r\n|}' | ||
result = result..'\r\nThe loot dropped by the average kill is worth '..Icons.GP(Shared.round(lootValue, 2, 0)).." if sold" | result = result..'\r\nThe loot dropped by the average kill is worth '..Icons.GP(Shared.round(lootValue, 2, 0)).." if sold." | ||
result = result..'<br/>Including GP, the average kill is worth '..Icons.GP(Shared.round(avgGp + lootValue, 2, 0)) | result = result..'<br/>Including GP, the average kill is worth '..Icons.GP(Shared.round(avgGp + lootValue, 2, 0))..'.' | ||
end | end | ||