#!/usr/bin/python
|
# -*- coding: GBK -*-
|
|
##@package GY_GM_GivePlayerExp
|
# ¸øÓèÍæ¼Ò¾Ñé
|
#
|
# @author Mark
|
# @date 2010-4-22
|
# @version 1.0
|
#
|
# ÐÞ¸Äʱ¼ä ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ
|
# VER = "2010-05-12 18:30" zhengyang Ìí¼Ó×¢ÊÍ
|
#
|
# Ä£¿éÏêϸ˵Ã÷
|
#µ¼Èë
|
import PlayerControl
|
#---------------------------------------------------------------------
|
#È«¾Ö±äÁ¿
|
#---------------------------------------------------------------------
|
|
#---------------------------------------------------------------------
|
#Â߼ʵÏÖ
|
## GMÃüÁîÖ´ÐÐÈë¿Ú
|
# @param curPlayer µ±Ç°Íæ¼Ò
|
# @param playerList ²ÎÊýÁбí [expValue]
|
# @return None
|
# @remarks º¯ÊýÏêϸ˵Ã÷.
|
def OnExec(curPlayer , playerList):
|
|
if len(playerList) != 1:
|
return
|
|
exp = min(max(0 , playerList[0]) , 100000000)
|
|
playerControl = PlayerControl.PlayerControl(curPlayer)
|
#Ôö¼Ó¾ÑéÖµ
|
playerControl.AddExp(exp)
|
return
|