Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Help with math
« previous
next »
Print
Pages: [
1
]
Author
Topic: Help with math (Read 302 times)
darkeningnight
June 11, 2019, 02:45:37 PM
I'm really bad at algebra, and maths in general, so I can't figure out how this works
What is the equation in Gamemode_UnlimitedMining that calculates how much the next pick level will cost?
Ad Bot
Advertisement
jes00
June 11, 2019, 03:29:17 PM
It's
function Dig_PickCost
in Mining.cs
If your rank is above 0 then it's
cost =
_{rounded down}
(pick level + 1)
^{1.3}
x rank
If not it's
cost =
_{rounded down}
(pick level + 1)
^{1.3}
+ 50
So if you want to go from level 1 to 2 and you have no rank then it'd be.
1(current pick level) + 1 = 2
2
^{1.3}
= 2.46228882
Rounded down = 2
2 + 50 = 52
You need to pay $52 to go from level 1 to 2.
«
Last Edit: June 11, 2019, 03:42:46 PM by jes00
»
darkeningnight
June 11, 2019, 04:44:44 PM
Many thanks
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Help with math