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

Method applyBurning

game/state/battle/battlemappart.cpp:149–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149bool BattleMapPart::applyBurning(GameState &state, int age)
150{
151 if (this->falling)
152 {
153 // Already falling, just continue
154 return false;
155 }
156 if (!canBurn(age))
157 {
158 // Cannot burn, ignore
159 return false;
160 }
161
162 burnTicksAccumulated += TICKS_PER_HAZARD_UPDATE * 2;
163 if (!canBurn(age))
164 {
165 die(state);
166 }
167 return true;
168}
169
170bool BattleMapPart::canBurn(int age)
171{

Callers 1

applyEffectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected