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

Method biomeModHueShift

source/game/StarWorldTemplate.cpp:397–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397MaterialHue WorldTemplate::biomeModHueShift(BiomeIndex biomeIndex, ModId mod) const {
398 if (m_layout && biomeIndex != NullBiomeIndex) {
399 auto const& biome = m_layout->getBiome(biomeIndex);
400 if (mod == biome->surfacePlaceables.grassMod || mod == biome->surfacePlaceables.ceilingGrassMod
401 || mod == biome->undergroundPlaceables.grassMod
402 || mod == biome->undergroundPlaceables.ceilingGrassMod)
403 return biome->materialHueShift;
404 }
405 return MaterialHue();
406}
407
408WeatherPool WorldTemplate::weathers() const {
409 if (m_worldParameters)

Callers 3

prepareTilesMethod · 0.80
placeBiomeGrassMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected