| | |
| | | def IsPVPNPC(obj):
|
| | | if not obj:
|
| | | return False
|
| | | return obj.GetGameObjType() == IPY_GameWorld.gotNPC and obj.GetType() in [ChConfig.ntPriWoodPilePVP]
|
| | | return obj.GetGameObjType() == IPY_GameWorld.gotNPC and obj.GetType() in ChConfig.PVPNPCTypeList
|
| | |
|
| | | ## 获取攻击类型
|
| | | # @param attack 攻击方对象
|
| | |
| | | aDamagePVP = 0 # PVP固定伤害
|
| | | aDamagePVE = 0 # PVE固定伤害
|
| | | aFinalHurt = NPCCommon.GetFinalHurt(atkObj) # 最终固定伤害
|
| | | aOnlyFinalHurt = 0 # 额外固定伤害
|
| | | aFightPower = NPCCommon.GetSuppressFightPower(atkObj)
|
| | |
|
| | | #防守方的类型
|
| | |
| | | return "Robot"
|
| | | if obj.GetType() == ChConfig.ntHelpBattleRobot:
|
| | | return "HelpRobot"
|
| | | if obj.GetType() == ChConfig.ntPriWoodPilePVP:
|
| | | if obj.GetType() in ChConfig.PVPNPCTypeList:
|
| | | return "P"
|
| | |
|
| | | objType = obj.GetGameNPCObjType()
|