Procházet zdrojové kódy

fix: 挑战关卡解锁逻辑.

王刚 před 1 rokem
rodič
revize
58fd4923ff
1 změnil soubory, kde provedl 13 přidání a 13 odebrání
  1. 13 13
      Gameserver/App/process/FightProc.php

+ 13 - 13
Gameserver/App/process/FightProc.php

@@ -338,19 +338,19 @@ class FightProc {
             if(Ins_GateInfo::GateTypeFromId($gateId) == Enum_GateType::MainStoryGate){
                 ctx()->gates->UnlockNextPlotGate();    
                 $dic = GameConfig::gate();
-//                $index = 0;                                                   # 挑战关卡解锁逻辑,先屏蔽掉,后面有用到再加. -gwang 2024年4月15日    
-//                foreach ($dic as $id => $item) {
-//                    if(Ins_GateInfo::GateTypeFromId($id) == Enum_GateType::MainChallengeGate
-//                            && $item->challengeGateId == $gateId){
-//                        $index += 1;
-//                        $gate = new Ins_GateInfo();
-//                        $gate->GateId = $id;                                             
-//                        ctx()->gates->GateList->$id = $gate;
-//                    }                    
-//                    if($index >= 3){
-//                        break;
-//                    }
-//                }                
+                $index = 0;                                                   # 挑战关卡解锁逻辑. -gwang 2024年4月15日    
+                foreach ($dic as $id => $item) {
+                    if(Ins_GateInfo::GateTypeFromId($id) == Enum_GateType::MainChallengeGate
+                            && $item->challengeGateId == $gateId){
+                        $index += 1;
+                        $gate = new Ins_GateInfo();
+                        $gate->GateId = $id;                                             
+                        ctx()->gates->GateList->$id = $gate;
+                    }                    
+                    if($index >= 3){
+                        break;
+                    }
+                }                
             } else {
                 
             }