Fixed a few fighter/carrier bugs:

* Omnidirectional Tracking Link overheat applies to explosion radius/velocity bonuses.
* Networked Sensor Array affects fighters' sensor strengths.
* Long range heavy fighters no longer appear to require Bomb Deployment.
* Carriers and supercarriers are no longer capped at 300km lock range.
This commit is contained in:
Mr. Nukealizer
2016-09-30 20:08:46 -07:00
parent 23a6849fe3
commit 5467a58b04
4 changed files with 18 additions and 5 deletions

View File

@@ -4,13 +4,18 @@
# Module: Networked Sensor Array
type = "active"
def handler(fit, src, context):
fit.ship.multiplyItemAttr("maxTargetRange", src.getModifiedItemAttr("maxTargetRangeMultiplier"), stackingPenalties=True, penaltyGroup="postMul")
fit.ship.boostItemAttr("scanResolution", src.getModifiedItemAttr("scanResolutionBonus"), stackingPenalties=True)
for scanType in ('Magnetometric', 'Ladar', 'Gravimetric', 'Radar'):
fit.ship.boostItemAttr("scan{}Strength".format(scanType),
src.getModifiedItemAttr("scan{}StrengthPercent".format(scanType)),
stackingPenalties=True)
for fighter in fit.fighters:
for scanType in ('Magnetometric', 'Ladar', 'Gravimetric', 'Radar'):
fighter.boostItemAttr("scan{}Strength".format(scanType),
src.getModifiedItemAttr("scan{}StrengthPercent".format(scanType)),
stackingPenalties=True)
# EW cap need increase
groups = [