From 47f7727b7f37972374dea1a7e0da67b7aff9782f Mon Sep 17 00:00:00 2001 From: 12xx12 <44411062+12xx12@users.noreply.github.com> Date: Wed, 12 Aug 2020 09:20:38 +0200 Subject: Add enhanced Gold generation in Mesa-Type Biomes (#4821) * added enhanced gold generation in mesa-type-biomes * fixed typo in comment * added enhanced gold generation in mesa biomes - fixed small checkstyle errors Co-authored-by: 12xx12 <12xx12100@gmail.com> --- src/BiomeDef.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/BiomeDef.cpp') diff --git a/src/BiomeDef.cpp b/src/BiomeDef.cpp index ebb45f5e9..f56d9c815 100644 --- a/src/BiomeDef.cpp +++ b/src/BiomeDef.cpp @@ -246,6 +246,30 @@ bool IsBiomeMountain(EMCSBiome a_Biome) +bool IsBiomeMesa(EMCSBiome a_Biome) +{ + switch (a_Biome) + { + case biMesa: + case biMesaPlateauF: + case biMesaPlateau: + case biMesaBryce: + case biMesaPlateauFM: + case biMesaPlateauM: + { + return true; + } + default: + { + return false; + } + } +} + + + + + int GetSnowStartHeight(EMCSBiome a_Biome) { switch (a_Biome) -- cgit v1.2.3