gold nugget

Started by f6292131, February 14, 2020, 02:18:14 AM

f6292131

How change the amount of nugget
I found these two files
But the server didn't apply
Scripts\StaticObjects\Minerals\ObjectMineralStone.cs
Scripts\CraftRecipes\Manufacturing\Furnace\RecipeIngotGold.cs

From google translate


ai_enabled

Hello!

Please clarify what exactly you're trying to increase? The chance of finding a gold nugget when mining?

f6292131

Yes Or change the amount of gold in the formula

ai_enabled

Ok, you need to change each of the mineral files in this folder "Core/Core.cpk/Scripts/StaticObjects/Minerals/". For example, see Iron mineral class, line 33:
https://github.com/AtomicTorchStudio/CryoFall/blob/master/Core.cpk/Scripts/StaticObjects/Minerals/ObjectMineralIron.cs#L33
the chance is 1/50.0 you can change it to any number you want. Please ensure you write it as 1/x.0 ΓÇö it's important to add ".0" to ensure the type is fractional otherwise you will get 0 probability due to how C# works when dividing integer by integer.

Regards!

f6292131