1
This commit is contained in:
parent
3498d16b63
commit
b94c0944fa
@ -37,7 +37,7 @@ class MissionController extends BaseAuthedController {
|
|||||||
public function _handlePre()
|
public function _handlePre()
|
||||||
{
|
{
|
||||||
parent::_handlePre();
|
parent::_handlePre();
|
||||||
|
|
||||||
DynData::preload();
|
DynData::preload();
|
||||||
// $this->currRankSeasonMeta = mt\RankSeason::getCurrentSeason();
|
// $this->currRankSeasonMeta = mt\RankSeason::getCurrentSeason();
|
||||||
// if (!$this->currRankSeasonMeta) {
|
// if (!$this->currRankSeasonMeta) {
|
||||||
|
@ -315,7 +315,9 @@ class RoomBattleDataService extends BaseService {
|
|||||||
}
|
}
|
||||||
if ($gold > 0){
|
if ($gold > 0){
|
||||||
Hero::incDailyV($heroDb['idx'],1);
|
Hero::incDailyV($heroDb['idx'],1);
|
||||||
myself()->_incDailyV(TN_DAILY_GOLD_MODE_BATTLE_TIMES,0,1);
|
if ($heroDb['quality'] > 1){
|
||||||
|
myself()->_incDailyV(TN_DAILY_GOLD_MODE_BATTLE_TIMES,0,1);
|
||||||
|
}
|
||||||
$coefficientArr = explode(";",$rewardMeta['goldParam']);
|
$coefficientArr = explode(";",$rewardMeta['goldParam']);
|
||||||
$coefficient = isset($coefficientArr[$teamRank-1]) ? $coefficientArr[$teamRank-1] : 0;
|
$coefficient = isset($coefficientArr[$teamRank-1]) ? $coefficientArr[$teamRank-1] : 0;
|
||||||
$gold = $gold * $coefficient * ($battleScore / $teamScoreAvg);
|
$gold = $gold * $coefficient * ($battleScore / $teamScoreAvg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user