Procházet zdrojové kódy

fix: 挑战关卡解锁逻辑.

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

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

@@ -338,18 +338,19 @@ class FightProc {
             if(Ins_GateInfo::GateTypeFromId($gateId) == Enum_GateType::MainStoryGate){
                 ctx()->gates->UnlockNextPlotGate();    
                 $dic = GameConfig::gate();
-                $index = 0;
-                foreach ($dic as $id => $item) {
-                    if(Ints::Slice($gateId, 0, 1) == 2 && $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 {
                 
             }