Implement CONCORD ship sec status bonus.

This commit is contained in:
blitzmann
2017-04-18 01:21:08 -04:00
parent 99b0322289
commit 66a8669c64

View File

@@ -0,0 +1,15 @@
type = "passive"
def handler(fit, src, context):
# Get pilot sec status bonus directly here, instead of going through the intermediary effects
# via https://forums.eveonline.com/default.aspx?g=posts&t=515826
try:
bonus = max(0, min(50.0, (src.parent.character.secStatus * 10)))
except:
bonus = None
if bonus is not None:
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Repair Systems"),
"armorDamageAmount", bonus, stackingPenalties=True)
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Operation"),
"shieldBonus", bonus, stackingPenalties=True)