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

Method initCryTimer

game/state/battle/battleunit.cpp:5444–5449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5442}
5443
5444void BattleUnit::initCryTimer(GameState &state)
5445{
5446 // FIXME: Implement proper cry timers
5447 ticksUntillNextCry =
5448 2 * TICKS_PER_SECOND + randBoundsInclusive(state.rng, 0, 16 * (int)TICKS_PER_SECOND);
5449}
5450
5451void BattleUnit::resetCryTimer(GameState &state)
5452{

Callers 1

placeUnitMethod · 0.80

Calls 1

randBoundsInclusiveFunction · 0.85

Tested by

no test coverage detected