1
This commit is contained in:
parent
cb0ab1ceb8
commit
868ab80e27
@ -467,13 +467,20 @@ class BattleDataService extends BaseService {
|
|||||||
{
|
{
|
||||||
$pveRankScore = getReqVal('pve_rank_score', 0);
|
$pveRankScore = getReqVal('pve_rank_score', 0);
|
||||||
|
|
||||||
|
$todayPveBattleTimes = $this->_getDailyV(TN_DAILY_PVE_BATTLE_TIMES, 0);
|
||||||
|
$todayPveGetFragmentNum = $this->_getDailyV(TN_DAILY_PVE_GET_FRAGMENT_NUM, 0);
|
||||||
|
$todayPvpGetFragmentNum = $this->_getDailyV(TN_DAILY_PVP_GET_FRAGMENT_NUM, 0);
|
||||||
|
|
||||||
|
$this->_incDailyV(TN_DAILY_PVE_BATTLE_TIMES, 1);
|
||||||
|
if ($todayPveGetFragmentNum + $todayPvpGetFragmentNum > 2) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$onlineNum = $this->getOnlineNumber();
|
$onlineNum = $this->getOnlineNumber();
|
||||||
$instanceLevel = $this->pveGeminiMeta['gemini_lv'];
|
$instanceLevel = $this->pveGeminiMeta['gemini_lv'];
|
||||||
$instanceRank = mt\PveGeminiMode::calcStar($this->pveGeminiModeMeta, $pveRankScore);
|
$instanceRank = mt\PveGeminiMode::calcStar($this->pveGeminiModeMeta, $pveRankScore);
|
||||||
$instanceRankRate = $this->getInstanceRankRate();
|
$instanceRankRate = $this->getInstanceRankRate();
|
||||||
$bossReward = getReqVal('pve_kill_boss', 0) ? 1 : 0;
|
$bossReward = getReqVal('pve_kill_boss', 0) ? 1 : 0;
|
||||||
$todayPveBattleTimes = $this->_getDailyV(TN_DAILY_PVE_BATTLE_TIMES, 0);
|
|
||||||
$todayPveGetFragmentNum = $this->_getDailyV(TN_DAILY_PVE_GET_FRAGMENT_NUM, 0);
|
|
||||||
$heroQuality = $this->heroDto['quality'];
|
$heroQuality = $this->heroDto['quality'];
|
||||||
|
|
||||||
$dropRate = max(1.15 - ($heroQuality - $instanceLevel) * 0.25, 0);
|
$dropRate = max(1.15 - ($heroQuality - $instanceLevel) * 0.25, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user