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

Method handler

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

Source from the content-addressed store, hash-verified

40991
40992 @staticmethod
40993 def handler(fit, ship, context, projectionRange, **kwargs):
40994 # Get pilot sec status bonus directly here, instead of going through the intermediary effects
40995 try:
40996 sec_status = ship.owner.getPilotSecurity(low_limit=-10, high_limit=0)
40997 except (KeyboardInterrupt, SystemExit):
40998 raise
40999 except:
41000 return
41001 bonus = ship.getModifiedItemAttr('ATBurstJammerStrengthBonus') * sec_status
41002 for attr in ('ecmBurstRange', 'scanRadarStrengthBonus', 'scanGravimetricStrengthBonus', 'scanLadarStrengthBonus', 'scanMagnetometricStrengthBonus'):
41003 fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == 'Burst Jammer', attr, bonus, **kwargs)
41004
41005
41006class Effect12188(BaseEffect):

Callers

nothing calls this directly

Calls 3

getPilotSecurityMethod · 0.80
filteredItemBoostMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected