Module:Skills/Archaeology: Difference between revisions

no edit summary
(attempting to add plusOneMinimumRefinementValue and doubleConsumableRefinementValue as separate notes)
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, 'Consumable') then
if thisItem._canItemUseSlot({thisItem}, 'Consumable') 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