| 1040 | } |
| 1041 | |
| 1042 | void Building::decreasePendingInvestigatorCount(GameState &state) |
| 1043 | { |
| 1044 | --this->pendingInvestigatorCount; |
| 1045 | if (this->pendingInvestigatorCount == 0) |
| 1046 | { |
| 1047 | fw().pushEvent(new GameBuildingEvent(GameEventType::CommenceInvestigation, |
| 1048 | {&state, shared_from_this()})); |
| 1049 | } |
| 1050 | else if (this->pendingInvestigatorCount < 0) // shouldn't happen |
| 1051 | { |
| 1052 | LogError("Building investigate count < 0?"); |
| 1053 | this->pendingInvestigatorCount = 0; |
| 1054 | } |
| 1055 | } |
| 1056 | |
| 1057 | int Building::getAverageConstitution() const |
| 1058 | { |
no test coverage detected