| | |
| | | def DoType_Add_Player_Xp(curPlayer, curMission, curActionNode):
|
| | | #增加玩家相关值<Add_Player_XP value="玩家xp值"/>
|
| | |
|
| | | xpValue = curActionNode.GetAttribute("value")
|
| | | |
| | | if xpValue != "":
|
| | | #设置玩家xp值
|
| | | openLV, addXPValue, maxXPValue = ReadChConfig.GetEvalChConfig('PlayerXP')
|
| | | curXp = min(int(xpValue), maxXPValue)
|
| | | curPlayer.SetDict(ChConfig.Def_PlayerKey_RecordXPValue, curXp)
|
| | | curPlayer.SetXP(curXp)
|
| | | |
| | | #===========================================================================
|
| | | # xpValue = curActionNode.GetAttribute("value")
|
| | | # |
| | | # if xpValue != "":
|
| | | # #设置玩家xp值
|
| | | # openLV, addXPValue, maxXPValue = ReadChConfig.GetEvalChConfig('PlayerXP')
|
| | | # curXp = min(int(xpValue), maxXPValue)
|
| | | # curPlayer.SetDict(ChConfig.Def_PlayerKey_RecordXPValue, curXp)
|
| | | # curPlayer.SetXP(curXp)
|
| | | # |
| | | #===========================================================================
|
| | | return
|
| | |
|
| | | #---------------------------------------------------------------------
|