$begingroup$

I’m engaged on an astroid mining sport the place there’s the participant managed ship that may break up astroids into smaller ore chunks to then acquire and produce again to a base station for processing. I’d wish to have a % composition for these astroids that gives a weighted loot drop desk for what ores every astroid drops when break up by the participant. In addition to this, I’d like to have the ability to shift the weights of the drops within the desk primarily based on the gap the participant is from the bottom station. For instance:

Near to Base Station
IRON - 0.80
SILVER - 0.15
GOLD - 0.05

Far from Base Station
IRON - 0.50
SILVER = 0.30
GOLD - 0.20

It’d be easy to create a number of drop tables with these values preset, nevertheless I’d wish to interpolate the values and alter them relative to the gap the participant is from the bottom station. What could be strategy to reaching this conduct?

andrewwx10 is a brand new contributor to this web site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

$endgroup$