11 lines
368 B
Python
11 lines
368 B
Python
# remoteEnergyTransferFalloff
|
|
#
|
|
# Used by:
|
|
# Modules from group: Remote Capacitor Transmitter (41 of 41)
|
|
type = "projected", "active"
|
|
def handler(fit, module, context):
|
|
if "projected" in context:
|
|
amount = module.getModifiedItemAttr("powerTransferAmount")
|
|
duration = module.getModifiedItemAttr("duration")
|
|
fit.addDrain(duration, -amount, 0)
|