hxp
2023-10-11 614707fc640e731fe8b78351f0933371da5450bf
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/CalcNoLineEffect.py
@@ -21,8 +21,22 @@
import ChConfig
import EffGetSet
import GameWorld
import FBCommon
#---------------------------------------------------------------------
def AddPlayerMapAttrNolineEffect(curPlayer, effectDict):
    ## 根据玩家当前属性给玩家添加非线性效果加成 - 某些地图才生效的
    mapID = FBCommon.GetRecordMapID(curPlayer.GetMapID())
    mapAttrNolineInfo = ChConfig.MapAttrInfoDict_Noline.get(mapID, {})
    for attrIndex, effAttrIndexList in mapAttrNolineInfo.items():
        curValue = EffGetSet.GetValueByEffIndex(curPlayer, attrIndex)
        if not curValue:
            #GameWorld.DebugLog("    没有该类属性: attrIndex=%s" % attrIndex)
            continue
        for effAttrIndex in effAttrIndexList:
            effectDict[effAttrIndex] = effectDict.get(effAttrIndex, 0) + curValue
    return
## 给玩家添加非线性Buff效果 
#  @param curPlayer 当前玩家
#  @param effectDict 效果列表