Anonymous

Module:Calculator/Summoning Interval Efficiency: Difference between revisions

From Melvor Idle
Implement Economy module changes
m (Add sec suffix to values)
(Implement Economy module changes)
Line 20: Line 20:
return result
return result
end
end
-- Calculate item economy for tablet output
local eco = economy.ItemEconomy:new()
eco.outputsPerAction = playerStats.tabletsMade
eco.duplicationChance = playerStats.tabletDoubleChance
-- Values below are not included, but might be available as boosts.
eco.extraItemChance = 0
eco.extraItemAmount = 0
eco.flatExtraItems = 0
eco.extraBaseItemChance = 0
eco.extraBaseItems = 0
-- Calculate total amount of tablets made, including double chance
-- Calculate total amount of tablets made, including double chance
local averageTabletsMade = economy.estimatedOutput(
local averageTabletsMade = economy.estimatedOutput(playerStats.tabletsMade, eco)
playerStats.tabletsMade,  
0,
playerStats.tabletDoubleChance)


-- Calculate the effective amount of tablets the player has from one craft, including tablet save chance
-- Calculate the effective amount of tablets the player has from one craft, including tablet save chance
2,875

edits