#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#
|
##@package
|
#
|
# @todo: ¸ù¾ÝÉÏÒ»¸ö¼¼ÄܵÄÃüÖиöÊýÌá¸ßÊôÐÔ£¨¸öÊý*»ù´¡Öµ£©
|
#
|
# @author: Alee
|
# @date 2019-5-20 ÏÂÎç03:43:03
|
# @version 1.0
|
#
|
# @note:
|
#
|
#---------------------------------------------------------------------
|
|
import GameWorld
|
import ChConfig
|
import BaseAttack
|
|
|
## buffÏßÐÔÔö¼ÓÊôÐÔ
|
# @param defender Buff³ÐÊÜÕß
|
# @param curEffect ¼¼ÄÜЧ¹û
|
# @param calcDict ¼¼ÄÜЧ¹ûÀÛ¼Ó×ܱí
|
# @return None
|
def OnCalcBuffEx(defender, curEffect, calcDict, curBuff):
|
attrType = curEffect.GetEffectValue(0)
|
|
calcDict[attrType] = calcDict.get(attrType, 0) + curEffect.GetEffectValue(1)*curBuff.GetValue()
|
return
|
|
|
## ·µ»ØbuffÀàÐÍ£¬ÏßÐÔÓë·ñ
|
# @param
|
# @return None
|
# @remarks º¯ÊýÏêϸ˵Ã÷.
|
def GetCalcType():
|
return ChConfig.TYPE_Linear
|
|
|
|
def CalcBuffValue(attacker, defender, curSkill, changeBuffValueDict):
|
# ±»¶¯1304¸³Öµ
|
cnt = attacker.GetDictByKey("1304HitCnt")
|
attacker.SetDict("1304HitCnt", 0)
|
return [cnt]
|
|