This commit is contained in:
aozhiwei 2024-10-09 15:15:26 +08:00
parent 209b7ba3ff
commit 8ac3cd2786

View File

@ -92,9 +92,11 @@ class BattleBoxService {
} }
$allocableNum = min($maxNumLimit, $maxNum * $completionDegree); $allocableNum = min($maxNumLimit, $maxNum * $completionDegree);
} }
if ($allocableNum) { if ($allocableNum > 0) {
self::setDailyPhaseAllocNum($currPhase, myself()->_getNowDaySeconds(), $allocableNum); self::setDailyPhaseAllocNum($currPhase, myself()->_getNowDaySeconds(), $allocableNum);
} }
} else {
} }
if ($allocableNum > 0) { if ($allocableNum > 0) {
$lstVal = mt\Parameter::getListValue('battle_event_loot_per_game'); $lstVal = mt\Parameter::getListValue('battle_event_loot_per_game');