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
+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()) {