(self, fit, runTime)
| 409 | return 0 |
| 410 | |
| 411 | def calculateModifiedAttributes(self, fit, runTime): |
| 412 | if self.__suppressed: # or not self.learned - removed for GH issue 101 |
| 413 | return |
| 414 | |
| 415 | item = self.item |
| 416 | if item is None: |
| 417 | return |
| 418 | |
| 419 | for effect in item.effects.values(): |
| 420 | if effect.runTime == runTime and \ |
| 421 | effect.isType("passive") and \ |
| 422 | (not fit.isStructure or effect.isType("structure")) and \ |
| 423 | effect.activeByDefault: |
| 424 | try: |
| 425 | effect.handler(fit, self, ("skill",), None, effect=effect) |
| 426 | except AttributeError: |
| 427 | continue |
| 428 | |
| 429 | def clear(self): |
| 430 | self.__suppressed = False |
no test coverage detected