Less Bad Effects for good Quality

This commit is contained in:
Sn0wStorm
2013-09-05 22:21:26 +02:00
parent 67a9a9e124
commit 07a9778c8b
2 changed files with 17 additions and 10 deletions
+16 -9
View File
@@ -396,18 +396,25 @@ public class BPlayer {
} else if (quality <= 5) {
duration *= 250;
} else {
duration = 200;
duration = 100;
if (brewAlc <= 10) {
duration = 0;
}
}
if (duration > 0) {
PotionEffectType.POISON.createEffect(duration, 0).apply(player);
}
PotionEffectType.POISON.createEffect(duration, 0).apply(player);
if (brewAlc > 10 && quality <= 5) {
duration = 10 - quality;
duration += brewAlc;
duration *= 60;
} else {
duration = 240;
if (brewAlc > 10) {
if (quality <= 5) {
duration = 10 - quality;
duration += brewAlc;
duration *= 60;
} else {
duration = 120;
}
PotionEffectType.BLINDNESS.createEffect(duration, 0).apply(player);
}
PotionEffectType.BLINDNESS.createEffect(duration, 0).apply(player);
}
public static void addBrewEffects(Brew brew, Player player) {