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

20 lines
558 B
Python

# shipBonusVelocityGI
#
# Used by:
# Variations of ship: Epithal (2 of 2)
# Variations of ship: Miasmos (4 of 4)
# Ship: Iteron Mark V
# Ship: Kryos
# Ship: Viator
type = "passive"
def handler(fit, ship, context):
# TODO: investigate if we can live without such ifs or hardcoding
# Viator doesn't have GI bonus
if "shipBonusGI" in fit.ship.item.attributes:
bonusAttr = "shipBonusGI"
else:
bonusAttr = "shipBonusGI2"
fit.ship.boostItemAttr("maxVelocity", ship.getModifiedItemAttr(bonusAttr), skill="Gallente Industrial")