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

Method isUnderground

source/game/StarWorldClient.cpp:2158–2162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2156}
2157
2158bool WorldClient::isUnderground(Vec2F const& pos) const {
2159 if (!inWorld())
2160 return true;
2161 return m_worldTemplate->undergroundLevel() >= pos[1];
2162}
2163
2164bool WorldClient::disableDeathDrops() const {
2165 if (const auto& parameters = m_worldTemplate->worldParameters())

Callers 2

isOutsideMethod · 0.45
undergroundMethod · 0.45

Calls 1

undergroundLevelMethod · 0.80

Tested by

no test coverage detected