eternaldensity/Sandcastle-Builder — pull request #930 by LucidCrux (2014-03-24 03:48:28+00:00)
Title: More refactoring to clean up castle.js

- Molpy.dig moved to Boost:Sand.dig
- Move some repetivive checks to Molpy.mustardCleanup
- Move Molpy.SandToCastles to Boost:Sand.toCastles
- Remove Molpy.shrinkAll
- Move Molpy.Build to Boost:Castles.build
- Move Molpy.buildNotifyFlag and .buildNotifyCount to Boost:Castles
- Molpy.recalculateDig renamed Molpy.recalculateRates
- Molpy.CalculateDigSpeed renamed Molpy.calculateRates to better reflect it's function also broke it up into several new functions
- Molpy.CalculateGlassRate moved to Boost:TF.calculateLoadedPermNP
- Molpy.baseNinjaTime to Tools:NewPixBot.baseNinjaTime
- Molpy.ninjaTime to Tools:NewPixBot.ninjaTime

*May have fixed a bug where TF chips per click wasn't getting recalculated correctly. I don't think anyone has reported it, but the call to calculateLoadedPerClick was missing parentheses.

There is still plenty more that can be cleaned out of castle.js and moved to a more appropriate location.