1
This commit is contained in:
parent
47cc3523fc
commit
9d2ba39efc
@ -4,6 +4,15 @@ namespace services;
|
||||
|
||||
require_once('mt/Parameter.php');
|
||||
|
||||
/*
|
||||
1、周期没害没结束,箱子就掉完了
|
||||
完成度=T max/T cost time(last time-start time)
|
||||
2、周期结束,箱子也还没掉完
|
||||
完成度=N real num/N max
|
||||
|
||||
下-天的投放数量(下一天max)
|
||||
下一天max=min(today max*today 完成度,qlobal max)
|
||||
*/
|
||||
class BattleBoxService {
|
||||
|
||||
const DAILY_PHASE_DROP_LAST_TIME_KEY = ':';
|
||||
@ -31,6 +40,8 @@ class BattleBoxService {
|
||||
$yesterDayAllocNum = self::getDailyPhaseAllocNum($currPhase, $yesterDayTime);
|
||||
if ($yesterDayAllocNum <= 0) {
|
||||
$allocableNum = $maxNum;
|
||||
} else {
|
||||
|
||||
}
|
||||
if ($allocableNum) {
|
||||
self::setDailyPhaseAllocNum($currPhase, $allocableNum);
|
||||
|
Loading…
x
Reference in New Issue
Block a user