Corrected iron-ore-smelting success rate
This commit is contained in:
@@ -204,7 +204,7 @@ public class SmeltingPulse extends SkillPulse<Item> {
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
return RandomFunction.getRandom(100) <= (player.getSkills().getLevel(Skills.SMITHING) >= 45 ? 80 : 50);
|
||||
return RandomFunction.nextBool();
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -51,7 +51,7 @@ public class RandomFunction {
|
||||
*/
|
||||
public static boolean roll(int chance) {
|
||||
if (chance <= 1) return true;
|
||||
return random(chance + 1) == chance / 2;
|
||||
return random(chance) == 1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user