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

Method getLifetime

game/state/rules/battle/damage.cpp:122–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122int HazardType::getLifetime(GameState &state)
123{
124 return randBoundsInclusive(state.rng, 2 * minLifetime, 2 * maxLifetime);
125}
126} // namespace OpenApoc

Callers 8

battlemap.cppFile · 0.80
dieMethod · 0.80
expandMethod · 0.80
damageMethod · 0.80
growMethod · 0.80
updateFallingMethod · 0.80
setPositionMethod · 0.80
spawnEnzymeSmokeMethod · 0.80

Calls 1

randBoundsInclusiveFunction · 0.85

Tested by

no test coverage detected