Implement CONCORD ship sec status bonus.
This commit is contained in:
15
eos/effects/concordsecstatustankbonus.py
Normal file
15
eos/effects/concordsecstatustankbonus.py
Normal 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)
|
||||
Reference in New Issue
Block a user