Parcourir la source

加启灵任务

cyzhao il y a 10 mois
Parent
commit
55b11ad815

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-08-05 17:51:50
+ // 日期: 2024-08-13 13:55:57
 ////////////////////
 
 /**

+ 10 - 4
Gameserver/App/model/Const/sm_activeTask.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-08-05 17:35:46
+ // 日期: 2024-08-06 10:28:15
 ////////////////////
 
 
@@ -42,9 +42,13 @@ class sm_activeTask
     *  203: 参与挑战副本X次;参数1:无;参数2:参与次数(数值)
     *  204: 通过挑战副本X层,参数1:无,参数2:挑战层数(数值)
     *  205: 通关竞速副本X次;参数1:无;参数2:参与次数(数值)
+    *  206: 进入第X关;参数1:关卡ID;参数2:进入次数
+    *  207: 通关主线挑战第X关的X模式1次;参数1:关卡ID;参数2:难度(1普通,2困难,3噩梦)
+    *  208: 领取排行榜元宝奖励X次;参数1:无;参数2:次数(数值)
+    *  209: 玩家等级到达X级;参数1:无;参数2:等级(数值)
     *  301: 完成X次启灵;参数1:无;参数2:次数(数值)
     *  302: 完成X次关键启灵;参数1:无;参数2:次数(数值)
-    *  401: 镶嵌3个X品质以上宝石;参数1:宝石品质(数值);参数2:宝石数量
+    *  401: 镶嵌X个X品质以上宝石;参数1:宝石品质(数值);参数2:宝石数量
     *  402: 合成X次宝石;参数1:无;参数2:合成次数(数值)
     *  501: 任意1个法术等级达到2;参数1:法术等级;参数2:法术数量
     *  601: 任意1件装备等级达到X级;参数一:等级(数值);参数2:装备数量
@@ -75,7 +79,7 @@ class sm_activeTask
     public $num;
 
     /**
-    * @var String 宝石类型,数量  
+    * @var String 奖励类型,数量  
     */
     public $prizes;
 
@@ -106,7 +110,9 @@ class sm_activeTask
     *  2:装备界面
     *  3:商城界面
     *  4:前往挑战模式界面
-    *  5:前往购买体力界面 default(0) 
+    *  5:前往购买体力界面
+    *  6.前往启灵界面
+    *  7.前往排行榜界面 default(0) 
     */
     public $gotoType;
 

+ 10 - 4
Gameserver/App/model/Const/sm_activeTask_type.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-08-05 17:35:46
+ // 日期: 2024-08-06 10:28:15
 ////////////////////
 
 
@@ -42,9 +42,13 @@ class sm_activeTask_type
     *  203: 参与挑战副本X次;参数1:无;参数2:参与次数(数值)
     *  204: 通过挑战副本X层,参数1:无,参数2:挑战层数(数值)
     *  205: 通关竞速副本X次;参数1:无;参数2:参与次数(数值)
+    *  206: 进入第X关;参数1:关卡ID;参数2:进入次数
+    *  207: 通关主线挑战第X关的X模式1次;参数1:关卡ID;参数2:难度(1普通,2困难,3噩梦)
+    *  208: 领取排行榜元宝奖励X次;参数1:无;参数2:次数(数值)
+    *  209: 玩家等级到达X级;参数1:无;参数2:等级(数值)
     *  301: 完成X次启灵;参数1:无;参数2:次数(数值)
     *  302: 完成X次关键启灵;参数1:无;参数2:次数(数值)
-    *  401: 镶嵌3个X品质以上宝石;参数1:宝石品质(数值);参数2:宝石数量
+    *  401: 镶嵌X个X品质以上宝石;参数1:宝石品质(数值);参数2:宝石数量
     *  402: 合成X次宝石;参数1:无;参数2:合成次数(数值)
     *  501: 任意1个法术等级达到2;参数1:法术等级;参数2:法术数量
     *  601: 任意1件装备等级达到X级;参数一:等级(数值);参数2:装备数量
@@ -75,7 +79,7 @@ class sm_activeTask_type
     public $num;
 
     /**
-    * @var String 宝石类型,数量  
+    * @var String 奖励类型,数量  
     */
     public $prizes;
 
@@ -106,7 +110,9 @@ class sm_activeTask_type
     *  2:装备界面
     *  3:商城界面
     *  4:前往挑战模式界面
-    *  5:前往购买体力界面 default(0) 
+    *  5:前往购买体力界面
+    *  6.前往启灵界面
+    *  7.前往排行榜界面 default(0) 
     */
     public $gotoType;
 

+ 1 - 1
Gameserver/App/model/Const/sm_announcement.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-08-01 18:35:48
+ // 日期: 2024-08-06 11:05:48
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-08-01 09:15:19
+ // 日期: 2024-08-06 09:42:14
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_gate_unlock.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-08-01 09:15:19
+ // 日期: 2024-08-06 09:42:14
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_globalsettings.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-08-05 17:22:52
+ // 日期: 2024-08-06 10:05:48
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_hero.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-08-02 15:29:02
+ // 日期: 2024-08-07 10:05:48
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_heroType_typeId.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-08-02 15:29:02
+ // 日期: 2024-08-07 10:05:48
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_predicate.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-08-02 14:50:46
+ // 日期: 2024-08-07 09:51:04
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_skills.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-08-05 12:05:48
+ // 日期: 2024-08-06 18:05:48
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_sysmail.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-08-05 16:41:11
+ // 日期: 2024-08-08 13:48:10
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_waveItem.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-08-05 17:35:48
+ // 日期: 2024-08-08 12:05:48
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_waves.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-08-05 17:35:48
+ // 日期: 2024-08-08 12:05:48
 ////////////////////
 
 

+ 13 - 9
Gameserver/App/model/User/Ins_TaskStep_Active.php

@@ -91,9 +91,9 @@ class Ins_TaskStep_Active extends Object_ext {
      */
     function isStatusType() {
         return $this->mo()->cmd == Enum_ActiveTaskCmdType::SetSpecialQualGem || $this->mo()->cmd == Enum_ActiveTaskCmdType::DailyLogin #
-               || $this->mo()->cmd == Enum_ActiveTaskCmdType::AnyEquipUpLevel_X || $this->mo()->cmd == Enum_ActiveTaskCmdType::AllEquipUpLevel_X || $this->mo()->cmd == Enum_ActiveTaskCmdType::OnLogin_X #
-               || $this->mo()->cmd == Enum_ActiveTaskCmdType::PassLayer_ChallengeGate || $this->mo()->cmd == Enum_ActiveTaskCmdType::UserLevel_X || $this->mo()->cmd == Enum_ActiveTaskCmdType::RankPrize_Num#
-               || $this->mo()->cmd == Enum_ActiveTaskCmdType::PassMainChallengeGate_X_Num;
+                || $this->mo()->cmd == Enum_ActiveTaskCmdType::AnyEquipUpLevel_X || $this->mo()->cmd == Enum_ActiveTaskCmdType::AllEquipUpLevel_X || $this->mo()->cmd == Enum_ActiveTaskCmdType::OnLogin_X #
+                || $this->mo()->cmd == Enum_ActiveTaskCmdType::PassLayer_ChallengeGate || $this->mo()->cmd == Enum_ActiveTaskCmdType::UserLevel_X || $this->mo()->cmd == Enum_ActiveTaskCmdType::RankPrize_Num#
+                || $this->mo()->cmd == Enum_ActiveTaskCmdType::PassMainChallengeGate_X_Num || $this->mo()->cmd == Enum_ActiveTaskCmdType::CompleteNumQiLing || $this->mo()->cmd == Enum_ActiveTaskCmdType::CompleteNumSpecialQiLing;
     }
 
     function calcStatusCur() {
@@ -116,27 +116,31 @@ class Ins_TaskStep_Active extends Object_ext {
         }
 
         switch ($mo->cmd) {
+            case Enum_ActiveTaskCmdType::CompleteNumQiLing:
+                return ctx()->gates->evolveMaxId_left;               
+            case Enum_ActiveTaskCmdType::CompleteNumSpecialQiLing:
+                return ctx()->gates->evolveMaxId_right;
             case Enum_ActiveTaskCmdType::PassMainChallengeGate_X_Num:
                 $gateId = $para0;
                 $gateInfo = ctx()->gates->GateList->$gateId;
                 $state = $gateInfo->tz_state;
-                        
-                if($state >= $para1){
+
+                if ($state >= $para1) {
                     return 1;
                 }
                 return 0;
             case Enum_ActiveTaskCmdType::RankPrize_Num:
                 $arr = ctx()->privateState->rankReward_drawed_MainGate;
                 $num = count($arr);
-                
+
                 $arr2 = ctx()->privateState->rankReward_drawed_fightPower;
                 $num += count($arr2);
-                
+
                 return $num;
             case Enum_ActiveTaskCmdType::UserLevel_X:
                 return ctx()->baseInfo->level;
             case Enum_ActiveTaskCmdType::DailyLogin:                            # 每日登录                 
-                return 1;        
+                return 1;
             case Enum_ActiveTaskCmdType::SetSpecialQualGem:                     # 镶嵌3个普通品质以上宝石 
                 $gemEquip = ctx()->store->gemEquip;
                 $num = 0;
@@ -188,7 +192,7 @@ class Ins_TaskStep_Active extends Object_ext {
                             if (TimeUtil::totalDays(now()) == $i) {
                                 break;
                             }
-                        }                        
+                        }
                     }
                 }
                 return $day;

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

@@ -131,6 +131,8 @@ class FightProc {
 
             ctx()->baseInfo->Consume_Gold($mo->needGold_unlock);
             ctx()->gates->evolveMaxId_left = $nextId;
+            
+            TaskProc::OnCompleteNumQiLing();
         } else {
             $nextId = ctx()->gates->evolveMaxId_right + 1;
             my_Assert($id == $nextId, ErrCode::err_const_no);
@@ -152,6 +154,7 @@ class FightProc {
                 ctx()->store->removeItem($costId, $costNum);
             }
             ctx()->gates->evolveMaxId_right = $id;
+            TaskProc::OnCompleteNumSpecialQiLing();
         }
 
         UserProc::updateUserInfo();