hxp
2025-05-28 09fef77b16601ee5b0f53f34ccb23804b8448c8c
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
#!/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()