Brawling gloves now only drop from Revenants (1/100) or Chaos Elemental (1/75)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user