| 2127 | } |
| 2128 | |
| 2129 | StringList WorldClient::weatherStatusEffects(Vec2F const& pos) const { |
| 2130 | if (!inWorld()) |
| 2131 | return {}; |
| 2132 | |
| 2133 | if (!m_weather.statusEffects().empty()) { |
| 2134 | if (exposedToWeather(pos)) |
| 2135 | return m_weather.statusEffects(); |
| 2136 | } |
| 2137 | |
| 2138 | return {}; |
| 2139 | } |
| 2140 | |
| 2141 | bool WorldClient::exposedToWeather(Vec2F const& pos) const { |
| 2142 | if (!inWorld()) |
no test coverage detected