| | |
| | |
|
| | | import GameWorld
|
| | | import PlayerPrestigeSys
|
| | | import IpyGameDataPY
|
| | | import PlayerControl
|
| | | import PlayerGubao
|
| | | import ChConfig
|
| | |
|
| | |
|
| | |
| | | value = cmdList[0]
|
| | | if value == 0:
|
| | | curPlayer.SetOfficialRank(ChConfig.Def_InitOfficialRank)
|
| | | 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)
|
| | | GameWorld.DebugAnswer(curPlayer, "重置境界OK")
|
| | | return
|
| | | if value == 1:
|