| | |
| | | # DoRealmLVUpLogic(curPlayer)
|
| | | return True
|
| | |
|
| | | def OnLogin(curPlayer):
|
| | | |
| | | def OnLogin(curPlayer): |
| | | SyncRealmFBState(curPlayer)
|
| | | return
|
| | |
|
| | |
| | | DoRealmLVUpLogic(curPlayer)
|
| | | return
|
| | |
|
| | | def DoRealmLVUpLogic(curPlayer):
|
| | | def DoRealmLVUpLogic(curPlayer, needSys=True):
|
| | | curRealmLV = curPlayer.GetOfficialRank()
|
| | | nextRealmLv = curRealmLV + 1
|
| | | GameWorld.DebugLog(' 升级境界nextRealmLv=%s'%nextRealmLv)
|
| | |
| | |
|
| | | curPlayer.SetOfficialRank(nextRealmLv)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_RealmFBIsOpen, 0)
|
| | | PlayerControl.WorldNotify(0, 'RealmUpSuccess', [curPlayer.GetName(), nextRealmLv])
|
| | | if needSys:
|
| | | PlayerControl.WorldNotify(0, 'RealmUpSuccess', [curPlayer.GetName(), nextRealmLv])
|
| | | RefreshOfficialAttr(curPlayer)
|
| | | GameFuncComm.DoFuncOpenLogic(curPlayer)
|
| | | SyncRealmFBState(curPlayer)
|