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

Method handler

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

Source from the content-addressed store, hash-verified

32150
32151 @staticmethod
32152 def handler(fit, ship, context, projectionRange, **kwargs):
32153
32154 # Get pilot sec status bonus directly here, instead of going through the intermediary effects
32155 # via https://forums.eveonline.com/default.aspx?g=posts&t=515826
32156 try:
32157 sec_status = ship.owner.getPilotSecurity(low_limit=0, high_limit=5)
32158 except (KeyboardInterrupt, SystemExit):
32159 raise
32160 except:
32161 return
32162
32163 bonus = sec_status * 10
32164 fit.modules.filteredItemBoost(
32165 lambda mod: mod.item.requiresSkill('Repair Systems'),
32166 'armorDamageAmount', bonus, **kwargs)
32167 fit.modules.filteredItemBoost(
32168 lambda mod: mod.item.requiresSkill('Shield Operation'),
32169 'shieldBonus', bonus, **kwargs)
32170
32171
32172class Effect6872(BaseEffect):

Callers

nothing calls this directly

Calls 3

getPilotSecurityMethod · 0.80
filteredItemBoostMethod · 0.80
requiresSkillMethod · 0.80

Tested by

no test coverage detected