17,101
edits
Falterfire (talk | contribs) (Fixed not reporting bone QTY back properly) |
(getMonsterBones -> _getMonsterBones) |
||
Line 324: | Line 324: | ||
for i, monster in ipairs(MonsterData.Monsters) do | for i, monster in ipairs(MonsterData.Monsters) do | ||
local isDrop = false | local isDrop = false | ||
if monster.bones == item.id and Monsters. | if monster.bones == item.id and Monsters._getMonsterBones(monster) ~= nil then | ||
-- Item is a bone, and is either a shard from God dungeons or dropped by a non-boss monster with a loot table | -- Item is a bone, and is either a shard from God dungeons or dropped by a non-boss monster with a loot table | ||
isDrop = true | isDrop = true | ||
Line 657: | Line 657: | ||
--Only add bones if this monster has loot (ie appears outside a dungeon) and isn't a boss | --Only add bones if this monster has loot (ie appears outside a dungeon) and isn't a boss | ||
--... unless we're looking for Shards of course, at which point we'll take any monster with the right bones | --... unless we're looking for Shards of course, at which point we'll take any monster with the right bones | ||
if monster.bones == item.id and Monsters. | if monster.bones == item.id and Monsters._getMonsterBones(monster) ~= nil then | ||
qty = monster.boneQty ~= nil and monster.boneQty or 1 | qty = monster.boneQty ~= nil and monster.boneQty or 1 | ||
minqty = qty | minqty = qty | ||
Line 959: | Line 959: | ||
local minQty = 1 | local minQty = 1 | ||
local maxQty = 1 | local maxQty = 1 | ||
if monster.bones == item.id and Monsters. | if monster.bones == item.id and Monsters._getMonsterBones(monster) ~= nil then | ||
-- Item is a bone, and is either a shard from God dungeons or dropped by a non-boss monster with a loot table | -- Item is a bone, and is either a shard from God dungeons or dropped by a non-boss monster with a loot table | ||
chance = 1 | chance = 1 |