Explorar el Código

地下城解锁

cyzhao hace 3 años
padre
commit
68b91a3961

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2022-04-24 15:45:06
+ // 日期: 2022-04-28 16:36:42
 ////////////////////
 
 /**
@@ -1656,22 +1656,6 @@ class GameConfig {
         return self::get_hash_item('shop_limitTs_Type', $key);
     }
     /**
-    * 场景地图
-    * @return \map_scene
-    */
-    public static function map_scene()
-    { 
-        static $a = null; 
-        return self::initValue($a, 'map_scene');
-    }
-    /**
-    * @return \sm_map_scene map_scene item数据 
-    */
-    public static function map_scene_getItem($itemid)
-    { 
-        return self::get_hash_item('map_scene', $itemid);
-    }
-    /**
     * 场景出口对应关系
     * @return \map_scene_relation
     */

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2022-04-27 09:50:35
+ // 日期: 2022-04-27 15:52:16
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-12-21 14:42:36
+ // 日期: 2022-04-26 14:55:18
 ////////////////////
 
 

+ 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 
- // 日期: 2022-04-28 11:35:46
+ // 日期: 2022-04-28 16:35:47
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2022-01-13 15:15:00
+ // 日期: 2022-04-27 12:11:32
 ////////////////////
 
 

+ 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 
- // 日期: 2022-04-15 10:33:02
+ // 日期: 2022-04-26 15:01:19
 ////////////////////
 
 

+ 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 
- // 日期: 2022-04-14 16:01:59
+ // 日期: 2022-04-25 10:58:06
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2022-04-14 16:01:59
+ // 日期: 2022-04-25 10:58:06
 ////////////////////
 
 

+ 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 
- // 日期: 2022-04-14 11:45:33
+ // 日期: 2022-04-25 10:56:52
 ////////////////////
 
 

+ 8 - 0
Gameserver/Amfphp/model/User/Info_NewMap.php

@@ -57,6 +57,14 @@ class Info_NewMap extends Object_ext {
             $footHold->curMapType = $mo->mapType;
             $this->unlockedFootholds->$initMapid = $footHold;                   # 初始化解锁新手村据点数据
             
+            $dixiachengId = 503001;
+            $mo = GameConfig::gate_getItem($dixiachengId);
+            $footHold = new Ins_FootHold();
+            $footHold->mapId = $mo->gateId;
+            $footHold->curMapType = $mo->mapType;
+            $this->unlockedFootholds->$initMapid = $footHold; 
+            
+            
             $this->unlockMapTypeList = ObjectInit();                            #初始化--已经解锁的地图上的区域、npc、道具等等信息      
             $this->huichengquanRecord = ObjectInit();                                #
         } else {

+ 10 - 0
Gameserver/Amfphp/process/UserProc.php

@@ -444,6 +444,16 @@ class UserProc {
         if(is_array($game->newMap->huichengquanRecord)){
             $game->newMap->huichengquanRecord = ObjectInit();
         }
+        
+        $dixiachengId = 503001;
+        if(!StlUtil::dictHasProperty($game->newMap->unlockedFootholds, $dixiachengId)){
+            $mo = GameConfig::gate_getItem($dixiachengId);
+            $footHold = new Ins_FootHold();
+            $footHold->mapId = $mo->gateId;
+            $footHold->curMapType = $mo->mapType;
+            $this->unlockedFootholds->$dixiachengId = $footHold; 
+        }             
+            
     }
 
     /**