mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 06:38:56 +00:00
Less Bad Effects for good Quality
This commit is contained in:
@@ -29,7 +29,7 @@ Die Config.yml enthält:
|
|||||||
* Rezepte
|
* Rezepte
|
||||||
* Wörter
|
* Wörter
|
||||||
|
|
||||||
Sie kann frei editiert werden und nach Belieben angepasst werden. Die meisten Optionen werden allerdings erst bei einem Neustart des Servers übernommen.
|
Sie kann frei editiert werden und nach Belieben angepasst werden. Die Änderungen werden nach ausführen des Commands Reload oder nach einem Serverrestart übernommen
|
||||||
|
|
||||||
Alle Teile der Config sind kommentiert. Die Kommentare enthalten Erklärungen und Beispiele.
|
Alle Teile der Config sind kommentiert. Die Kommentare enthalten Erklärungen und Beispiele.
|
||||||
|
|
||||||
|
|||||||
@@ -396,18 +396,25 @@ public class BPlayer {
|
|||||||
} else if (quality <= 5) {
|
} else if (quality <= 5) {
|
||||||
duration *= 250;
|
duration *= 250;
|
||||||
} else {
|
} 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) {
|
if (brewAlc > 10) {
|
||||||
duration = 10 - quality;
|
if (quality <= 5) {
|
||||||
duration += brewAlc;
|
duration = 10 - quality;
|
||||||
duration *= 60;
|
duration += brewAlc;
|
||||||
} else {
|
duration *= 60;
|
||||||
duration = 240;
|
} 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) {
|
public static void addBrewEffects(Brew brew, Player player) {
|
||||||
|
|||||||
Reference in New Issue
Block a user