#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#-------------------------------------------------------------------------------
|
#
|
##@package GM.Commands.SetPKValueBuff
|
#
|
# @todo:ÉèÖÃPKÖµ¼°ºìÃûbuff
|
# @author hxp
|
# @date 2018-01-20
|
# @version 1.0
|
#
|
# ÏêϸÃèÊö: ÉèÖÃPKÖµ¼°ºìÃûbuff
|
#
|
#-------------------------------------------------------------------------------
|
#"""Version = 2018-01-20 16:00"""
|
#-------------------------------------------------------------------------------
|
|
|
import GameWorld
|
import PlayerControl
|
|
## GMÃüÁîÖ´ÐÐÈë¿Ú
|
# @param curPlayer µ±Ç°Íæ¼Ò
|
# @param playerList ²ÎÊýÁбí [pointCount]
|
# @return None
|
# @remarks º¯ÊýÏêϸ˵Ã÷.
|
def OnExec(curPlayer, playerList):
|
if not playerList:
|
GameWorld.DebugAnswer(curPlayer, "SetPKValueBuff ¶ñÒâPKÖµ")
|
return
|
|
pkValue = playerList[0]
|
PlayerControl.ClearPKValue(curPlayer)
|
tick = GameWorld.GetGameWorld().GetTick()
|
pkValue = PlayerControl.ChangePKValue(curPlayer, pkValue, tick)
|
GameWorld.DebugAnswer(curPlayer, "SetPKValueBuff PKValue=%s" % pkValue)
|
return
|
|