Skip to content

Commit

Permalink
Merge pull request #131 from post-kerbin-mining-corporation/dev
Browse files Browse the repository at this point in the history
Release 1.6.5
  • Loading branch information
ChrisAdderley committed Sep 21, 2022
2 parents 55bb330 + 02e035c commit af1b438
Show file tree
Hide file tree
Showing 7 changed files with 335 additions and 87 deletions.
Binary file not shown.
32 changes: 19 additions & 13 deletions GameData/CryoTanks/Patches/CryoTanksISRU_patch.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//=====================================================================================
// adds LH2, LH2Ox, LCH4, LCH4Ox Converters to parts, that are in CryoTanksISRU_Opt-In
// an invariant mass was used to calculate the values
// Converts appropriately into the resources conserving mass for each fuel type, e.g.
// 1 ore (10 kg/u) -> 2 LF (5 kg/u)
// 1 ore (10 kg/u) -> 141 LH2 (0.07085 kg/u)
//=====================================================================================

// ---------------------------------------------------------------------------
Expand Down Expand Up @@ -210,24 +212,19 @@

@MODULE[ModuleResourceConverter]:HAS[#Tag[CryoTanks_Hydrogen]],*
{
@INPUT_RESOURCE:HAS[@ResourceName[ElectricCharge]]
@INPUT_RESOURCE:HAS[#ResourceName[ElectricCharge]]
{
@Ratio *= #$/CryoTanks_EC_Hydrogen$
@Ratio *= #$../../CryoTanks_EC_Hydrogen$
}
}

@MODULE[ModuleResourceConverter]:HAS[#Tag[CryoTanks_Methane]],*
{
@INPUT_RESOURCE:HAS[@ResourceName[ElectricCharge]]
@INPUT_RESOURCE:HAS[#ResourceName[ElectricCharge]]
{
@Ratio *= #$/CryoTanks_EC_Methane$
@Ratio *= #$../../CryoTanks_EC_Methane$
}
}

-CryoTanks_Converter = none
-CryoTanks_EC_Hydrogen = none
-CryoTanks_EC_Methane = none

}


Expand All @@ -237,12 +234,21 @@
{
@INPUT_RESOURCE:HAS[~ResourceName[ElectricCharge]],*
{
@Ratio *= #$/CryoTanks_Power$
@Ratio *= #$../../CryoTanks_Power$
}
@OUTPUT_RESOURCE,*
{
@Ratio *= #$/CryoTanks_Power$
@Ratio *= #$../../CryoTanks_Power$
}
}
}


@PART:HAS[#CryoTanks_Converter[Set]]:FOR[CryoTanks]
{
-CryoTanks_Converter = none
-CryoTanks_Power = none
}
-CryoTanks_EC_Hydrogen = none
-CryoTanks_EC_Methane = none
}

Loading

0 comments on commit af1b438

Please sign in to comment.