wanggangzero 6 ماه پیش
والد
کامیت
1c961fa95f
1فایلهای تغییر یافته به همراه5 افزوده شده و 3 حذف شده
  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;