| 903 | } |
| 904 | |
| 905 | float structureCompletionProgress(const STRUCTURE & structure) |
| 906 | { |
| 907 | return MIN(1, structure.currentBuildPts / (float)structureBuildPointsToCompletion(structure)); |
| 908 | } |
| 909 | |
| 910 | /// Add buildPoints to the structures currentBuildPts, due to construction work by the droid |
| 911 | /// Also can deconstruct (demolish) a building if passed negative buildpoints |
no test coverage detected