From 0a1f32405376ae62dce878d371c2ffa73eeb8514 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Tue, 21 Jul 2015 12:27:46 -0400 Subject: [PATCH] Fix Advanced Spaceship Command skill and resists for Occator --- eos/effects/eliteindustrialarmorresists2.py | 1 + eos/effects/shipadvancedspaceshipcommandagilitybonus.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/eos/effects/eliteindustrialarmorresists2.py b/eos/effects/eliteindustrialarmorresists2.py index e7b309177..a2fd87a86 100644 --- a/eos/effects/eliteindustrialarmorresists2.py +++ b/eos/effects/eliteindustrialarmorresists2.py @@ -5,5 +5,6 @@ # Ship: Occator type = "passive" def handler(fit, ship, context): + for damageType in ("em", "thermal", "explosive", "kinetic"): fit.ship.boostItemAttr("armor{}DamageResonance".format(damageType.capitalize()), ship.getModifiedItemAttr("eliteBonusIndustrial2"), skill="Transport Ships") diff --git a/eos/effects/shipadvancedspaceshipcommandagilitybonus.py b/eos/effects/shipadvancedspaceshipcommandagilitybonus.py index a9eab85dd..081daa2f7 100644 --- a/eos/effects/shipadvancedspaceshipcommandagilitybonus.py +++ b/eos/effects/shipadvancedspaceshipcommandagilitybonus.py @@ -4,4 +4,6 @@ # Items from market group: Ships > Capital Ships (27 of 28) type = "passive" def handler(fit, ship, context): - fit.ship.boostItemAttr("agility", skill.getModifiedItemAttr("agilityBonus"), skill="Advanced Spaceship Command") + skillName = "Advanced Spaceship Command" + skill = fit.character.getSkill(skillName) + fit.ship.boostItemAttr("agility", skill.getModifiedItemAttr("agilityBonus"), skill=skillName)