MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / decreasePendingInvestigatorCount

Method decreasePendingInvestigatorCount

game/state/city/building.cpp:1042–1055  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1040}
1041
1042void 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
1057int Building::getAverageConstitution() const
1058{

Callers 4

updateMethod · 0.80
updateMethod · 0.80
clearMissionsMethod · 0.80
setMissionMethod · 0.80

Calls 1

pushEventMethod · 0.80

Tested by

no test coverage detected