| 521 | bool BattleHazard::updateTB(GameState &state) { return updateInner(state, TICKS_PER_TURN); } |
| 522 | |
| 523 | void BattleHazard::updateTileVisionBlock(GameState &state) |
| 524 | { |
| 525 | int visionBlock = |
| 526 | damageType->effectType == DamageType::EffectType::Smoke ? (lifetime - age) / 3 : 0; |
| 527 | if (tileObject->getOwningTile()->updateVisionBlockage(visionBlock)) |
| 528 | { |
| 529 | state.current_battle->queueVisionRefresh(position); |
| 530 | } |
| 531 | } |
| 532 | |
| 533 | } // namespace OpenApoc |
no test coverage detected