#!/usr/bin/python  
 | 
# -*- coding: GBK -*-  
 | 
#  
 | 
##@package  
 | 
#  
 | 
# @todo: Êä³öÍæ¼Ò¼¼ÄÜ  
 | 
#  
 | 
# @author: Alee  
 | 
# @date 2019-5-9 ÏÂÎç02:54:09  
 | 
# @version 1.0  
 | 
#  
 | 
# @note:   
 | 
#  
 | 
#---------------------------------------------------------------------  
 | 
import GameWorld  
 | 
import ChConfig  
 | 
import PassiveBuffEffMng  
 | 
import PlayerPet  
 | 
  
 | 
## GMÃüÁîÖ´ÐÐÈë¿Ú  
 | 
#  @param curPlayer µ±Ç°Íæ¼Ò  
 | 
#  @param list ²ÎÊýÁбí [npcID]  
 | 
#  @return None  
 | 
#  @remarks º¯ÊýÏêϸ˵Ã÷.  
 | 
def OnExec(curPlayer, cmdList):  
 | 
    GameWorld.DebugAnswer(curPlayer, "----¿ªÊ¼´òÓ¡Íæ¼Ò¼¼ÄÜ, ´ø²ÎÊý1Êä³ö±»¶¯¼¼ÄÜ")  
 | 
    skillDict = {}  
 | 
      
 | 
    skillManager = curPlayer.GetSkillManager()  
 | 
    for i in range(0 , skillManager.GetSkillCount()):  
 | 
        curSkill = skillManager.GetSkillByIndex(i)  
 | 
        if not curSkill:  
 | 
            continue  
 | 
          
 | 
        funcType = curSkill.GetFuncType()  
 | 
        if funcType not in skillDict:  
 | 
            skillDict[funcType] = [curSkill.GetSkillID()]  
 | 
        else:  
 | 
            skillDict[funcType].append(curSkill.GetSkillID())  
 | 
      
 | 
    showDict = {  
 | 
                1 : "ÈË×å·¨±¦",  
 | 
                2 : "ħ×å·¨±¦",  
 | 
                3 : "·¨±¦×¨¾«",  
 | 
                4 : "Ì츳",  
 | 
                5 : "×øÆï¼¼ÄÜ",  
 | 
                6 : "Éñ±ø¼¼ÄÜ",  
 | 
                7 : "ÈË×å·¨±¦",  
 | 
                8 : "ÆÕ¹¥",  
 | 
                9 : "ÎÞ",  
 | 
                10 : "ͨÓ÷¹ö",  
 | 
                11 : "NPC¾³½ç",  
 | 
                12 : "ÉñÊÞ¼¼ÄÜ",  
 | 
                13 : "ÖïÏɼ¼ÄÜ",  
 | 
                }  
 | 
      
 | 
    for funcType, skillList in skillDict.items():  
 | 
        GameWorld.DebugAnswer(curPlayer, "%s : %s"%(showDict[funcType], skillList))  
 | 
      
 | 
    if not cmdList:  
 | 
        return  
 | 
      
 | 
    passiveEff = PassiveBuffEffMng.GetPassiveEffManager().GetPassiveEff(curPlayer )  
 | 
    if not passiveEff:  
 | 
        return  
 | 
      
 | 
    GameWorld.DebugAnswer(curPlayer, "---------Êä³ö±»¶¯Ð§¹û")  
 | 
      
 | 
    GameWorld.DebugAnswer(curPlayer, "±»¶¯Ð§¹û £º%s"%passiveEff.AffectSkillDict)  
 | 
      
 | 
    GameWorld.DebugAnswer(curPlayer, "Ñ¡Öеı»¶¯¼¼ÄÜЧ¹û £º%s"%passiveEff.AffectPassiveSkillSetDict)  
 | 
      
 | 
    GameWorld.DebugAnswer(curPlayer, "±»¶¯BUFFЧ¹û £º%s"%passiveEff.AffectBuffDict)  
 | 
      
 | 
    GameWorld.DebugAnswer(curPlayer, "ÉñÊÞ±»¶¯Ð§¹û £º%s"%passiveEff.AffectDogzSkillDict)  
 | 
      
 | 
      
 | 
      
 | 
    fightPet = curPlayer.GetPetMgr().GetFightPet()  
 | 
    if fightPet:  
 | 
        GameWorld.DebugAnswer(curPlayer, "³öÕ½³èÎï¼¼ÄÜ%s-%s"%PlayerPet.GetPetLearnSkill(curPlayer))  
 | 
        passiveEff = PassiveBuffEffMng.GetPassiveEffManager().GetPassiveEff(fightPet )  
 | 
        if not passiveEff:  
 | 
            return  
 | 
        GameWorld.DebugAnswer(curPlayer, "³èÎï±»¶¯Ð§¹û £º%s"%passiveEff.AffectSkillDict)  
 | 
          
 | 
        GameWorld.DebugAnswer(curPlayer, "³èÎï±»¶¯BUFFЧ¹û £º%s"%passiveEff.AffectBuffDict)  
 | 
          
 | 
#===============================================================================  
 | 
# (Def_SkillFuncType_Common, #0ΪͨÓü¼ÄÜ  
 | 
# Def_SkillFuncType_FbSkill, #1Ϊ·¨±¦¹¦ÄÜ»ñµÃµÄÖ÷¶¯¼¼ÄÜ  
 | 
# Def_SkillFuncType_FbPassiveSkill, #2Ϊ·¨±¦¹¦ÄÜ»ñµÃµÄ±»¶¯¼¼ÄÜ  
 | 
# Def_SkillFuncType_FbSPSkill, #3Ϊ·¨±¦¹¦ÄÜ»ñµÃµÄSP¼¼ÄÜ  
 | 
# Def_SkillFuncType_GiftSkill, #4ΪÌ츳¼¼ÄÜ  
 | 
# Def_SkillFuncType_HorseSkill, #5Îª×øÆï¼¼ÄÜ  
 | 
# Def_SkillFuncType_PetSkill, #6Ϊ³èÎï¼¼ÄÜ  
 | 
# Def_SkillFuncType_GWSkill,  #7ΪÉñ±ø¼¼ÄÜ  
 | 
# Def_SkillFuncType_NormalAttack,  #8ΪÆÕ¹¥  
 | 
# Def_SkillFuncType_SP15,  #9ΪSP15¼¶ ·þÎñ¶ËδÓõ½  
 | 
# Def_SkillFuncType_SkillRoll,  #10Ϊ·¹ö    ·þÎñ¶ËδÓõ½  
 | 
# Def_SkillFuncType_RealmSuppress,  #11Ϊ¾³½çÑ¹ÖÆ Ä¿Ç°ÊÇNPCÔÚÓà  
 | 
# Def_SkillFuncType_Dogz,     #12 ÉñÊÞ¼¼ÄÜ  
 | 
# Def_SkillFuncType_ZhuXian,     #13 ÖïÏɼ¼ÄÜ  
 | 
#=============================================================================== 
 |