projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6378a71
)
modified iron amount a bit
author
Perttu Ahola
<celeron55@gmail.com>
Fri, 17 Jun 2011 20:43:28 +0000
(23:43 +0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Fri, 17 Jun 2011 20:43:28 +0000
(23:43 +0300)
src/map.cpp
patch
|
blob
|
history
diff --git
a/src/map.cpp
b/src/map.cpp
index f6278e86e74790edfb98894b40ca870b9067895c..9a6cb003fec43e3237b8fb44ccd7d655a7647020 100644
(file)
--- 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) > 1
0)
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;