Alc changes for bad potions

This commit is contained in:
Sn0wStorm
2013-08-31 18:23:03 +02:00
parent ea06f2d707
commit 33285e54de
3 changed files with 17 additions and 5 deletions
+3 -1
View File
@@ -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;
+12 -2
View File
@@ -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()) {