1
This commit is contained in:
parent
52b6a66dfa
commit
22e24628b4
@ -24,12 +24,11 @@ class BattleBoxService {
|
||||
$lstVal = mt\Parameter::getListValue('battle_event_loot_per_game');
|
||||
if (!$allocableNum <= 0 || empty($lstVal) || count($lstVal) < 2) {
|
||||
$rnd = rand($lstVal[0], $lstVal[1]);
|
||||
if ($rnd <= 0) {
|
||||
return;
|
||||
}
|
||||
if ($rnd > 0) {
|
||||
$boxNum = min($rnd, $allocableNum);
|
||||
}
|
||||
}
|
||||
}
|
||||
return $boxNum;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user