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

Method handler

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

Source from the content-addressed store, hash-verified

40932
40933 @staticmethod
40934 def handler(fit, ship, context, projectionRange, **kwargs):
40935 # Get pilot sec status bonus directly here, instead of going through the intermediary effects
40936 try:
40937 sec_status = ship.owner.getPilotSecurity(low_limit=-10, high_limit=0)
40938 except (KeyboardInterrupt, SystemExit):
40939 raise
40940 except:
40941 return
40942 bonus = ship.getModifiedItemAttr('ATcruiserStasisWebifierBonus') * sec_status
40943 fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == 'Stasis Web', 'maxRange', bonus, **kwargs)
40944
40945
40946class Effect12183(BaseEffect):

Callers

nothing calls this directly

Calls 3

getPilotSecurityMethod · 0.80
filteredItemBoostMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected