simply if code

This commit is contained in:
Mixpa
2019-08-25 21:51:19 +08:00
parent 5ea2c493e8
commit dfeab6b558
5 changed files with 7 additions and 27 deletions

View File

@@ -80,10 +80,7 @@ public class RandomChanceUtil
public static boolean rollDice(double chanceOfSuccess, int bound) {
Random random = new Random();
if (chanceOfSuccess > random.nextInt(bound))
return true;
else
return false;
return chanceOfSuccess > random.nextInt(bound);
}
/**