MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / __handleSkill

Method __handleSkill

eos/modifiedAttributeDict.py:444–454  ·  view source on GitHub ↗

Since ship skill bonuses do not directly modify the attributes, it does not register as an affector (instead, the ship itself is the affector). To fix this, we pass the skill which ends up here, where we register it with the fit and thus get the correct affector.

(self, skillName)

Source from the content-addressed store, hash-verified

442 return val
443
444 def __handleSkill(self, skillName):
445 """
446 Since ship skill bonuses do not directly modify the attributes, it does
447 not register as an affector (instead, the ship itself is the affector).
448 To fix this, we pass the skill which ends up here, where we register it
449 with the fit and thus get the correct affector. Returns skill level to
450 be used to modify modifier. See GH issue #101
451 """
452 skill = self.fit.character.getSkill(skillName)
453 self.__tmpModifier = skill
454 return skill.level
455
456 def getAfflictions(self, key):
457 return self.__affectedBy.get(key, {})

Callers 3

increaseMethod · 0.95
multiplyMethod · 0.95
boostMethod · 0.95

Calls 1

getSkillMethod · 0.80

Tested by

no test coverage detected