Sfoglia il codice sorgente

fix: 主线挑战结算时,统计杀怪数量

wanggangzero 10 mesi fa
parent
commit
923b1c36a6
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      Gameserver/App/process/FightProc.php

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

@@ -67,12 +67,14 @@ class FightProc {
      * 6819 主线挑战 -- 通关
      */
     static function MainTZPass() {
-        list($gateId, $index) = req()->paras;                                   # 关卡id, 通关难度索引(1/2/3)
+        list($gateId, $index, $killMonsterNum, $killBossNum) = req()->paras;                                   # 关卡id, 通关难度索引(1/2/3)
         my_Assert(ctx()->gates()->maxPassGateId >= $gateId, ErrCode::gate_GateNoUnlock); # 通关后解锁难度1
 //        isEditor() && $gateInfo = new Ins_GateInfo();
         $gateInfo = ctx()->gates()->GateList->$gateId;
         my_Assert($gateInfo->tz_state + 1 >= $index, ErrCode::gate_GateNoUnlock); # 通关上一难度解锁当前难度
         $gateInfo->tz_state = $index;
+        TaskProc::OnKillCommonNumMonster($killMonsterNum);
+        TaskProc::OnKillleaderNumMonster($killBossNum);
         UserProc::updateUserInfo();
         return Resp::ok();
     }