|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #if self.__GetIsLog(): | 
|---|
|  |  |  | #    GameWorld.Log("玩家增加个人经验,npcID=%s,addExp=%s" % (curNPC.GetNPCID(), add_Exp), curPlayer.GetPlayerID()) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | addSkillID = 0 | 
|---|
|  |  |  | if curNPC.GetDictByKey(ChConfig.Def_NPCDead_KillerID) == curPlayer.GetID(): | 
|---|
|  |  |  | addSkillID = curNPC.GetDictByKey(ChConfig.Def_NPCDead_Reason) | 
|---|
|  |  |  | #设定人物获得经验 | 
|---|
|  |  |  | playerControl = PlayerControl.PlayerControl(curPlayer) | 
|---|
|  |  |  | playerControl.AddExp(add_Exp, ShareDefine.Def_ViewExpType_KillNPC) | 
|---|
|  |  |  | playerControl.AddExp(add_Exp, ShareDefine.Def_ViewExpType_KillNPC, addSkillID) | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | self.__KillNPCFuncEx(curPlayer, curNPC, curPlayer.GetPlayerID(), False) | 
|---|
|  |  |  | 
|---|
|  |  |  | return | 
|---|
|  |  |  | #GameWorld.Log("普通队伍杀死怪物,队伍分享人数 = %s,个人经验增加 玩家 = %s, 增加 = %s"%(playerCount, curPlayer.GetPlayerID(), add_Exp)) | 
|---|
|  |  |  | #设定人物获得经验 | 
|---|
|  |  |  | addSkillID = 0 | 
|---|
|  |  |  | if curNPC.GetDictByKey(ChConfig.Def_NPCDead_KillerID) == curPlayer.GetID(): | 
|---|
|  |  |  | addSkillID = curNPC.GetDictByKey(ChConfig.Def_NPCDead_Reason) | 
|---|
|  |  |  | playerControl = PlayerControl.PlayerControl(curPlayer) | 
|---|
|  |  |  | playerControl.AddExp(add_Exp, ShareDefine.Def_ViewExpType_KillNPC) | 
|---|
|  |  |  | playerControl.AddExp(add_Exp, ShareDefine.Def_ViewExpType_KillNPC, addSkillID) | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #--------------------------------------------------------------------- | 
|---|