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

Method handler

eos/effects.py:41155–41164  ·  view source on GitHub ↗
(fit, ship, context, projectionRange, **kwargs)

Source from the content-addressed store, hash-verified

41153
41154 @staticmethod
41155 def handler(fit, ship, context, projectionRange, **kwargs):
41156 # Get pilot sec status bonus directly here, instead of going through the intermediary effects
41157 try:
41158 sec_status = ship.owner.getPilotSecurity(low_limit=-10, high_limit=0)
41159 except (KeyboardInterrupt, SystemExit):
41160 raise
41161 except:
41162 return
41163 bonus = ship.getModifiedItemAttr('ATcruiserScramblerDisruptorBonus') * sec_status
41164 fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == 'Warp Scrambler', 'maxRange', bonus, **kwargs)
41165
41166
41167class Effect12203(BaseEffect):

Callers

nothing calls this directly

Calls 3

getPilotSecurityMethod · 0.80
filteredItemBoostMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected