Convert booster attribute to value before applying

Changes to boostermissilevelocitypenalty.py:
Get booster attribute value using booster.getModifiedItemAttr()
before attempting to apply it to avoid type error
This commit is contained in:
burnsypet
2017-09-14 21:53:53 +01:00
parent c33aeb7275
commit a01284ff1c

View File

@@ -14,4 +14,4 @@ attr = "boosterMissileVelocityPenalty"
def handler(fit, booster, context):
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
"maxVelocity", attr)
"maxVelocity", booster.getModifiedItemAttr(attr))