MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / weatherStatusEffects

Method weatherStatusEffects

source/game/StarWorldServer.cpp:2239–2246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2237}
2238
2239StringList 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
2248bool WorldServer::exposedToWeather(Vec2F const& pos) const {
2249 if (!isUnderground(pos) && liquidLevel(Vec2I::floor(pos)).liquid == EmptyLiquidId) {

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.45
statusEffectsMethod · 0.45

Tested by

no test coverage detected