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

Method tryCollapse

game/state/battle/battleitem.cpp:338–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338void BattleItem::tryCollapse()
339{
340 if (falling)
341 {
342 return;
343 }
344 if (!findSupport())
345 {
346 ticksUntilCollapse = TICKS_MULTIPLIER;
347 }
348}
349
350void BattleItem::collapse() { falling = true; }
351

Callers 2

initBattleMethod · 0.80
ceaseSupportProvisionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected