1
This commit is contained in:
parent
e478d73cbd
commit
2978e5093f
@ -183,6 +183,7 @@ class RoomBattleDataService extends BaseService {
|
||||
|
||||
//算力加成
|
||||
$currentPeriod= \mt\AchievementsCycle::getCurrentPeriod();
|
||||
if ($currentPeriod){
|
||||
$lastCompute = HashRate::getTotalByAccount($userDb['account_id'], $currentPeriod['id'] - 1);
|
||||
$currentCompute = HashRate::getTotalByAccount($userDb['account_id'], $currentPeriod['id']);
|
||||
$s = mt\Parameter::getVal('economy_account_compute_s',0);
|
||||
@ -190,6 +191,7 @@ class RoomBattleDataService extends BaseService {
|
||||
$computeParam = mt\Parameter::getVal('economy_account_compute_K',0);
|
||||
$computeMaxEffect = mt\Parameter::getVal('economy_account_compute_E',0);
|
||||
$gold = intval( $gold * ($totalCompute / ($totalCompute + $computeParam) * $computeMaxEffect + 1));
|
||||
}
|
||||
if ($gold > 0){
|
||||
array_push($reward,array(
|
||||
"item_id" => V_ITEM_GOLD,
|
||||
|
Loading…
x
Reference in New Issue
Block a user