Module:Skills/Archaeology: Difference between revisions

no edit summary
(attempting to fixxxxxx)
No edit summary
Line 114: Line 114:
plusOneMinimumRefinementValue = plusOneMinimumRefinementValue + (dropChance * thisItem.sellsFor * (((row.minQuantity+1) + (row.maxQuantity+1))/ 2))
plusOneMinimumRefinementValue = plusOneMinimumRefinementValue + (dropChance * thisItem.sellsFor * (((row.minQuantity+1) + (row.maxQuantity+1))/ 2))
--Checking if item is a consumable, then adding its value a second time
--Checking if item is a consumable, then adding its value a second time
if thisItem._canItemUseSlot({thisItem.name, type='item'}, 'Consumable') ~= nil then
if thisItem.canItemUseSlot({thisItem.name, type='item'}, 'Consumable') ~= nil then
doubleConsumableRefinementValue = lootValue + (dropChance * thisItem.sellsFor * ((row.minQuantity + row.maxQuantity)/ 2))
doubleConsumableRefinementValue = lootValue + (dropChance * thisItem.sellsFor * ((row.minQuantity + row.maxQuantity)/ 2))
end
end
587

edits