1
This commit is contained in:
parent
84b0233731
commit
32b795c3db
@ -384,7 +384,8 @@ class BagController extends BaseAuthedController {
|
||||
private function openBattleBox($itemDb,$itemMeta,$itemNum){
|
||||
$lootMeta = mt\LootConfig::find($itemMeta['loot']);
|
||||
if ($lootMeta['isAffected']){
|
||||
$lucky = Hero::getAccountLucky(myself()->_getAddress());
|
||||
// $lucky = Hero::getAccountLucky(myself()->_getAddress());
|
||||
$lucky = Hero::getAccountLuckyTemp();
|
||||
$luckyParam = \mt\Parameter::getVal('economy_account_luck_K',0);
|
||||
$luckyMaxPro = \mt\Parameter::getVal('economy_account_luck_E',0);
|
||||
$prob = $luckyMaxPro * ($lucky / ($lucky+$luckyParam));
|
||||
|
@ -137,7 +137,8 @@ class RoomBattleDataService extends BaseService {
|
||||
if ($mapModeMeta){
|
||||
$baseGold = 0;
|
||||
$gold = 0;
|
||||
$accountLucky = Hero::getAccountLucky($userDb['address']);
|
||||
// $accountLucky = Hero::getAccountLucky($userDb['address']);
|
||||
$accountLucky = Hero::getAccountLuckyTemp();
|
||||
$rewardMeta = mt\BattleReward::find($mapModeMeta['rewardMode'],$accountLucky);
|
||||
if (!$rewardMeta){
|
||||
return ;
|
||||
|
@ -720,7 +720,8 @@ class TameBattleDataService extends BaseService {
|
||||
$mapModeMeta = mt\MapMode::findByMapMode($room_mode);
|
||||
if ($mapModeMeta){
|
||||
$gold = 0;
|
||||
$accountLucky = Hero::getAccountLucky($userDb['address']);
|
||||
// $accountLucky = Hero::getAccountLucky($userDb['address']);
|
||||
$accountLucky = Hero::getAccountLuckyTemp();
|
||||
$rewardMeta = mt\BattleReward::find($mapModeMeta['rewardMode'],$accountLucky);
|
||||
if (!$rewardMeta){
|
||||
return ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user