| | |
| | |
|
| | | import GameWorld
|
| | | import PlayerPrestigeSys
|
| | | import IpyGameDataPY
|
| | | import PlayerControl
|
| | | import PlayerGubao
|
| | | import ChConfig
|
| | |
|
| | |
|
| | |
| | | GameWorld.DebugAnswer(curPlayer, "执行境界升阶: RealmLVUP 1 [次数]")
|
| | | GameWorld.DebugAnswer(curPlayer, "设置境界任务: RealmLVUP t 任务ID 进度值")
|
| | | GameWorld.DebugAnswer(curPlayer, "注:可设置进度的任务类型:%s" % PlayerPrestigeSys.NeedTaskValueTypeList)
|
| | | GameWorld.DebugAnswer(curPlayer, "设置境界塔层: RealmTower")
|
| | | GameWorld.DebugAnswer(curPlayer, "设置天星塔层: SetSkyTower")
|
| | | GameWorld.DebugAnswer(curPlayer, "设置境界等级: SetOfficalRank 境界等级")
|
| | | GameWorld.DebugAnswer(curPlayer, "注:直接设置境界等级不会触发境界其他额外效果")
|
| | | return
|
| | |
|
| | | value = cmdList[0]
|
| | | if value == 0:
|
| | | curPlayer.SetOfficialRank(1)
|
| | | curPlayer.SetFreePoint(0)
|
| | | GameWorld.DebugAnswer(curPlayer, "重置境界!")
|
| | | GameWorld.DebugAnswer(curPlayer, "重置灵根点!")
|
| | | effType = PlayerGubao.GubaoEffType_RealmLVAddLinggen
|
| | | ipyDataMgr = IpyGameDataPY.IPY_Data()
|
| | | for index in range(ipyDataMgr.GetGubaoCount()):
|
| | | ipyData = ipyDataMgr.GetGubaoByIndex(index)
|
| | | gubaoID = ipyData.GetGubaoID()
|
| | | addFreePointAlready = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_GubaoItemEffValue % (gubaoID, effType))
|
| | | if not addFreePointAlready:
|
| | | continue
|
| | | GameWorld.DebugAnswer(curPlayer, "重置古宝(%s)效果(%s)增加灵根点:%s" % (gubaoID, effType, addFreePointAlready))
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_GubaoItemEffValue % (gubaoID, effType), 0)
|
| | | PlayerGubao.Sync_GubaoItemEffInfo(curPlayer, gubaoID, effType, force=True)
|
| | | curPlayer.SetOfficialRank(ChConfig.Def_InitOfficialRank)
|
| | | GameWorld.DebugAnswer(curPlayer, "重置境界OK")
|
| | | return
|
| | | if value == 1:
|