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

Method handler

eos/effects.py:8202–8209  ·  view source on GitHub ↗
(fit, container, context, projectionRange, **kwargs)

Source from the content-addressed store, hash-verified

8200
8201 @staticmethod
8202 def handler(fit, container, context, projectionRange, **kwargs):
8203 level = container.level if 'skill' in context else 1
8204 attrs = ('boosterShieldBoostAmountPenalty', 'boosterShieldCapacityPenalty', 'shieldBoostMultiplier')
8205 for attr in attrs:
8206 # shieldBoostMultiplier can be positive (Blue Pill) and negative value (other boosters)
8207 # We're interested in decreasing only side-effects
8208 fit.boosters.filteredItemBoost(lambda booster: booster.getModifiedItemAttr(attr) < 0,
8209 attr, container.getModifiedItemAttr('boosterAttributeModifier') * level, **kwargs)
8210
8211
8212class Effect2766(BaseEffect):

Callers

nothing calls this directly

Calls 2

filteredItemBoostMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected