| | |
| | | # 记录玩家升级
|
| | | DataRecordPack.DR_PlayerUpgrade(curPlayer, curPlayer.GetLV(), GetPlayerTotalExp(curPlayer), lvUpNeedExp)
|
| | | DataRecordPack.Cache_FightPowerChangeInfo(curPlayer, ChConfig.PowerDownType_LVUP, {'lv':curLV})
|
| | | |
| | | self.__GiveLVMailAward(curLV)
|
| | | self.__DoLVUPAddPoint() # 升级加点
|
| | | #self.__DoLvUpAddSkill() # 升级加技能
|
| | |
|
| | |
| | | SetPlayerTotalExp(curPlayer, curTotalExp)
|
| | | return
|
| | |
|
| | | def __GiveLVMailAward(self, curLV):
|
| | | # 给等级邮件奖励
|
| | | mailLVAwardDict = IpyGameDataPY.GetFuncEvalCfg("MailLVAward", 1, {})
|
| | | if curLV not in mailLVAwardDict:
|
| | | return
|
| | | curPlayer = self.__Player
|
| | | SendMailByKey("LVUpMail", [curPlayer.GetPlayerID()], mailLVAwardDict[curLV], [curLV])
|
| | | return
|
| | | |
| | | #---------------------------------------------------------------------
|
| | |
|
| | | def CalcRoleBaseAttr(self, curPlayer):
|