Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
122
int HazardType::getLifetime(GameState &state)
123
{
124
return randBoundsInclusive(state.rng, 2 * minLifetime, 2 * maxLifetime);
125
}
126
} // namespace OpenApoc
Callers
8
battlemap.cpp
File · 0.80
die
Method · 0.80
expand
Method · 0.80
damage
Method · 0.80
grow
Method · 0.80
updateFalling
Method · 0.80
setPosition
Method · 0.80
spawnEnzymeSmoke
Method · 0.80
Calls
1
randBoundsInclusive
Function · 0.85
Tested by
no test coverage detected