aboutsummaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-06-17 23:43:28 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-06-17 23:43:28 +0300
commit6b1f059ccd91acd87e41a83c811b88acbb4b4bc8 (patch)
tree4aa3daff52bfd53c117fa5888fbf0787998325c7 /src/map.cpp
parent6378a71ea5f3f97316d38c114de0fc207e18f940 (diff)
downloadminetest-6b1f059ccd91acd87e41a83c811b88acbb4b4bc8.tar.gz
minetest-6b1f059ccd91acd87e41a83c811b88acbb4b4bc8.tar.bz2
minetest-6b1f059ccd91acd87e41a83c811b88acbb4b4bc8.zip
modified iron amount a bit
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map.cpp b/src/map.cpp
index f6278e86e..9a6cb003f 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -2700,7 +2700,7 @@ void makeChunk(ChunkMakeData *data)
// Randomize mineral
u8 mineral;
- if(myrand()%3 != 0)
+ if(myrand()%4 != 0 || (orp.Y + of.Y) > 10)
mineral = MINERAL_COAL;
else
mineral = MINERAL_IRON;
@@ -4545,8 +4545,7 @@ continue_generating:
/*
Add iron
*/
- //TODO: change to iron_amount or whatever
- u16 iron_amount = 15;
+ u16 iron_amount = 8;
u16 iron_rareness = 60 / iron_amount;
if(iron_rareness == 0)
iron_rareness = 1;