Brawling gloves now only drop from Revenants (1/100) or Chaos Elemental (1/75)

This commit is contained in:
Ceikry
2021-06-28 01:48:28 +00:00
parent 8f189ee4ca
commit dcd47009c1
2 changed files with 31 additions and 22 deletions
@@ -44,6 +44,15 @@ public class RandomFunction {
return Math.min(a, b) + (n == 0 ? 0 : random(n));
}
/**
* Method to roll for a random 1/X chance
* @param chance the 1/chance rate for the roll to succeed
* @return true if you hit the roll, false otherwise
*/
public static boolean roll(int chance){
return random(chance) == chance / 2;
}
/**
* Calculates the chance of succeeding at a skilling event
* @param low - Success chance at level 1