Sandcastle-Builder icon indicating copy to clipboard operation
Sandcastle-Builder copied to clipboard

0 items of Infinite castle/NP tools

Open Timeroot opened this issue 9 years ago • 3 comments

See http://www.reddit.com/r/SandcastleBuilder/comments/32e784/why_am_i_getting_so_few_castles/ for a description of the problem. Beanie Builders were upgraded to Infinite castles/NP before they were even unlocked; since 0 were bought, they were producing NaN castles each ONG, which kept the game from progressing normally. This could theoretically have been fixed in the game by disabling Glass Ceiling 11, but this is very non-obvious -- tools that aren't even unlocked shouldn't be breaking the game. I suggest that Molpy.ONG only calls BuildPhase and DestroyPhase on the tools that are actually unlocked.

Timeroot avatar Apr 13 '15 20:04 Timeroot

The simple solution would be to check if 0 of a tool are owned, if so no need to calculate further.

eternaldensity avatar Apr 13 '15 23:04 eternaldensity

Very interesting that this never came up before. I put a pull request in that fixes it.

LuminousLeopards avatar Apr 16 '15 00:04 LuminousLeopards

Is good. Thanks!

My bad for not thinking of this back when I 'designed' it :P

eternaldensity avatar Apr 16 '15 03:04 eternaldensity