| | |
| | | % (curLV, maxLV), curPlayer.GetPlayerID())
|
| | | break
|
| | |
|
| | | addExp = __DoAddLVEx(curPlayer, giveLV, isKeepExp, isOnlyLVUp, lvLimit)
|
| | | addExp = DoAddLVEx(curPlayer, giveLV, isKeepExp, isOnlyLVUp, lvLimit)
|
| | | if not addExp:
|
| | | break
|
| | |
|
| | |
| | | # @param isOnlyLVUp 是否直接提升固定等级
|
| | | # @param formulaIndex 给与经验的公式索引
|
| | | # @return 使用结果字典信息
|
| | | def __DoAddLVEx(curPlayer, giveLV, isKeepExp, isOnlyLVUp, lvLimit):
|
| | | def DoAddLVEx(curPlayer, giveLV, isKeepExp, isOnlyLVUp, lvLimit):
|
| | |
|
| | | curLV = curPlayer.GetLV()
|
| | | lvUpNeedExp = PlayerControl.GetTotalExpByPlayerLv(curLV)
|
| | |
| | | # 满级
|
| | | if lvUpNeedExp <= 0:
|
| | | PlayerControl.NotifyCode(curPlayer, "GeRen_liubo_607994")
|
| | | return False
|
| | | return 0
|
| | |
|
| | | giveExp = 0
|
| | | for lv in range(curLV, curLV + giveLV):
|