예제 #1
0
 // returns pseudo quality of distilling. 0 if doesnt match the need of the recipes distilling
 public int getDistillQuality(BRecipe recipe, int distillRuns) {
   if (recipe.needsDistilling() != distillRuns > 0) {
     return 0;
   }
   return 10 - Math.abs(recipe.getDistillRuns() - distillRuns);
 }