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)
| 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, {}) |