updateBonus fix

main
s.eser 2024-04-30 11:41:41 +02:00
parent 02370d8069
commit 2bfdeacb54
2 changed files with 12 additions and 4 deletions

Binary file not shown.

View File

@ -355,15 +355,15 @@ public class Box {
if(savedGamemode.equals("Special8")){ if(savedGamemode.equals("Special8")){
if(setCategoryOne + setCategoryTwo + setCategoryThree + setCategoryFour if(nullCheckInt(setCategoryOne) + nullCheckInt(setCategoryTwo) + nullCheckInt(setCategoryThree) + nullCheckInt(setCategoryFour)
+ setCategoryFive + setCategorySix + setCategorySeven + setCategoryEight >= 108){ + nullCheckInt(setCategoryFive) + nullCheckInt(setCategorySix) + nullCheckInt(setCategorySeven) + nullCheckInt(setCategoryEight) >= 108){
this.bonus = 35; this.bonus = 35;
} }
} else } else
if(setCategoryOne + setCategoryTwo + setCategoryThree + setCategoryFour if(nullCheckInt(setCategoryOne) + nullCheckInt(setCategoryTwo) + nullCheckInt(setCategoryThree) + nullCheckInt(setCategoryFour)
+ setCategoryFive + setCategorySix >= 63){ + nullCheckInt(setCategoryFive) + nullCheckInt(setCategorySix) >= 63){
this.bonus = 35; this.bonus = 35;
} }
@ -440,4 +440,12 @@ public class Box {
else else
return "" + i; return "" + i;
} }
public int nullCheckInt(Integer i) {
if(i == null)
return 0;
else
return i;
}
} }