updateBonus fix
parent
02370d8069
commit
2bfdeacb54
Binary file not shown.
|
@ -355,15 +355,15 @@ public class Box {
|
|||
|
||||
if(savedGamemode.equals("Special8")){
|
||||
|
||||
if(setCategoryOne + setCategoryTwo + setCategoryThree + setCategoryFour
|
||||
+ setCategoryFive + setCategorySix + setCategorySeven + setCategoryEight >= 108){
|
||||
if(nullCheckInt(setCategoryOne) + nullCheckInt(setCategoryTwo) + nullCheckInt(setCategoryThree) + nullCheckInt(setCategoryFour)
|
||||
+ nullCheckInt(setCategoryFive) + nullCheckInt(setCategorySix) + nullCheckInt(setCategorySeven) + nullCheckInt(setCategoryEight) >= 108){
|
||||
this.bonus = 35;
|
||||
}
|
||||
|
||||
} else
|
||||
|
||||
if(setCategoryOne + setCategoryTwo + setCategoryThree + setCategoryFour
|
||||
+ setCategoryFive + setCategorySix >= 63){
|
||||
if(nullCheckInt(setCategoryOne) + nullCheckInt(setCategoryTwo) + nullCheckInt(setCategoryThree) + nullCheckInt(setCategoryFour)
|
||||
+ nullCheckInt(setCategoryFive) + nullCheckInt(setCategorySix) >= 63){
|
||||
this.bonus = 35;
|
||||
}
|
||||
|
||||
|
@ -440,4 +440,12 @@ public class Box {
|
|||
else
|
||||
return "" + i;
|
||||
}
|
||||
|
||||
public int nullCheckInt(Integer i) {
|
||||
|
||||
if(i == null)
|
||||
return 0;
|
||||
else
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue