#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#
|
#
|
##@package Buff_801
|
# @todo: ÷è÷ë¶Ü£¬ÎüÊÕXX%É˺¦
|
#
|
# @author Alee
|
# @date 2017-10-31 14:10
|
# @version 1.0
|
#
|
#---------------------------------------------------------------------
|
"""Version = 2017-10-31 14:10"""
|
|
|
import IPY_GameWorld
|
import GameWorld
|
import ChConfig
|
import SkillShell
|
import PassiveBuffEffMng
|
import PySkillManager
|
import GameObj
|
|
|
## Ìí¼ÓBUFFºóµÄÂß¼
|
# @param None
|
# @return None
|
def DoAddBuffOver(curObj, addBuff, curEffect, tick):
|
buffValue = curEffect.GetEffectValue(0) + PassiveBuffEffMng.GetPassiveSkillValueByTriggerType(
|
curObj, None, addBuff.GetSkill(), ChConfig.TriggerType_AbsorbShield)
|
# Õ½¶·ÊôÐÔ ÔÚˢеÄʱºò»áÇå¿Õ£¬²»ÄÜÓÃÔڴ˺¯ÊýÖÐ
|
curObj.SetDict(ChConfig.Def_PlayerKey_AbsorbShieldValue, buffValue) # ÎüÊÕµÄÉ˺¦°Ù·Ö±È
|
return
|
|
##ÎüÊÕÉ˺¦°Ù·Ö±È
|
# @param attacker ¹¥»÷ÕßʵÀý
|
# @param curSkill ¼¼ÄÜʵÀý
|
# @param curEffect µ±Ç°¼¼ÄÜЧ¹û1
|
# @return ×ÜÖµ
|
def CalcBuffValue(attacker, defender, curSkill, changeBuffValueDict):
|
if not changeBuffValueDict:
|
return []
|
|
return [changeBuffValueDict.get(i, 0) for i in range(ChConfig.Def_BuffValue_Count)]
|
|
def OnBuffDisappear(curObj, curSkill, curBuff, curEffect, tick):
|
curObj.SetDict(ChConfig.Def_PlayerKey_AbsorbShieldValue, 0) # ÎüÊÕµÄÉ˺¦°Ù·Ö±È
|
return
|