Update FtFarmer.lua
Keith-Smith [11-14-19 - 22:20]
Update FtFarmer.lua
Removed debugging statements.
diff --git a/modules/FtFarmer.lua b/modules/FtFarmer.lua
index 73a8893..7407593 100644
--- a/modules/FtFarmer.lua
+++ b/modules/FtFarmer.lua
@@ -75,11 +75,9 @@ function Farmer:Pause()
if self.paused == true then
self.paused = false
local timePassed = ((GetGameTimeMilliseconds() - self.pausedTime) / 1000)
- d('time passed')
- d(timePassed)
- d(self.pausedTime)
+
self.secondsPaused = self.secondsPaused + timePassed
- d(self.secondsPaused)
+
d('Unpausing Farming Manager')
else
self.paused = true
@@ -148,8 +146,6 @@ end
function Farmer:GetGoldPerSecond()
if self.itemsFarmed.totalValue == 0 then return 0 end
local timeDifInSecs = GetDiffBetweenTimeStamps(GetTimeStamp(), self.timeStarted)
- d(timeDifInSecs)
- d(self.secondsPaused)
return self.itemsFarmed.totalValue / (timeDifInSecs - self.secondsPaused)
-- return self.itemsFarmed.totalValue / ((GetTimeStamp() - self.timeStarted) - self.secondsPaused)
end