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

Method weatherStatusEffects

source/game/StarWorldClient.cpp:2129–2139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2127}
2128
2129StringList 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
2141bool WorldClient::exposedToWeather(Vec2F const& pos) const {
2142 if (!inWorld())

Callers 1

tickMasterMethod · 0.45

Calls 2

emptyMethod · 0.45
statusEffectsMethod · 0.45

Tested by

no test coverage detected