Implement ewar resists (#597)

This commit is contained in:
blitzmann
2016-05-17 23:50:21 -04:00
parent f9c595473f
commit 4607dd788c
7 changed files with 30 additions and 10 deletions

View File

@@ -14,4 +14,4 @@ def handler(fit, src, context):
):
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
tgtAttr, src.getModifiedItemAttr(srcAttr),
stackingPenalties=True)
stackingPenalties=True, remoteResists=True)

View File

@@ -7,7 +7,11 @@ type= "projected", "active"
def handler(fit, module, context):
if "projected" not in context:
return
print "in sensor damp projection on ", fit, module.getModifiedItemAttr("maxTargetRangeBonus")
print fit.ship.getModifiedItemAttr('maxTargetRange')
fit.ship.boostItemAttr("maxTargetRange", module.getModifiedItemAttr("maxTargetRangeBonus"),
stackingPenalties = True)
stackingPenalties = True, remoteResists=True)
print fit.ship.getModifiedItemAttr('maxTargetRange')
fit.ship.boostItemAttr("scanResolution", module.getModifiedItemAttr("scanResolutionBonus"),
stackingPenalties = True)
stackingPenalties = True, remoteResists=True)

View File

@@ -7,4 +7,4 @@ type = "projected", "active"
def handler(fit, container, context):
if "projected" in context:
fit.ship.boostItemAttr("signatureRadius", container.getModifiedItemAttr("signatureRadiusBonus"),
stackingPenalties = True)
stackingPenalties = True, remoteResists=True)

View File

@@ -8,10 +8,10 @@ def handler(fit, module, context):
if "projected" in context:
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Gunnery"),
"trackingSpeed", module.getModifiedItemAttr("trackingSpeedBonus"),
stackingPenalties = True)
stackingPenalties = True, remoteResists=True)
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Gunnery"),
"maxRange", module.getModifiedItemAttr("maxRangeBonus"),
stackingPenalties = True)
stackingPenalties = True, remoteResists=True)
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Gunnery"),
"falloff", module.getModifiedItemAttr("falloffBonus"),
stackingPenalties = True)
stackingPenalties = True, remoteResists=True)

View File

@@ -8,4 +8,4 @@ type = "active", "projected"
def handler(fit, module, context):
if "projected" not in context: return
fit.ship.boostItemAttr("maxVelocity", module.getModifiedItemAttr("speedFactor"),
stackingPenalties = True)
stackingPenalties = True, remoteResists=True)