فهرست منبع

fixed: 通关无尽塔的任务检测功能.

gwang 3 سال پیش
والد
کامیت
78133a165e

+ 1 - 1
Gameserver/Amfphp/model/Const/GameConfig.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-07-21 14:58:15
+ // 日期: 2021-07-23 15:09:38
 ////////////////////
 
 /**

+ 1 - 1
Gameserver/Amfphp/model/Const/sm_eventAction.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-07-13 10:15:45
+ // 日期: 2021-07-22 11:18:23
 ////////////////////
 
 

+ 1 - 1
Gameserver/Amfphp/model/Const/sm_gate.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-07-21 14:52:03
+ // 日期: 2021-07-23 13:57:40
 ////////////////////
 
 

+ 1 - 1
Gameserver/Amfphp/model/Const/sm_item_base.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-07-14 16:13:42
+ // 日期: 2021-07-23 09:29:54
 ////////////////////
 
 

+ 1 - 1
Gameserver/Amfphp/model/Const/sm_item_taskcard.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-07-21 14:43:24
+ // 日期: 2021-07-23 09:28:19
 ////////////////////
 
 

+ 1 - 1
Gameserver/Amfphp/model/Const/sm_plot.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-07-14 16:16:34
+ // 日期: 2021-07-23 13:43:29
 ////////////////////
 
 

+ 1 - 1
Gameserver/Amfphp/model/Const/sm_worldboss_rankreward2.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-07-09 09:22:19
+ // 日期: 2021-07-22 12:06:47
 ////////////////////
 
 

+ 2 - 1
Gameserver/Amfphp/model/User/Ins_TaskStep.php

@@ -73,7 +73,7 @@ class Ins_TaskStep extends Object_ext {
     }
 
     /**
-     * 
+     *
      * @param \sm_eventAction $act
      */
     private function execAct($act) {
@@ -223,6 +223,7 @@ class Ins_TaskStep extends Object_ext {
 
         $paras = $this->paras();
         $index = 0;
+//        var_dump($paras);
         foreach ($taskCardEvent->paras as $para) {                              # 其他任务, 执行参数判定
             if ($index < count($paras)) {
                 if (strpos($para, "|") !== false) {                             # 某个条件是"或"的关系, 即有多重可能值, 满足其一即可

+ 3 - 0
Gameserver/Amfphp/process/FightProc.php

@@ -150,6 +150,7 @@ class FightProc {
      * [6842] 无尽塔升级
      */
     static function EndlessTower_Up() {
+        $gateId = 600001;
         list( $index) = req()->paras;
         my_Assert($index == ctx()->privateData()->endlessTower, ErrCode::Fight_endlessTower_index);
         ctx()->privateData()->endlessTower++;                                   # 指向下一关
@@ -161,6 +162,8 @@ class FightProc {
         $err = StoreProc::AddMultiItemInStore($rewardStr);                      # 发放奖励
         my_Assert(ErrCode::ok == $err, $err);                                   # 防御代码
         UserProc::updateUserInfo();                                             # 更新
+        TaskProc::OnPassCarboN($gateId, $index);
+//        var_dump("无尽塔");
         return Resp::ok(array('index' => ctx()->privateData()->endlessTower,
                     'baseInfo' => ctx()->base(),
                     'store' => ctx()->store()

+ 1 - 1
Gameserver/Amfphp/process/FightProc/SweepGatesProc.php

@@ -148,7 +148,7 @@ class SweepGatesProc {
                 break;
 
             case 6:                                                             # 无尽塔
-                TaskProc::OnPassCarboN($gateId, $difficulty);
+
                 break;
             case 7:                                                             # 世界boss
                 TaskProc::OnPassWorldBoss($gateId);

+ 16 - 6
Gameserver/Amfphp/process/TaskProc.php

@@ -643,8 +643,10 @@ class TaskProc {
      * 神庙抽奖
      */
     static function OnTempleLottery() {
-        $taskParam = new Ins_TaskParams(Enum_TaskCmdType::TempleLottery);
-        self::CheckTaskConditions($taskParam);
+//        $taskParam = new Ins_TaskParams(Enum_TaskCmdType::TempleLottery);
+//        self::CheckTaskConditions($taskParam);
+        $taskEventArg = new Ins_TaskEventArgs(Enum_TaskCmdType::TempleLottery, Enum_PropelType::set, 1, array());
+        self::CheckTaskCardConditions($taskEventArg);
     }
 
     /**
@@ -679,6 +681,8 @@ class TaskProc {
         $taskParam = new Ins_TaskParams(Enum_TaskCmdType::HeroGradeUpTo, $heroMoId, $newGrade);
         self::CheckTaskConditions($taskParam);
         self::OnHeroImprove();
+        $taskEventArg = new Ins_TaskEventArgs(Enum_TaskCmdType::HeroGradeUpTo, Enum_PropelType::set, 1, array());
+        self::CheckTaskCardConditions($taskEventArg);
     }
 
     /**
@@ -743,8 +747,11 @@ class TaskProc {
      * @param type $difficulty 层数
      */
     static function OnPassCarboN($gateId, $difficulty) {
-        $taskParam = new Ins_TaskParams(Enum_TaskCmdType::passEndlessCarbonN, $gateId, $difficulty);
-        self::CheckTaskConditions($taskParam);
+//        $taskParam = new Ins_TaskParams(Enum_TaskCmdType::passEndlessCarbonN, $gateId, $difficulty);
+//        self::CheckTaskConditions($taskParam);
+        $taskEventArg = new Ins_TaskEventArgs(Enum_TaskCmdType::passEndlessCarbonN, Enum_PropelType::set, 1, array($gateId, $difficulty));
+//        var_dump($taskEventArg);
+        self::CheckTaskCardConditions($taskEventArg);
     }
 
     /**
@@ -752,8 +759,11 @@ class TaskProc {
      * @param type $gateId
      */
     static function OnPassWorldBoss($gateId) {
-        $taskParam = new Ins_TaskParams(Enum_TaskCmdType::PassWorldBoss, $gateId);
-        self::CheckTaskConditions($taskParam);
+//        $taskParam = new Ins_TaskParams(Enum_TaskCmdType::PassWorldBoss, $gateId);
+//        self::CheckTaskConditions($taskParam);
+        $taskEventArg = new Ins_TaskEventArgs(Enum_TaskCmdType::PassWorldBoss, Enum_PropelType::set, 1, array($gateId));
+//        var_dump($taskEventArg);
+        self::CheckTaskCardConditions($taskEventArg);
     }
 
     /**