4,662
edits
(_getCreationTable: Amend to show XP harvested per quantity for Farming) |
(Added Loot source and Itembox Killing source for Barrier Dust) |
||
Line 303: | Line 303: | ||
if monster.bones ~= nil and monster.bones.itemID == item.id and Monsters._getMonsterBones(monster) ~= nil then | if monster.bones ~= nil and monster.bones.itemID == 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 | |||
elseif monster.barrierPercent ~= nil and 'melvorAoD:Barrier_Dust' == item.id and not Monsters._isDungeonOnlyMonster(monster) then | |||
-- Item is Barrier Dust and is not a dungeon exclusive monster | |||
isDrop = true | isDrop = true | ||
elseif monster.lootTable ~= nil then | elseif monster.lootTable ~= nil then | ||
Line 1,199: | Line 1,202: | ||
chance = 1 | chance = 1 | ||
weight = 1 | weight = 1 | ||
elseif monster.barrierPercent ~= nil and 'melvorAoD:Barrier_Dust' == item.id and not Monsters._isDungeonOnlyMonster(monster) then | |||
-- Item is Barrier Dust and is not a dungeon exclusive monster | |||
maxQty = math.max(math.floor(Monsters._getMonsterStat(monster, 'Barrier') / 10 / 20), 1) | |||
minQty = maxQty | |||
chance = 1 | |||
elseif monster.lootTable ~= nil and not Monsters._isDungeonOnlyMonster(monster) then | elseif monster.lootTable ~= nil and not Monsters._isDungeonOnlyMonster(monster) then | ||
-- If the monster has a loot table, check if the item we are looking for is in there | -- If the monster has a loot table, check if the item we are looking for is in there | ||
Line 1,309: | Line 1,317: | ||
"Paper", | "Paper", | ||
"Lemon", | "Lemon", | ||
"Aranite Brush" | "Aranite Brush", | ||
"Barrier Dust" | |||
} | } | ||
local checkFuncs = { | local checkFuncs = { |