Files
pyfa/eos/effects/scanstrengthbonuspercentpassive.py
2013-08-23 01:27:52 +04:00

10 lines
432 B
Python
Executable File

# Used by:
# Implants from group: Cyberimplant (20 of 143)
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))