1
This commit is contained in:
parent
a0f694f819
commit
9a3f73c81b
@ -30,7 +30,9 @@ class BattleBoxService {
|
|||||||
$currPhase = self::getCurrentPhase();
|
$currPhase = self::getCurrentPhase();
|
||||||
$startTime = 0;
|
$startTime = 0;
|
||||||
$endTime = 0;
|
$endTime = 0;
|
||||||
|
$minNum = 0;
|
||||||
$maxNum = 0;
|
$maxNum = 0;
|
||||||
|
$maxNumLimit = 0;
|
||||||
$completionDegree = 0;
|
$completionDegree = 0;
|
||||||
|
|
||||||
$allocableNum = self::getDailyPhaseAllocNum($currPhase, myself()->_getNowDaySeconds());
|
$allocableNum = self::getDailyPhaseAllocNum($currPhase, myself()->_getNowDaySeconds());
|
||||||
@ -55,6 +57,7 @@ class BattleBoxService {
|
|||||||
//没掉完
|
//没掉完
|
||||||
$completionDegree = $yesterDayDropTotal / $yesterDayAllocNum;
|
$completionDegree = $yesterDayDropTotal / $yesterDayAllocNum;
|
||||||
}
|
}
|
||||||
|
$allocableNum = min(5000, $maxNum * $completionDegree);
|
||||||
}
|
}
|
||||||
if ($allocableNum) {
|
if ($allocableNum) {
|
||||||
self::setDailyPhaseAllocNum($currPhase, $allocableNum);
|
self::setDailyPhaseAllocNum($currPhase, $allocableNum);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user