Module:FisherList: Difference between revisions

274 bytes added ,  20 December 2024
replace relocation time with a calculation based on respawn time
m (remove vestigal reference to "hideCells" which is not needed for fisher)
(replace relocation time with a calculation based on respawn time)
Line 41:
-- initial guesses
item.downtime = 60
item.relocate = 5
-- these numbers are based roughly on how far the nodes are from a storage rift or shop or bank
-- 20s per room to traverse
-- duration and relocation times arent used for fisher, only respawn time and number of nodes
if string.find(item.pageName,'Flounder') then
item.downtime = 20
item.relocatenodes = 56
elseif string.find(item.pageName,'Eel') then
item.downtime = 20
item.nodes = 6
elseif string.find(item.pageName,'Pufferfish') then
item.downtime = 20
item.nodes = 6
elseif string.find(item.pageName,'Gurnard') then
item.downtime = 120
item.nodes = 6
elseif string.find(item.pageName,'Bass') then
item.downtime = 40
item.nodes = 3
elseif string.find(item.pageName,'Ray') then
item.downtime = 100
item.nodes = 6
elseif string.find(item.pageName,'Cod') then
item.downtime = 120
item.nodes = 3
end
 
Line 65 ⟶ 72:
-- products per hour
item.batch = 24
item.productPerHourdurationEffective = item.durationrespawn and math.floor(1 / (item.duration + item.relocate + item.downtimerespawn / item.batch) * 3600)nodes
item.productPerHourDroppingproductPerHour = item.durationdurationEffective and math.floor(1 / (item.durationdurationEffective + item.downtime / item.relocatebatch) * 3600)
item.productPerHourDropping = item.durationEffective and 1 / (item.durationEffective) * 3600
 
-- properties per hour
21,691

edits