New file |
| | |
| | | #!/usr/bin/python
|
| | | # -*- coding: GBK -*-
|
| | | #-------------------------------------------------------------------------------
|
| | | #
|
| | | ##@package GM.Commands.GMT_RefixWorldLV
|
| | | #
|
| | | # @todo:纠正世界等级
|
| | | # @author hxp
|
| | | # @date 2021-03-19
|
| | | # @version 1.0
|
| | | #
|
| | | # 详细描述: 纠正世界等级
|
| | | #
|
| | | #-------------------------------------------------------------------------------
|
| | | #"""Version = 2021-03-19 17:00"""
|
| | | #-------------------------------------------------------------------------------
|
| | |
|
| | | import GMCommon
|
| | | import ShareDefine
|
| | | import PlayerDBGSEvent
|
| | | import GameWorldAverageLv
|
| | |
|
| | | ## 执行逻辑
|
| | | # @param curPlayer 当前玩家
|
| | | # @param gmCmdDict: 命令字典
|
| | | # @return None
|
| | | # @remarks 函数详细说明.
|
| | | def OnExec(orderId, gmCmdDict):
|
| | | |
| | | beforeWorldLV = PlayerDBGSEvent.GetDBGSTrig_ByKey(ShareDefine.Def_Notify_WorldKey_WorldAverageLv)
|
| | | |
| | | # 重置然后直接重刷
|
| | | PlayerDBGSEvent.SetDBGSTrig_ByKey(ShareDefine.Def_Notify_WorldKey_WorldAverageLv, 0) |
| | | GameWorldAverageLv.OpenWorldAverageLv()
|
| | | |
| | | afterWorldLV = PlayerDBGSEvent.GetDBGSTrig_ByKey(ShareDefine.Def_Notify_WorldKey_WorldAverageLv)
|
| | | |
| | | retMsg = {"beforeWorldLV":beforeWorldLV, "afterWorldLV":afterWorldLV}
|
| | | GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_Success, retMsg)
|
| | | return
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |