hxp
2 天以前 ebda0a314a04a6eba9d002e7823858324e50bced
198 【内政】淘金系统-服务端(修复恢复淘金令超出上限bug;)
1个文件已修改
1 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldRush.py 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldRush.py
@@ -184,6 +184,7 @@
    if passSeconds < cdSeconds:
        return
    recoverCnt = passSeconds / cdSeconds
    recoverCnt = min(recoverCnt, maxEnergy - curEnergy)
    updRecoverTime = curTime - passSeconds % cdSeconds
    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_GoldRushRecoverTime, updRecoverTime)
    GameWorld.DebugLog("恢复淘金令: %s,passSeconds=%s,上次恢复:%s" % (recoverCnt, passSeconds, GameWorld.ChangeTimeNumToStr(lastRecoverTime)))