@PART[*]:HAS[MODULE[USI_ConverterSwapOption]:HAS[#ConverterName[Agroponics]]]:NEEDS[TACLifeSupport]:Final { @ModULE[USI_ConverterSwapOption]:HAS[#ConverterName[Agroponics]] { // Get original input of mulch and output of supplies and compute the equivalent number of Kerbals %MulchIn = #$INPUT_RESOURCE:HAS[#ResourceName[Mulch]]/Ratio$ @MulchIn /= #$@LIFE_SUPPORT_SETTINGS/WasteAmount$ %SuppliesOut = #$OUTPUT_RESOURCE:HAS[#ResourceName[Supplies]]/Ratio$ @SuppliesOut /= #$@LIFE_SUPPORT_SETTINGS/SupplyAmount$ // Now change to the same equivalent number of Kerbals for TAC-LS resources @INPUT_RESOURCE:HAS[#ResourceName[Mulch]] { @ResourceName = Waste @Ratio = #$../MulchIn$ @Ratio *= 0.000001539351852 } INPUT_RESOURCE { ResourceName = WasteWater Ratio = #$../MulchIn$ @Ratio *= 0.000014247685185 } INPUT_RESOURCE { ResourceName = CarbonDioxide Ratio = #$../MulchIn$ @Ratio *= 0.00148012889876 } @OUTPUT_RESOURCE:HAS[#ResourceName[Supplies]] { @ResourceName = Food @Ratio = #$../SuppliesOut$ @Ratio *= 0.000016927083333 %DumpExcess = True } OUTPUT_RESOURCE { ResourceName = Water Ratio = #$../SuppliesOut$ @Ratio *= 0.000011188078704 %DumpExcess = True } OUTPUT_RESOURCE { ResourceName = Oxygen Ratio = #$../SuppliesOut$ @Ratio *= 0.001713537562385 %DumpExcess = True } } }