Browse Source

Merge branch 'dev' of http://ylsjtt.game7000.com:3000/YLSJ/jzhj2024server into dev

cyzhao 1 năm trước cách đây
mục cha
commit
d790569298

+ 1 - 1
Gameserver/App/model/User/Info_Gates.php

@@ -70,7 +70,7 @@ class Info_Gates extends Object_ext {
     public $evolveMaxId_right = 0;
 
     public function initialize() {
-        $startId = 10010111;
+        $startId = 110011001;
         $this->CurrentGateId = $startId;
         $this->UnlockedGatesMaxId = $startId;
 

+ 3 - 2
Gameserver/App/process/FightProc.php

@@ -338,9 +338,10 @@ class FightProc {
             if(Ins_GateInfo::GateTypeFromId($gateId) == Enum_GateType::MainStoryGate){
                 ctx()->gates->UnlockNextPlotGate();    
                 $dic = GameConfig::gate();
-                $index = 0;
+                $index = 0;                                                   # 挑战关卡解锁逻辑. -gwang 2024年4月15日    
                 foreach ($dic as $id => $item) {
-                    if(Ints::Slice($gateId, 0, 1) == 2 && $item->challengeGateId == $gateId){
+                    if(Ins_GateInfo::GateTypeFromId($id) == Enum_GateType::MainChallengeGate
+                            && $item->challengeGateId == $gateId){
                         $index += 1;
                         $gate = new Ins_GateInfo();
                         $gate->GateId = $id;