mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 07:49:03 +00:00
Alc changes for bad potions
This commit is contained in:
@@ -376,7 +376,9 @@ public class BPlayer {
|
||||
|
||||
public static void addQualityEffects(int quality, int brewAlc, Player player) {
|
||||
int duration = 7 - quality;
|
||||
if (quality <= 5) {
|
||||
if (quality == 0) {
|
||||
duration *= 500;
|
||||
} else if (quality <= 5) {
|
||||
duration *= 250;
|
||||
} else {
|
||||
duration = 200;
|
||||
|
||||
@@ -143,12 +143,22 @@ public class Brew {
|
||||
public int calcAlcohol() {
|
||||
if (quality == 0) {
|
||||
// Give bad potions some alc
|
||||
int badAlc = 0;
|
||||
if (distillRuns > 1) {
|
||||
return distillRuns;
|
||||
badAlc = distillRuns;
|
||||
}
|
||||
if (ageTime > 10) {
|
||||
badAlc += 5;
|
||||
} else if (ageTime > 2) {
|
||||
badAlc += 3;
|
||||
}
|
||||
if (currentRecipe != null) {
|
||||
return badAlc;
|
||||
} else {
|
||||
return 1;
|
||||
return badAlc / 2;
|
||||
}
|
||||
}
|
||||
|
||||
if (currentRecipe != null) {
|
||||
int alc = currentRecipe.getAlcohol();
|
||||
if (currentRecipe.needsDistilling()) {
|
||||
|
||||
Reference in New Issue
Block a user