Author Topic: gold nugget  (Read 326 times)

f6292131

  • Newbie
  • *
  • Posts: 3
    • View Profile
gold nugget
« on: February 14, 2020, 02:18:14 am »
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

« Last Edit: February 14, 2020, 02:36:49 am by f6292131 »

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 1481
    • View Profile
Re: gold nugget
« Reply #1 on: February 14, 2020, 07:53:59 pm »
Hello!

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

f6292131

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: gold nugget
« Reply #2 on: February 14, 2020, 10:07:59 pm »
Yes Or change the amount of gold in the formula

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 1481
    • View Profile
Re: gold nugget
« Reply #3 on: February 15, 2020, 11:02:09 am »
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

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: gold nugget
« Reply #4 on: February 15, 2020, 01:33:35 pm »
Thank you :) :)