summaryrefslogtreecommitdiffstats
path: root/src/Defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Defines.h')
-rw-r--r--src/Defines.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/Defines.h b/src/Defines.h
index 06410cab4..a338548de 100644
--- a/src/Defines.h
+++ b/src/Defines.h
@@ -546,6 +546,32 @@ namespace ItemCategory
);
}
}
+
+
+
+
+
+/// Returns true if the biome has no downfall - deserts and savannas
+inline bool IsBiomeNoDownfall(EMCSBiome a_Biome)
+{
+ switch (a_Biome)
+ {
+ case biDesert:
+ case biDesertHills:
+ case biDesertM:
+ case biSavanna:
+ case biSavannaM:
+ case biSavannaPlateau:
+ case biSavannaPlateauM:
+ case biNether:
+ case biEnd:
+ {
+ return true;
+ }
+ }
+ return false;
+}
+
// tolua_end