浏览代码

fix: 挑战关卡解锁逻辑.

王刚 1 年之前
父节点
当前提交
58fd4923ff
共有 1 个文件被更改,包括 13 次插入13 次删除
  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 {
                 
             }