Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Remove RCL check from .build() #77
As there is a check made when the ConstructionSite is first places, and further checks to avoid excess completed Structures from being used in the case of RCL drops, preventing all ConstructionSites of a given type from being completed (not built, just completed) if the RCL drops for some reason appears redundant.
So, let's remove the checkControllerAvailability-related check that can return ERR_RCL_NOT_ENOUGH entirely. This doesn't speed anything up or provide any advantages to construction as the placeConstructionSite call and individual buildings which scale with RCL both use checkControllerAvailability, but this patch does remove a hard-to-understand error condition.
This resolves issue #59, where the following sequence of events can occur currently: