Procházet zdrojové kódy

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

cyzhao před 1 rokem
rodič
revize
439fea8d8d
1 změnil soubory, kde provedl 4 přidání a 17 odebrání
  1. 4 17
      Gameserver/App/process/FightProc.php

+ 4 - 17
Gameserver/App/process/FightProc.php

@@ -1,16 +1,8 @@
 <?php
 <?php
-
-/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
-
 namespace loyalsoft;
 namespace loyalsoft;
 
 
 /**
 /**
- * Description of FightProc
- *
+ * 战斗模块
  * @author c'y'zhao
  * @author c'y'zhao
  */
  */
 class FightProc {
 class FightProc {
@@ -325,12 +317,11 @@ class FightProc {
     }
     }
 
 
     /**
     /**
-     * 关卡战斗结算
+     * [6801]关卡战斗结算
      * @return type
      * @return type
      */
      */
     public static function Settle() {
     public static function Settle() {
         list($resultType, $gateId, $gold, $curTs, $pickups) = req()->paras;
         list($resultType, $gateId, $gold, $curTs, $pickups) = req()->paras;
-
         $gateMo = GameConfig::gate_getItem($gateId);
         $gateMo = GameConfig::gate_getItem($gateId);
         my_Assert($gateMo != null, ErrCode::err_const_no);              
         my_Assert($gateMo != null, ErrCode::err_const_no);              
         my_Assert(StlUtil::dictHasProperty(ctx()->gates->GateList, $gateId), ErrCode::user_Gate_NoUserGateInfo);
         my_Assert(StlUtil::dictHasProperty(ctx()->gates->GateList, $gateId), ErrCode::user_Gate_NoUserGateInfo);
@@ -339,7 +330,6 @@ class FightProc {
         if ($curTs >= $ts) {
         if ($curTs >= $ts) {
             $gateInfo->MaxSeconds = $curTs;
             $gateInfo->MaxSeconds = $curTs;
         }
         }
-                              
         if ($resultType) {                                                      # 胜利
         if ($resultType) {                                                      # 胜利
             if (ctx()->gates->GateList->$gateId->pass == 0) {
             if (ctx()->gates->GateList->$gateId->pass == 0) {
                 ctx()->gates->GateList->$gateId->pass = 1;                                             
                 ctx()->gates->GateList->$gateId->pass = 1;                                             
@@ -355,14 +345,11 @@ class FightProc {
                         $gate = new Ins_GateInfo();
                         $gate = new Ins_GateInfo();
                         $gate->GateId = $id;                                             
                         $gate->GateId = $id;                                             
                         ctx()->gates->GateList->$id = $gate;
                         ctx()->gates->GateList->$id = $gate;
-                    }
-                    
+                    }                    
                     if($index >= 3){
                     if($index >= 3){
                         break;
                         break;
                     }
                     }
-                        
-                }
-                
+                }                
             } else {
             } else {
                 
                 
             }
             }