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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user