From dc0b92c1e2fe9f3d24c183b325dad54d088735c1 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期四, 10 七月 2025 17:01:24 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_ServerCode --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReloadModule.py | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReloadModule.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReloadModule.py index 6831fdc..706d19e 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReloadModule.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReloadModule.py @@ -17,8 +17,6 @@ import GameWorld import ShareDefine -import QuestManager -import EventShell import ChConfig import sys @@ -60,7 +58,6 @@ GameWorld.Log("开始脚本重读 curVersion=%s,updVersion=%s" % (curVersion, updVersion)) moduleNameDict = {} - isReloadMission = False for moduleKey, module in sys.modules.items(): if "py" not in str(module): @@ -97,18 +94,10 @@ if curModuleName in moduleNameDict: for moduleKey in moduleNameDict[curModuleName]: __DoModuleReload(moduleKey) - - if curModuleName in ["QuestCommon", "QuestManager", "QuestRunner"]: - isReloadMission = True # 判断脚本文件是否有修改,如有修改则进行重读任务 - - # 重读任务可能有一定风险,需详细测试 - if isReloadMission: - QuestManager.ReloadQuests(tick) - EventShell.DoReloadRefresh() - GameWorld.Log(" 脚本重读 OK! isReloadMission=%s" % isReloadMission) + GameWorld.Log(" 脚本重读 !") return def __DoModuleReload(moduleKey): -- Gitblit v1.8.0