1
This commit is contained in:
parent
a1c99dd9ae
commit
63f815ddd6
@ -20,13 +20,18 @@ class BattleBoxService {
|
|||||||
$currPhase = self::getCurrentPhase();
|
$currPhase = self::getCurrentPhase();
|
||||||
$startTime = 0;
|
$startTime = 0;
|
||||||
$endTime = 0;
|
$endTime = 0;
|
||||||
|
$maxNum = 0;
|
||||||
|
|
||||||
$allocableNum = self::getDailyPhaseAllocNum($currPhase, myself()->_getNowDaySeconds());
|
$allocableNum = self::getDailyPhaseAllocNum($currPhase, myself()->_getNowDaySeconds());
|
||||||
$alreadyAllocNum = self::getDailyPhaseAlreadyAllocNum($currPhase, myself()->_getNowDaySeconds());
|
$alreadyAllocNum = self::getDailyPhaseAlreadyAllocNum($currPhase, myself()->_getNowDaySeconds());
|
||||||
if ($allocableNum <= 0) {
|
if ($allocableNum <= 0) {
|
||||||
$yesterDayLastDropTime = self::getDailyPhaseDropLastTime($currPhase, myself()->_getNowDaySeconds());
|
$yesterDayTime = myself()->_getNowDaySeconds() - 3600 * 24;
|
||||||
$yesterDayDropTotal = self::getDailyPhaseDropTotalNum($currPhase, myself()->_getNowDaySeconds());
|
$yesterDayLastDropTime = self::getDailyPhaseDropLastTime($currPhase, $yesterDayTime);
|
||||||
|
$yesterDayDropTotal = self::getDailyPhaseDropTotalNum($currPhase, $yesterDayTime);
|
||||||
|
$yesterDayAllocNum = self::getDailyPhaseAllocNum($currPhase, $yesterDayTime);
|
||||||
|
if ($yesterDayAllocNum >= 0) {
|
||||||
|
$allocableNum = $maxNum;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ($allocableNum > 0) {
|
if ($allocableNum > 0) {
|
||||||
$lstVal = mt\Parameter::getListValue('battle_event_loot_per_game');
|
$lstVal = mt\Parameter::getListValue('battle_event_loot_per_game');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user