#!/usr/bin/python
|
# -*- coding: GBK -*-
|
|
##@package SkillReset
|
# ¼¼ÄܵãÖØÖÃ
|
#
|
# @author kill
|
# @date 2010-4-23
|
# @version 1.3
|
#
|
# ÐÞ¸Äʱ¼ä ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ
|
#
|
# @change: "2013-05-27 22:00" Alee ¼ò»¯ÖØÖü¼ÄÜ
|
# @change: "2015-02-27 21:00" hxp Ôö¼ÓÖØÖôóʦ¼¼ÄÜ
|
# @change: "2016-03-24 17:00" hxp ¼¼ÄÜËãÕ½¶·Á¦
|
#---------------------------------------------------------------------
|
#"""Version = 2016-03-24 17:00"""
|
|
import PlayerGreatMaster
|
import PlayerControl
|
#import GameWorld
|
#import Lang
|
|
## ¼¼ÄܵãÖØÖÃ
|
# @param curPlayer µ±Ç°Íæ¼Ò
|
# @param playerList ²ÎÊýÁбí [index,hole,]
|
# @return None
|
# @remarks º¯ÊýÏêϸ˵Ã÷.
|
def OnExec(curPlayer, playerList):
|
#===========================================================================
|
# if len(playerList) > 0:
|
# #ÃüÁî²ÎÊý²»ÕýÈ·
|
# GameWorld.DebugAnswer(curPlayer, Lang.GBText("ÃüÁî²ÎÊý²»ÕýÈ·"))
|
# return
|
#===========================================================================
|
# ÏÈÖØÖôóʦ¼¼ÄÜ£¬¹é»¹´óʦÌ츳µã
|
PlayerGreatMaster.DoResetMasterSkillPoint(curPlayer)
|
|
skillManager=curPlayer.GetSkillManager()
|
#===========================================================================
|
# saveSkillPoint = 0
|
# #±éÀúÍæ¼Òµ±Ç°¼¼ÄÜÊýÄ¿
|
# for i in range(0,skillManager.GetSkillCount()):
|
# #»ñµÃÍæ¼Òµ±Ç°¼¼ÄÜ
|
# curSkill = skillManager.GetSkillByIndex(i)
|
# #»ñµÃµ±Ç°¼¼Äܵȼ¶
|
# curSkill_LV = curSkill.GetSkillLV()
|
# #±£´æ¼¼Äܵã
|
# saveSkillPoint = saveSkillPoint + curSkill_LV
|
#
|
#===========================================================================
|
#ÖØÖõ±Ç°¼¼Äܵȼ¶
|
skillManager.ResetSkill()
|
#ÉèÖÃÍæ¼ÒÊ£Ó༼Äܵã
|
#curPlayer.SetFreeSkillPoint(curPlayer.GetFreeSkillPoint()+saveSkillPoint)
|
PlayerControl.PlayerControl(curPlayer).ReCalcAllState()
|
|
|