| | |
| | | import PlayerControl
|
| | | import PlayerZhanling
|
| | | import GameWorld
|
| | | import time
|
| | |
|
| | | #---------------------------------------------------------------------
|
| | | #逻辑实现
|
| | |
| | | GameWorld.DebugAnswer(curPlayer, "重置奖励: Zhanling 0 类型")
|
| | | GameWorld.DebugAnswer(curPlayer, "设置战令: Zhanling 类型 是否激活普通 高级")
|
| | | GameWorld.DebugAnswer(curPlayer, "设置进度: Zhanling v 类型 进度值")
|
| | | GameWorld.DebugAnswer(curPlayer, "设置登录: Zhanling d 登录战令已登录天数")
|
| | | return
|
| | |
|
| | | value = msgList[0]
|
| | |
| | | GameWorld.DebugAnswer(curPlayer, "该战令不用设置进度值! %s" % (zhanlingType))
|
| | | return
|
| | | GameWorld.DebugAnswer(curPlayer, "战令进度:Type=%s,V=%s" % (zhanlingType, retValue))
|
| | | elif value == "d":
|
| | | zhanlingType = 5
|
| | | loginDays = msgList[1] if len(msgList) > 1 else 1
|
| | | curTime = int(time.time())
|
| | | firstLoginTime = curTime - (loginDays - 1) * 3600 * 24
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_ZhanlingValue1 % zhanlingType, firstLoginTime)
|
| | | PlayerZhanling.SyncZhanlingInfo(curPlayer, zhanlingType)
|
| | | GameWorld.DebugAnswer(curPlayer, "登录战令已登录天数:%s" % (GameWorld.GetDiff_Day(curTime, firstLoginTime) + 1))
|
| | | else:
|
| | | zhanlingType = value
|
| | | activiteC = msgList[1] if len(msgList) > 1 else 0
|