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

Method canRepair

game/state/city/scenery.cpp:1624–1633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1622}
1623
1624bool Scenery::canRepair() const
1625{
1626 // Don't fix it if it ain't broken
1627
1628 if (this->isAlive() && !damaged)
1629 return false;
1630 // FIXME: Check how apoc repairs stuff, for now disallow repair
1631
1632 return false;
1633}
1634
1635void Scenery::repair(GameState &state)
1636{

Callers

nothing calls this directly

Calls 1

isAliveMethod · 0.95

Tested by

no test coverage detected