Jelajahi Sumber

战斗失败次数

cyzhao 10 bulan lalu
induk
melakukan
cc5d6257c4

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-07-22 15:27:06
+ // 日期: 2024-07-23 14:34:07
 ////////////////////
 
 /**
@@ -749,6 +749,22 @@ class GameConfig {
         return self::get_hash_item('token_publicgift', $itemid);
     }
     /**
+    * 游戏功能解锁信息
+    * @return \fun_unlock
+    */
+    public static function fun_unlock()
+    { 
+        static $a = null; 
+        return self::initValue($a, 'fun_unlock');
+    }
+    /**
+    * @return \sm_fun_unlock fun_unlock item数据 
+    */
+    public static function fun_unlock_getItem($itemid)
+    { 
+        return self::get_hash_item('fun_unlock', $itemid);
+    }
+    /**
     * 当前版本(时间戳)
     * @return \ver
     */

+ 62 - 0
Gameserver/App/model/Const/sm_fun_unlock.php

@@ -0,0 +1,62 @@
+<?php
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2024-07-23 12:13:42
+////////////////////
+
+
+/**
+ * Static Model fun_unlock 游戏功能解锁信息
+ */
+class sm_fun_unlock
+{
+
+    /**
+    * @var Int32 功能id  
+    */
+    public $id;
+
+    /**
+    * @var String 功能名称  
+    */
+    public $name;
+
+    /**
+    * @var String 功能图片名称  
+    */
+    public $iconName;
+
+    /**
+    * @var String 用途未知!!请到数据库中添加字段注释。  
+    */
+    public $moduleName;
+
+    /**
+    * @var String 用途未知!!请到数据库中添加字段注释。  
+    */
+    public $cmptPath;
+
+    /**
+    * @var Int32 1:参与战斗结束即可  2战斗胜利  3某场战斗参加N次数才行  
+    */
+    public $unlockType;
+
+    /**
+    * @var Int32 关卡id  
+    */
+    public $unlockGateId;
+
+    /**
+    * @var Int32 解锁顺序  
+    */
+    public $unlockIndex;
+
+    /**
+    * @var Int32 存在解锁提示的填1  default(0) 
+    */
+    public $unlockTip;
+
+}
+

+ 62 - 0
Gameserver/App/model/Const/sm_fununlock.php

@@ -0,0 +1,62 @@
+<?php
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2024-07-23 12:13:42
+////////////////////
+
+
+/**
+ * Static Model fununlock 游戏功能解锁信息
+ */
+class sm_fununlock
+{
+
+    /**
+    * @var Int32 功能id  
+    */
+    public $id;
+
+    /**
+    * @var String 功能名称  
+    */
+    public $name;
+
+    /**
+    * @var String 功能图片名称  
+    */
+    public $iconName;
+
+    /**
+    * @var String 用途未知!!请到数据库中添加字段注释。  
+    */
+    public $moduleName;
+
+    /**
+    * @var String 用途未知!!请到数据库中添加字段注释。  
+    */
+    public $cmptPath;
+
+    /**
+    * @var Int32 1:参与战斗结束即可  2战斗胜利  3某场战斗参加N次数才行  
+    */
+    public $unlockType;
+
+    /**
+    * @var Int32 关卡id  
+    */
+    public $unlockGateId;
+
+    /**
+    * @var Int32 解锁顺序  
+    */
+    public $unlockIndex;
+
+    /**
+    * @var Int32 解锁提示  
+    */
+    public $unlockTip;
+
+}
+

+ 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-07-19 16:55:28
+ // 日期: 2024-07-23 11:55:36
 ////////////////////
 
 

+ 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-07-19 16:55:28
+ // 日期: 2024-07-23 11:55:36
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-07-22 14:04:44
+ // 日期: 2024-07-22 15:32:08
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-07-17 18:35:47
+ // 日期: 2024-07-23 10:35:47
 ////////////////////
 
 

+ 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-07-22 11:04:09
+ // 日期: 2024-07-23 11:31:52
 ////////////////////
 
 

+ 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-07-22 14:40:31
+ // 日期: 2024-07-22 18:35:47
 ////////////////////
 
 

+ 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-07-22 14:40:31
+ // 日期: 2024-07-22 18:35:47
 ////////////////////
 
 

+ 6 - 0
Gameserver/App/model/User/Ins_GateInfo.php

@@ -46,6 +46,12 @@ class Ins_GateInfo extends Object_ext {
      * @var type
      */
     public $fightNum = 0;
+    
+    /**
+     * 失败次数
+     * @var type
+     */
+    public $fightNum_fail = 0;
 
     /**
      * @return bool 是否主线关卡

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

@@ -527,6 +527,8 @@ class FightProc {
             } else {                                                            # 不是主线关卡, 暂时没有其他逻辑
             }
 //            StoreProc::AddMultiItemInStore($gateMo->reward_win);                # 发放胜利奖励(2024.5.30 过期)
+        } else {
+            ctx()->gates->GateList->$gateId->fightNum_fail += 1;
         }
 //        else {                                                                # 失败
 ////            StoreProc::AddMultiItemInStore($gateMo->reward_fail);               # 发放失败奖励(2024.5.30 过期)