16 lines
698 B
Python
16 lines
698 B
Python
# capacitorCapacityMultiply
|
|
#
|
|
# Used by:
|
|
# Modules from group: Capacitor Flux Coil (6 of 6)
|
|
# Modules from group: Capacitor Power Relay (20 of 20)
|
|
# Modules from group: Power Diagnostic System (23 of 23)
|
|
# Modules from group: Propulsion Module (68 of 133)
|
|
# Modules from group: Reactor Control Unit (22 of 22)
|
|
type = "passive"
|
|
|
|
|
|
def handler(fit, module, context):
|
|
# We default this to None as there are times when the source attribute doesn't exist (for example, Cap Power Relay).
|
|
# It will return 0 as it doesn't exist, which would nullify whatever the target attribute is
|
|
fit.ship.multiplyItemAttr("capacitorCapacity", module.getModifiedItemAttr("capacitorCapacityMultiplier", None))
|