//const double A = 8.63316841 * Math.Pow( 10, -4 );
const double A = 0.000863316841;
//const double B = 4.25531915 * Math.Pow( 10, -6 );
const double B = 0.00000425531915;
double chance = A * Math.Pow(10, B * x);
if (chance > Utility.RandomDouble())
if (0.01 > Utility.RandomDouble()) //Chance is now 1%
Ty very much =DIn TreasuresOfTokuno.cs
Around line 223 you will find:
C#://const double A = 8.63316841 * Math.Pow( 10, -4 ); const double A = 0.000863316841; //const double B = 4.25531915 * Math.Pow( 10, -6 ); const double B = 0.00000425531915; double chance = A * Math.Pow(10, B * x); if (chance > Utility.RandomDouble())
You can ignore the formula,and just change the chance variable in the if statement for your desired chance,example with 1% chance for drop:
C#:if (0.01 > Utility.RandomDouble()) //Chance is now 1%
We use essential cookies to make this site work, and optional cookies to enhance your experience.