mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
modified iron amount a bit
This commit is contained in:
@@ -2700,7 +2700,7 @@ void makeChunk(ChunkMakeData *data)
|
|||||||
|
|
||||||
// Randomize mineral
|
// Randomize mineral
|
||||||
u8 mineral;
|
u8 mineral;
|
||||||
if(myrand()%3 != 0)
|
if(myrand()%4 != 0 || (orp.Y + of.Y) > 10)
|
||||||
mineral = MINERAL_COAL;
|
mineral = MINERAL_COAL;
|
||||||
else
|
else
|
||||||
mineral = MINERAL_IRON;
|
mineral = MINERAL_IRON;
|
||||||
@@ -4545,8 +4545,7 @@ continue_generating:
|
|||||||
/*
|
/*
|
||||||
Add iron
|
Add iron
|
||||||
*/
|
*/
|
||||||
//TODO: change to iron_amount or whatever
|
u16 iron_amount = 8;
|
||||||
u16 iron_amount = 15;
|
|
||||||
u16 iron_rareness = 60 / iron_amount;
|
u16 iron_rareness = 60 / iron_amount;
|
||||||
if(iron_rareness == 0)
|
if(iron_rareness == 0)
|
||||||
iron_rareness = 1;
|
iron_rareness = 1;
|
||||||
|
Reference in New Issue
Block a user