4,951
edits
Falterfire (talk | contribs) (Added range of prices for chest drop tables, fixed column order) |
Falterfire (talk | contribs) (Tweaked monster drops slightly to show Shards and hide boss drops) |
||
Line 368: | Line 368: | ||
if monster.bones ~= nil then | if monster.bones ~= nil then | ||
local bones = Items.getItemByID(monster.bones) | local bones = Items.getItemByID(monster.bones) | ||
result = result.."'''Always Drops:'''" | --Show the bones only if either the monster shows up outside of dungeons _or_ the monster drops shards | ||
if (monster.lootTable ~= nil and not monster.isBoss) or Shared.contains(bones.name, 'Shard') then | |||
result = result.."'''Always Drops:'''" | |||
result = result..'\r\n{|class="wikitable"' | |||
result = result..'\r\n!Item !! Qty' | |||
result = result..'\r\n|-\r\n|'..Icons.Icon({bones.name, type='item'}) | |||
result = result..'||'..(monster.boneQty ~= nil and monster.boneQty or 1)..'\r\n'..'|}' | |||
end | |||
end | end | ||
if monster.lootTable ~= nil then | if monster.lootTable ~= nil and not monster.isBoss then | ||
local lootChance = monster.lootChance ~= nil and monster.lootChance or 100 | local lootChance = monster.lootChance ~= nil and monster.lootChance or 100 | ||