1
This commit is contained in:
parent
3498d16b63
commit
b94c0944fa
@ -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