#!/usr/bin/python # -*- coding: GBK -*- #------------------------------------------------------------------------------- # #------------------------------------------------------------------------------- # ##@package Buff_3001 # # @todo: BUFF¸Ä±äÃû×ÖÑÕÉ« # @author Alee # @date 2013-09-18 17:00 # @version 1.2 # # ÏêϸÃèÊö: # @change: "2013-09-23 18:30" Alee Çл»µØÍ¼PlayerNameColor²»±»¼Ç¼ Çå¿Õ£¬ÐèÖØÉè # @change: "2013-10-31 14:45" Alee ÎäÆ÷µÄ¼¼ÄÜÔöǿЧ¹û #--------------------------------------------------------------------- """Version = 2013-10-31 14:45""" import IPY_GameWorld import ChConfig ## Çл»µØÍ¼PlayerNameColor²»±»¼Ç¼ Çå¿Õ£¬ÐèÖØÉè # @param curObj Buff³ÐÊÜÕß # @param curEffect ¼¼ÄÜЧ¹û # @param calcDict ¼¼ÄÜЧ¹ûÀÛ¼Ó×ܱí # @return None def OnCalcBuff(curObj, curEffect, calcDict, buffValue): curObj.SetPlayerNameColor(IPY_GameWorld.pncRed) return ## ·µ»ØbuffÀàÐÍ£¬ÏßÐÔÓë·ñ # @param None # @return ÏßÐÔ # @remarks º¯ÊýÏêϸ˵Ã÷. def GetCalcType(): return ChConfig.TYPE_Linear ## Ìí¼ÓBUFFºóµÄÂß¼­ # @param None # @return None def DoAddBuffOver(curObj, addBuff, curEffect, tick, buffOwner): curObj.SetPlayerNameColor(IPY_GameWorld.pncRed) return ## BUFFÏûʧºó # @param None # @return None def OnBuffDisappear(curObj, curSkill, curBuff, curEffect, tick): # if curObj.GetPKValue() > 0: # curObj.SetPKValue(0) curObj.SetPlayerNameColor(IPY_GameWorld.pncNormal) def OnBuffDisappearEx(curObj, curSkill, curBuff, curEffect, tick): curObj.SetPlayerNameColor(IPY_GameWorld.pncNormal)