Also for small cooking time

This commit is contained in:
Sn0wStorm
2013-09-01 20:26:19 +02:00
parent c748e0b7b5
commit b09131c2e0
2 changed files with 6 additions and 3 deletions
+3
View File
@@ -247,6 +247,9 @@ public class BIngredients {
if (!recipe.needsDistilling() == distilled) {
return 0;
}
if (cookedTime <= 1) {
return 0;
}
int quality = 10 - (int) Math.round(((float) Math.abs(cookedTime - recipe.getCookingTime()) / recipe.allowedTimeDiff(recipe.getCookingTime())) * 10.0);
if (quality > 0) {