| | |
| | | #EventReport.WriteEvent_lost_zhenqi(curPlayer, eventName, eventData, lostValue, value)
|
| | | return True
|
| | |
|
| | | ## SP真气值
|
| | | def GetZhenQi(curPlayer): return curPlayer.GetExAttr8() * ChConfig.Def_PerPointValue + curPlayer.GetExAttr7()
|
| | | ## SP真气值 - 暂废弃 ExAttr7、ExAttr8 改为专精选择通知,用于前端表现其他玩家的不同专精特效
|
| | | def GetZhenQi(curPlayer): return 0 #curPlayer.GetExAttr8() * ChConfig.Def_PerPointValue + curPlayer.GetExAttr7()
|
| | | def SetZhenQi(curPlayer, totalZhenQi):
|
| | | zhenQi = totalZhenQi % ChConfig.Def_PerPointValue
|
| | | zhenQiPoint = min(totalZhenQi / ChConfig.Def_PerPointValue, ChConfig.Def_UpperLimit_DWord)
|
| | | # 玩家单独通知,不广播; c++接口默认广播,故这里设置False
|
| | | if zhenQi != curPlayer.GetExAttr7():
|
| | | curPlayer.SetExAttr7(zhenQi)
|
| | | if zhenQiPoint != curPlayer.GetExAttr8():
|
| | | curPlayer.SetExAttr8(zhenQiPoint)
|
| | | # zhenQi = totalZhenQi % ChConfig.Def_PerPointValue
|
| | | # zhenQiPoint = min(totalZhenQi / ChConfig.Def_PerPointValue, ChConfig.Def_UpperLimit_DWord)
|
| | | # # 玩家单独通知,不广播; c++接口默认广播,故这里设置False
|
| | | # if zhenQi != curPlayer.GetExAttr7():
|
| | | # curPlayer.SetExAttr7(zhenQi)
|
| | | # if zhenQiPoint != curPlayer.GetExAttr8():
|
| | | # curPlayer.SetExAttr8(zhenQiPoint)
|
| | | return
|
| | |
|
| | | #===============================================================================
|