Fix svipul's sensor str effect on sharpshooter mode

This commit is contained in:
DarkPhoenix
2015-02-15 14:27:32 +03:00
parent 471261275a
commit ca301f8d5b
11 changed files with 82 additions and 41 deletions

View File

@@ -4,5 +4,9 @@
# Modules named like: Sharpshooter Mode (2 of 2)
type = "passive"
def handler(fit, module, context):
fit.ship.multiplyItemAttr("maxTargetRange", 1/module.getModifiedItemAttr("modeMaxTargetRangePostDiv"),
stackingPenalties = True, penaltyGroup="postDiv")
fit.ship.multiplyItemAttr(
"maxTargetRange",
1 / module.getModifiedItemAttr("modeMaxTargetRangePostDiv"),
stackingPenalties=True,
penaltyGroup="postDiv"
)