mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	@@ -5,9 +5,9 @@ public class RandomChanceStatic implements RandomChanceExecution {
 | 
				
			|||||||
    private final double probabilityCap;
 | 
					    private final double probabilityCap;
 | 
				
			||||||
    private final boolean isLucky;
 | 
					    private final boolean isLucky;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public RandomChanceStatic(double xPos, boolean isLucky) {
 | 
					    public RandomChanceStatic(double xPos, double probabilityCap, boolean isLucky) {
 | 
				
			||||||
        this.xPos = xPos;
 | 
					        this.xPos = xPos;
 | 
				
			||||||
        this.probabilityCap = xPos;
 | 
					        this.probabilityCap = probabilityCap;
 | 
				
			||||||
        this.isLucky = isLucky;
 | 
					        this.isLucky = isLucky;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -282,10 +282,10 @@ public class RandomChanceUtil {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public static String @NotNull [] calculateAbilityDisplayValuesStatic(@NotNull Player player, @NotNull PrimarySkillType primarySkillType, double chance) {
 | 
					    public static String @NotNull [] calculateAbilityDisplayValuesStatic(@NotNull Player player, @NotNull PrimarySkillType primarySkillType, double chance) {
 | 
				
			||||||
        RandomChanceStatic rcs = new RandomChanceStatic(chance, false);
 | 
					        RandomChanceStatic rcs = new RandomChanceStatic(chance, LINEAR_CURVE_VAR, false);
 | 
				
			||||||
        double successChance = getRandomChanceExecutionChance(rcs);
 | 
					        double successChance = getRandomChanceExecutionChance(rcs);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        RandomChanceStatic rcs_lucky = new RandomChanceStatic(chance, true);
 | 
					        RandomChanceStatic rcs_lucky = new RandomChanceStatic(chance, LINEAR_CURVE_VAR, true);
 | 
				
			||||||
        double successChance_lucky = getRandomChanceExecutionChance(rcs_lucky);
 | 
					        double successChance_lucky = getRandomChanceExecutionChance(rcs_lucky);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        String[] displayValues = new String[2];
 | 
					        String[] displayValues = new String[2];
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user