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

Method handler

eos/effects.py:28395–28419  ·  view source on GitHub ↗
(fit, src, context, projectionRange, **kwargs)

Source from the content-addressed store, hash-verified

28393
28394 @staticmethod
28395 def handler(fit, src, context, projectionRange, **kwargs):
28396 fit.ship.boostItemAttr('scanResolution', src.getModifiedItemAttr('scanResolutionBonus'), stackingPenalties=True, **kwargs)
28397
28398 for scanType in ('Magnetometric', 'Ladar', 'Gravimetric', 'Radar'):
28399 attr = 'scan{}Strength'.format(scanType)
28400 bonus = src.getModifiedItemAttr('scan{}StrengthPercent'.format(scanType))
28401 fit.ship.boostItemAttr(attr, bonus, stackingPenalties=True, **kwargs)
28402 fit.fighters.filteredItemBoost(lambda mod: mod.item.requiresSkill('Fighters'), attr, bonus,
28403 stackingPenalties=True, **kwargs)
28404
28405 # EW cap need increase
28406 groups = [
28407 'Burst Jammer',
28408 'Weapon Disruptor',
28409 'ECM',
28410 'Stasis Grappler',
28411 'Sensor Dampener',
28412 'Target Painter']
28413
28414 fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups or
28415 mod.item.requiresSkill('Propulsion Jamming'),
28416 'capacitorNeed', src.getModifiedItemAttr('ewCapacitorNeedBonus'), **kwargs)
28417 fit.modules.filteredItemIncrease(
28418 lambda mod: mod.item.requiresSkill('Capital Micro Jump Drive Operation'), 'activationBlocked',
28419 src.getModifiedItemAttr('networkedSensorArrayDisallowCapitalMicroJump'), **kwargs)
28420
28421
28422class Effect6570(BaseEffect):

Callers

nothing calls this directly

Calls 5

boostItemAttrMethod · 0.80
filteredItemBoostMethod · 0.80
requiresSkillMethod · 0.80
filteredItemIncreaseMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected