| | |
| | | return True
|
| | |
|
| | | #---------------------------------------------------------------------
|
| | | ## 获取下一次转生所需等级
|
| | | def GetNextReincarnationLV(self, curPlayer):
|
| | | Reincarnation_ConditionDict = ReadChConfig.GetEvalChConfig("Reincarnation_Condition")
|
| | | curReinCnt = curPlayer.GetReincarnationLv() # 当前转生次数
|
| | | nextReinCnt = curReinCnt + 1
|
| | | nextReinLV = IpyGameDataPY.GetFuncCfg("PlayerMaxLV")
|
| | | if nextReinCnt in Reincarnation_ConditionDict:
|
| | | nextReinLV = Reincarnation_ConditionDict[nextReinCnt][0]
|
| | | return nextReinLV
|
| | |
|
| | | ## 加经验值
|
| | | # @param self 类实例
|
| | |
| | | if addExp == 0:
|
| | | # 不进入计算
|
| | | return addExp, expViewType
|
| | | #nextReinLV = self.GetNextReincarnationLV(curPlayer)
|
| | |
|
| | | #取得人物当前经验
|
| | | #curTotalExp = GetPlayerTotalExp(curPlayer)
|