| 2237 | } |
| 2238 | |
| 2239 | StringList WorldServer::weatherStatusEffects(Vec2F const& pos) const { |
| 2240 | if (!m_weather.statusEffects().empty()) { |
| 2241 | if (exposedToWeather(pos)) |
| 2242 | return m_weather.statusEffects(); |
| 2243 | } |
| 2244 | |
| 2245 | return {}; |
| 2246 | } |
| 2247 | |
| 2248 | bool WorldServer::exposedToWeather(Vec2F const& pos) const { |
| 2249 | if (!isUnderground(pos) && liquidLevel(Vec2I::floor(pos)).liquid == EmptyLiquidId) { |
nothing calls this directly
no test coverage detected