| 1370 | } |
| 1371 | |
| 1372 | Vec2F Object::damageShake() const { |
| 1373 | if (m_tileDamageStatus->damaged() && !m_tileDamageStatus->damageProtected()) |
| 1374 | return Vec2F(Random::randf(-1, 1), Random::randf(-1, 1)) * m_tileDamageStatus->damageEffectPercentage() * m_config->damageShakeMagnitude; |
| 1375 | return Vec2F(); |
| 1376 | } |
| 1377 | |
| 1378 | void Object::checkLiquidBroken() { |
| 1379 | if (m_config->minimumLiquidLevel || m_config->maximumLiquidLevel) { |
nothing calls this directly
no test coverage detected