Parcourir la source

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

cyzhao il y a 6 mois
Parent
commit
1f8deabed5
1 fichiers modifiés avec 5 ajouts et 3 suppressions
  1. 5 3
      Gameserver/App/process/FightProc.php

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

@@ -402,13 +402,15 @@ class FightProc {
 
         if (Ints::Slice($gateId, 0, 1) == 9) {                                  # 爬塔模式
 //            list($layerNum) = req()->paras;
-            if ($layerNum != ctx()->gates()->TowerGateInfo()->CurLayer) {       # 起始层数校验
+            if ($layerNum != ctx()->gates()->TowerGateInfo()->CurLayer) {       # --起始层数校验
                 Err(ErrCode::tower_layerNum);
             }
-            if (ctx()->gates()->TowerGateInfo()->TodayChanNum < 1) {           # 剩余次数校验
+            if (ctx()->gates()->TowerGateInfo()->TodayChanNum < 1) {            # --剩余次数校验
                 Err(ErrCode::tower_timeNo);
             }
-            ctx()->gates()->TowerGateInfo()->TodayChanNum--;                    # 增加次数
+            ctx()->gates()->TowerGateInfo()->TodayChanNum--;                    # --增加次数
+        } else if (Ints::Slice($gateId, 0, 1) == 8) {                           # 兔羊模式
+            // nothing todo 临时
         } else {                                                                # 主线剧情
             my_Assert(ctx()->base(true)->Consume_tili($mo->cost_tili), ErrCode::notenough_tili);
             ctx()->privateData(true)->battlePass_tili += $mo->cost_tili;