From 52e17999f97477f222094a0b6e7e32129e97c404 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 17 一月 2024 17:09:07 +0800 Subject: [PATCH] 10019 【砍树】回合战斗(根据地图处理默认视野) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Map/GameMap.py | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Map/GameMap.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Map/GameMap.py index 1ff81a7..4c6a2c5 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Map/GameMap.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Map/GameMap.py @@ -363,4 +363,11 @@ GameWorld.DebugLog(" attrName=%s,value=%s,setValue=%s,%s" % (attrName, value, setValue, attrOwner), playerID) return - \ No newline at end of file + +def GetMapSightType(): + ## 获取地图视野类型 + mapID = GameWorld.GetMap().GetMapID() + ipyMapData = IpyGameDataPY.GetIpyGameData("ChinMap", mapID) + if not ipyMapData: + return ChConfig.SightType_Public + return ipyMapData.GetSightType() -- Gitblit v1.8.0