Module:Items: Difference between revisions

Fixed special fishing loot table
(Added getSpecialFishingTable)
(Fixed special fishing loot table)
Line 34: Line 34:


local specialFishWt = 6722
local specialFishWt = 6722
local specialFishLoot = {{129, 2000}, {130, 1600}, {131, 1400}, {132, 1000}, {133, 400}, {668, 10}, {669, 10}, {903, 1}, {671, 1}, {670, 50}, {121, 250}}
local specialFishLoot = {{128, 2000}, {129, 1600}, {130, 1400}, {131, 1000}, {132, 400}, {667, 10}, {668, 10}, {902, 1}, {670, 1}, {669, 50}, {120, 250}}


function p.buildSpecialFishingTable()
function p.buildSpecialFishingTable()
Line 47: Line 47:
     if item.fishingCatchWeight ~= nil then
     if item.fishingCatchWeight ~= nil then
       totalWt = totalWt + item.fishingCatchWeight
       totalWt = totalWt + item.fishingCatchWeight
       table.insert(lootArray, '{'..i..', '..item.fishingCatchWeight..'}')
       table.insert(lootArray, '{'..(i - 1)..', '..item.fishingCatchWeight..'}')
     end
     end
   end
   end