Module:Items: Difference between revisions

Fixed other change to specialFishWt
(Moving SpecialFishingTable over to Skills)
(Fixed other change to specialFishWt)
Line 51: Line 51:
   end
   end


   local result = 'local specialFishWt = '..totalWt..'\r\n'
   local result = 'p.specialFishWt = '..totalWt..'\r\n'
   result = result..'local specialFishLoot = {'..table.concat(lootArray, ', ')..'}'
   result = result..'p.specialFishLoot = {'..table.concat(lootArray, ', ')..'}'
   return result
   return result
end
end
Line 1,398: Line 1,398:
     local fishSource = '[[Fishing#Special|Special]]'
     local fishSource = '[[Fishing#Special|Special]]'
     local fishType = Icons.Icon({'Fishing', type='skill'})
     local fishType = Icons.Icon({'Fishing', type='skill'})
     local thisChance = (item.fishingCatchWeight / specialFishWt) * 100
     local thisChance = (item.fishingCatchWeight / p.specialFishWt) * 100
     table.insert(dropRows, {source = fishSource, type = fishType, minqty = 1, qty = 1, chance = thisChance})
     table.insert(dropRows, {source = fishSource, type = fishType, minqty = 1, qty = 1, chance = thisChance})
   end
   end