This commit is contained in:
hujiabin 2024-04-28 11:58:37 +08:00
parent 84b0233731
commit 32b795c3db
3 changed files with 6 additions and 3 deletions

View File

@ -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));

View File

@ -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 ;

View File

@ -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 ;