Files
pyfa/eos/effects/effect2298.py
2019-03-16 14:08:20 -04:00

14 lines
467 B
Python

# scanStrengthBonusPercentPassive
#
# Used by:
# Implants named like: High grade (20 of 66)
type = "passive"
def handler(fit, implant, context):
for type in ("Gravimetric", "Magnetometric", "Radar", "Ladar"):
sensorType = "scan{0}Strength".format(type)
sensorBoost = "scan{0}StrengthPercent".format(type)
if sensorBoost in implant.item.attributes:
fit.ship.boostItemAttr(sensorType, implant.getModifiedItemAttr(sensorBoost))