fix activity
parent
02e214f754
commit
94302befde
|
@ -480,7 +480,7 @@ public class ActivityLogic {
|
|||
int randomWeight = MathUtils.randomInt(totalWeight) + 1;
|
||||
for (SDifferDemonsBoxPools sDifferDemonsBoxPool : sDifferDemonsBoxPoolsList) {
|
||||
randomWeight -= sDifferDemonsBoxPool.getWeight();
|
||||
if (randomWeight < 0) {
|
||||
if (randomWeight <= 0) {
|
||||
return sDifferDemonsBoxPool.getReward();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue