Fix several miscalculations

This commit is contained in:
DarkPhoenix
2013-07-14 15:25:11 +04:00
parent c67034eba1
commit bc592eaabe
4 changed files with 85 additions and 62 deletions

View File

@@ -0,0 +1,9 @@
# Used by:
# Drones named like: SD (3 of 3)
type = "projected", "active"
def handler(fit, container, context):
if "projected" in context:
fit.ship.multiplyItemAttr("maxTargetRange", container.getModifiedItemAttr("maxTargetRangeMultiplier"),
stackingPenalties = True, penaltyGroup="postMul")
fit.ship.multiplyItemAttr("scanResolution", container.getModifiedItemAttr("scanResolutionMultiplier"),
stackingPenalties = True, penaltyGroup="postMul")