hxp
2024-05-16 2bca56e5df150d46e0f218a4e1af5e3dd81a0bcb
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -77,6 +77,8 @@
import GameObj
import ChNPC
import PassiveBuffEffMng
import CalcNoLineEffect
import CalcLineEffect
import random
import math
@@ -4157,6 +4159,19 @@
        else:
            DoNPCAttrStrengthen(curNPC, isReborn)
            
        #其他功能属性
        otherAttrList = [{} for _ in range(4)]
        #副本增加属性
        plusAttrDict = FBLogic.CalcFBNPCPlusAttr(curNPC)
        for attrID, attrValue in plusAttrDict.items():
            if not attrValue or not attrID:
                continue
            PlayerControl.CalcAttrDict_Type(attrID, attrValue, otherAttrList)
        #GameWorld.DebugLog("NPC plusAttrDict=%s" % plusAttrDict)
        #GameWorld.DebugLog("NPC otherAttrList=%s" % otherAttrList)
        CalcNoLineEffect.ChangeNPCAttrInNoLineEffectList(curNPC, otherAttrList[ChConfig.CalcAttr_BattleNoline])
        CalcLineEffect.ChangeNPCAttrInLineEffectList(curNPC, otherAttrList[ChConfig.CalcAttr_Battle])
        #计算buf对战斗属性的改变
        allAttrList = SkillShell.CalcBuffer_NPCBattleEffect(curNPC)