| 147 | } |
| 148 | |
| 149 | bool 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 | |
| 170 | bool BattleMapPart::canBurn(int age) |
| 171 | { |