Add projected warp strength to scrams
Changes to effects: Added warp strength projected effects to all kinds of warp disruption modules except for WDFG (this will need some more thinking). Fixed a bug where warp disruptors appeared to reduce the warp strength of the ship they were fitted to Changes to targetingMiscView*.py: Replaced abs() with multiplication by -1 where appropriate
This commit is contained in:
@@ -9,6 +9,9 @@ type = "projected", "active"
|
||||
def handler(fit, module, context):
|
||||
if "projected" not in context:
|
||||
return
|
||||
|
||||
fit.ship.increaseItemAttr("warpScrambleStatus", module.getModifiedItemAttr("warpScrambleStrength"))
|
||||
|
||||
# this is such a dirty hack
|
||||
for mod in fit.modules:
|
||||
if not mod.isEmpty and mod.item.requiresSkill("High Speed Maneuvering") and mod.state > State.ONLINE:
|
||||
|
||||
@@ -6,4 +6,5 @@ type = "projected", "active"
|
||||
|
||||
|
||||
def handler(fit, module, context):
|
||||
fit.ship.increaseItemAttr("warpScrambleStatus", module.getModifiedItemAttr("warpScrambleStrength"))
|
||||
if "projected" in context:
|
||||
fit.ship.increaseItemAttr("warpScrambleStatus", module.getModifiedItemAttr("warpScrambleStrength"))
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#
|
||||
# Used by:
|
||||
# Modules named like: Warp Scrambler (26 of 26)
|
||||
|
||||
from eos.saveddata.module import State
|
||||
|
||||
runTime = "early"
|
||||
@@ -12,6 +11,9 @@ type = "projected", "active"
|
||||
def handler(fit, module, context):
|
||||
if "projected" not in context:
|
||||
return
|
||||
|
||||
fit.ship.increaseItemAttr("warpScrambleStatus", module.getModifiedItemAttr("warpScrambleStrength"))
|
||||
|
||||
# this is such a dirty hack
|
||||
for mod in fit.modules:
|
||||
if not mod.isEmpty and mod.item.requiresSkill("High Speed Maneuvering") and mod.state > State.ONLINE:
|
||||
|
||||
Reference in New Issue
Block a user