cyzhao 4 жил өмнө
parent
commit
0c30fb1fa4

+ 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-03-18 16:33:38
+ // 日期: 2021-03-24 14:26:01
 ////////////////////
 
 /**

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-03-18 10:15:49
+ // 日期: 2021-03-18 16:57:32
 ////////////////////
 
 

+ 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-03-17 14:34:03
+ // 日期: 2021-03-19 11:21:50
 ////////////////////
 
 

+ 6 - 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-03-18 10:48:27
+ // 日期: 2021-03-24 09:48:16
 ////////////////////
 
 
@@ -198,5 +198,10 @@ class sm_gate
     */
     public $battleType;
 
+    /**
+    * @var String 关卡奖励  
+    */
+    public $reward;
+
 }
 

+ 6 - 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-03-18 15:59:39
+ // 日期: 2021-03-24 13:45:30
 ////////////////////
 
 
@@ -124,5 +124,10 @@ class sm_item_base
     */
     public $quality;
 
+    /**
+    * @var String item的关卡途径  
+    */
+    public $channel;
+
 }
 

+ 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-03-18 10:28:30
+ // 日期: 2021-03-19 17:50:30
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-03-18 16:08:48
+ // 日期: 2021-03-19 10:40:09
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-03-17 15:42:23
+ // 日期: 2021-03-18 18:23:00
 ////////////////////
 
 

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

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

+ 15 - 0
Gameserver/Amfphp/model/User/Info_PrivateState.php

@@ -101,6 +101,12 @@ class Info_PrivateState extends Object_ext {
      * @var array[int]
      */
     public $unlockedBuild = array();
+    
+    /**
+     * 已经解锁得npc
+     * @var type
+     */
+    public $unlockNpc = array();
 
 // <editor-fold defaultstate="collapsed" desc="    初始化    ">
 
@@ -111,6 +117,15 @@ class Info_PrivateState extends Object_ext {
         $this->maxItemNum = GameConfig::primordial_data()->User_Private_MaxItem_num; # Ps.默认100; 
         $this->TiliTime = now();
     }
+    /**
+     * 添加已经解锁得npc
+     * @param type $npcId
+     */
+    public function addUnlockNpc($npcId) {
+        if(!in_array($npcId,$this->unlockNpc)){
+            $this->unlockNpc[] = $npcId;
+        }
+    }
 
 // </editor-fold>
 }