| | |
| | | import NPCCommon
|
| | | import PetControl
|
| | | import QuestCommon
|
| | | import ItemCommon
|
| | |
|
| | | GameWorld.ImportAll("Script\\Skill\\", "PassiveBuff")
|
| | |
|
| | |
| | | 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))
|
| | |
|
| | |
| | | #无技能
|
| | | 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
|
| | |
|