more fixes

This commit is contained in:
blitzman
2016-11-20 15:37:12 -05:00
parent 59b854b00d
commit eae4bb75e5
4 changed files with 3 additions and 21 deletions

View File

@@ -1,17 +1,3 @@
# Command Burst AOE Bonus
#
# Used by:
# Orca
type = "passive"
# TODO: this isn't applying correctly :(
def handler(fit, src, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in
(
"Command Burst",
),
"maxRange",
src.getModifiedItemAttr("roleBonusCommandBurstAoERange"),
)
# TODO: test
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Leadership"), "maxRange", src.getModifiedItemAttr("roleBonusCommandBurstAoERange"), stackingPenalties=True)

View File

@@ -4,7 +4,5 @@
# Ship: Orca
type = "passive"
def handler(fit, ship, context):
fit.ship.boostItemAttr("capacity", ship.getModifiedItemAttr("shipOrcaCargoBonusOrca1"),
skill="Industrial Command Ships")
pass

View File

@@ -6,6 +6,4 @@ type = "passive"
def handler(fit, ship, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Mining Director"),
"commandBonus", ship.getModifiedItemAttr("shipOrcaForemanBonus"),
skill="Industrial Command Ships")
pass