Provide safe fallback for hardshell booster effect (currently broken on sisi)

This commit is contained in:
DarkPhoenix
2018-05-04 16:01:29 +03:00
parent 32c6dcdb79
commit a1c894bb22

View File

@@ -10,4 +10,4 @@ type = "passive"
def handler(fit, booster, context):
fit.modules.filteredItemBoost(
lambda mod: mod.item.requiresSkill("Repair Systems") or mod.item.requiresSkill("Capital Repair Systems"),
"armorDamageAmount", booster.getModifiedItemAttr("armorDamageAmountBonus"))
"armorDamageAmount", booster.getModifiedItemAttr("armorDamageAmountBonus") or 0)