1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
#-------------------------------------------------------------------------------
#
##@package Buff_3000
#
# @todo: BUFF¸Ä±äÃû×ÖÑÕÉ«
# @author Alee
# @date 2013-09-18 17:00
# @version 1.3
#
# ÏêϸÃèÊö:
# @change: "2013-09-23 18:30" Alee Çл»µØÍ¼PlayerNameColor²»±»¼Ç¼ Çå¿Õ£¬ÐèÖØÉè
# @change: "2013-10-31 14:45" Alee ÎäÆ÷µÄ¼¼ÄÜÔöǿЧ¹û
# @change: "2014-09-24 17:00" hxp buffÏûʧʱÇå³ýPKÖµ
#---------------------------------------------------------------------
"""Version = 2014-09-24 17:00"""
 
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.pncGray)
    return
 
## ·µ»ØbuffÀàÐÍ£¬ÏßÐÔÓë·ñ
#  @param None
#  @return ÏßÐÔ
#  @remarks º¯ÊýÏêϸ˵Ã÷.
def GetCalcType():
    return ChConfig.TYPE_Linear
 
 
## Ìí¼ÓBUFFºóµÄÂß¼­
#  @param None
#  @return None
def DoAddBuffOver(curObj, addBuff, curEffect, tick):
    curObj.SetPlayerNameColor(IPY_GameWorld.pncGray)
    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):
    #if curObj.GetPKValue() > 0:
    #    curObj.SetPKValue(0)
    curObj.SetPlayerNameColor(IPY_GameWorld.pncNormal)