Fix display values for RNG

This commit is contained in:
nossr50 2021-02-23 19:22:39 -08:00
parent 6a3671a190
commit f039b4cbfa
2 changed files with 2 additions and 7 deletions

View File

@ -1,5 +0,0 @@
package com.gmail.nossr50.util.random;
public class InvalidActivationException extends Exception {
//Weee
}

View File

@ -59,7 +59,7 @@ public class RandomChanceUtil {
public static double chanceOfSuccessPercentage(@NotNull Player player, @NotNull SubSkillType subSkillType, boolean isLucky) {
Probability probability = SkillUtils.getSubSkillProbability(subSkillType, player);
//Probability values are on a 0-1 scale and need to be "transformed" into a 1-100 scale
double percentageValue = probability.getValue() * 100;
double percentageValue = probability.getValue(); //Doesn't need to be scaled
//Apply lucky modifier
if(isLucky) {
@ -71,7 +71,7 @@ public class RandomChanceUtil {
public static double chanceOfSuccessPercentage(@NotNull Probability probability, boolean isLucky) {
//Probability values are on a 0-1 scale and need to be "transformed" into a 1-100 scale
double percentageValue = probability.getValue() * 100;
double percentageValue = probability.getValue();
//Apply lucky modifier
if(isLucky) {