hxp
2019-12-17 4226d0d2ec4cf5541a17d9a6cdbf1a32a011d052
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuffEffMng.py
@@ -40,6 +40,7 @@
import NPCCommon
import PetControl
import QuestCommon
import ItemCommon
GameWorld.ImportAll("Script\\Skill\\", "PassiveBuff")
@@ -606,8 +607,8 @@
                    self.AffectSuperEquipSkillDict[key] = []
                    
                self.AffectSuperEquipSkillDict[key].append((skillTypeID, effectID))
                # 效果叠加根据技能个数会衰减 = 1-pow((1-初始值),相同技能个数)
                self.AffectSuperEquipEffectCntDict[effectID] = 1 - pow((1 - curEffect.GetEffectValue(0)),value)
                # 效果叠加根据技能个数会衰减 = 1-pow((1-初始值/10000.0),相同技能个数)*10000
                self.AffectSuperEquipEffectCntDict[effectID] = int((1 - pow((1 - curEffect.GetEffectValue(0)/10000.0),value))*10000)
        
        GameWorld.DebugLog("RefreshSuperEquipSkillDict %s-%s"%(self.AffectSuperEquipSkillDict, self.AffectSuperEquipEffectCntDict))
        
@@ -1683,12 +1684,9 @@
            #无技能
            continue
        
        for j in xrange(curEquip.GetAddSkillCount()):
            skillID = curEquip.GetAddSkill(j)
            if skillID == 0:
                break
            skillsDict[skillID] = skillsDict.get(skillID, 0) + 1
        itemSkillIDList = ItemCommon.GetItemSkillIDList(curEquip)
        for skillID in itemSkillIDList:
            skillsDict[skillID] = skillsDict.get(skillID, 0) + 1
            
    return skillsDict