王刚 vor 2 Jahren
Ursprung
Commit
de6d65cdc0

+ 3 - 3
Gameserver/Amfphp/configs/config_and.php

@@ -12,9 +12,9 @@ class config_and extends config {
 
     function _InitTester() {
         $this->testerArr = array(
-            "gwang", //  王刚
-            "8796-any", //  王倩倩
-            "wanggangzero.cn", // 王刚
+            "gwang", //                王刚
+            "8796-any", //             王倩倩
+            "wanggangzero.cn", //      王刚
         );
     }
 

+ 18 - 18
Gameserver/Amfphp/model/User/Data_UserGame.php

@@ -49,11 +49,11 @@ class Data_UserGame extends HashSaver {
      */
     public $gates;
 
-    /**
-     * 地图解锁信息
-     * @var Info_Map
-     */
-    public $map;
+//    /**
+//     * 地图解锁信息
+//     * @var Info_Map
+//     */
+//    public $map;
 
     /**
      * 新版地图信息v2022.3
@@ -160,7 +160,7 @@ class Data_UserGame extends HashSaver {
             $this->heros = new Info_UserGameHero();                             # 英雄数据
 //            $this->heros->InitializeHero();                                     # 添加初始英雄
             $this->gates = new Info_UserGateDifficulty();                            # 初始化关卡默认数据
-            $this->map = new Info_Map();                                        # 初始化地图解锁数据
+//            $this->map = new Info_Map();                                        # 初始化地图解锁数据
             $this->newMap = new Info_NewMap();                                  # 初始化改版地图2022.3
 //            $this->heroManual = new HeroManualModel();                          # 初始化图鉴数据结构
             $this->NewbieGuide = new Info_NewbieGuide();                        # 初始化新手引导结构
@@ -271,18 +271,18 @@ class Data_UserGame extends HashSaver {
         return $this->gates;
     }
 
-    /**
-     * 地图数据
-     * @param bool $save 是否需要回存
-     * @return Info_Map
-     */
-    public function map($save = true) {
-        $this->map = new Info_Map($this->map);
-        if ($save) {
-            self::save_tag("map");
-        }
-        return $this->map;
-    }
+//    /**
+//     * 地图数据
+//     * @param bool $save 是否需要回存
+//     * @return Info_Map
+//     */
+//    public function map($save = true) {
+//        $this->map = new Info_Map($this->map);
+//        if ($save) {
+//            self::save_tag("map");
+//        }
+//        return $this->map;
+//    }
 
     /**
      * 新地图数据

+ 16 - 16
Gameserver/Amfphp/model/User/Info_NewMap.php

@@ -12,7 +12,7 @@ namespace loyalsoft;
 class Info_NewMap extends Object_ext {
 
     /**
-     * 当前所在据点id
+     * 当前所在地图的id
      * @var type
      */
     public $curMapId;
@@ -22,31 +22,33 @@ class Info_NewMap extends Object_ext {
      * @var dic< 据点id, Ins_FootHold >
      */
     public $unlockedFootholds;
-    
+
     /**
      * 已经解锁的地图上的区域、npc、道具等等信息
      * @var type
      */
     public $unlockMapTypeList;
-    
+
     /**
      * 回城券使用的传送阵记录
      * @var type
      */
     public $huichengquanRecord = null;
-    
+
     /**
-     * 当前地图所在区里面的回城券使用地的mapid
+     * 当前地图所在区里面的传送门目的地的mapid
+     * 回城券=>从当前地图回据点
+     * 传送门=>从据点回到回城前的地图
      * @var type
      */
     public $lastMapId = 0;
-    
+
     /**
      * 当前据点id
      * @var type
      */
     public $curFootholdId = 0;
-            
+
     function __construct($arg = null) {
         if (null === $arg) {
             // 直接初始化8个大陆的基本数据
@@ -55,10 +57,10 @@ class Info_NewMap extends Object_ext {
             $this->curMapId = $initMapid;                                       # 当前位置为新手村
             $this->curFootholdId = $initMapid;                                      # 当前据点id
             $this->unlockedFootholds = ObjectInit();
-            
+
             $gateZonemo = GameConfig::gate_zone_getItem(501007);
-            if($gateZonemo!=null){
-                $list = explode(',',$gateZonemo->contains); 
+            if ($gateZonemo != null) {
+                $list = explode(',', $gateZonemo->contains);
                 foreach ($list as $id) {
                     $mo = GameConfig::gate_getItem($id);
                     $footHold = new Ins_FootHold();
@@ -66,11 +68,10 @@ class Info_NewMap extends Object_ext {
                     $footHold->curMapType = $mo->mapType;
                     $this->unlockedFootholds->$id = $footHold;
                 }
-                
             }
-            
-            
-            
+
+
+
 //            $mo = GameConfig::gate_getItem($initMapid);
 //            $footHold = new Ins_FootHold();
 //            $footHold->mapId = $mo->gateId;
@@ -94,14 +95,13 @@ class Info_NewMap extends Object_ext {
 //            $footHold->curMapType = $mo->mapType;
 //            $this->unlockedFootholds->$dixiachengId = $footHold; 
 //            
-            
 //            $dixiachengId = 503002;
 //            $mo = GameConfig::gate_getItem($dixiachengId);
 //            $footHold = new Ins_FootHold();
 //            $footHold->mapId = $mo->gateId;
 //            $footHold->curMapType = $mo->mapType;
 //            $this->unlockedFootholds->$dixiachengId = $footHold;
-            
+
             $this->unlockMapTypeList = ObjectInit();                            #初始化--已经解锁的地图上的区域、npc、道具等等信息      
             $this->huichengquanRecord = ObjectInit();                                #                      
         } else {

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

@@ -161,8 +161,8 @@ class SweepGatesProc {
                 break;
         }
 
-        $map = new Info_Map();
-        $map->addBattleRecord($gateId);
+//        $map = new Info_Map();
+//        $map->addBattleRecord($gateId);
         //$map->addBattleNumRecord($gateId, $ret);
         $user = ctx();
         $result = array(

+ 2 - 3
Gameserver/Amfphp/test.php

@@ -11,9 +11,8 @@ echoLine("tsDay:" . totalDays());
 
 SelfChecker::CheckAll();
 //
-//set_time_limit(15);                                                           # 设置执行超时时间
 //
-
- 
+//set_time_limit(15);                                                           #  
+//