| | |
| | |
|
| | | return
|
| | |
|
| | | ## 获取哥布林功能NPC类型掉血值
|
| | | def GetGoblinLostHP(defender, hurtValue):
|
| | | if not defender:
|
| | | return hurtValue
|
| | | |
| | | defObjType = defender.GetGameObjType()
|
| | | if defObjType == IPY_GameWorld.gotNPC:
|
| | | npcFuncType = defender.GetFunctionType()
|
| | | if npcFuncType == ChConfig.Def_NPCFuncType_Goblin:
|
| | | goblinHurtValue = int(ReadChConfig.GetEvalChConfig('GoblinHurtValue'))
|
| | | hurtValue = min(hurtValue, goblinHurtValue)
|
| | | |
| | | return hurtValue
|
| | |
|
| | | ## 技能伤血
|
| | | # @param curObj 当前对象
|
| | | # @param skillTypeID 技能类型ID
|
| | |
| | | ## 后续有其他情况也应考虑进来,如镖车是否某状态不掉血
|
| | | return
|
| | |
|
| | | #lostValue = GetGoblinLostHP(curObj, lostValue)
|
| | | curObjType = curObj.GetGameObjType()
|
| | | curSkill = GameWorld.GetGameData().FindSkillByType(skillTypeID, 1)
|
| | |
|