Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…on/CryoTanks into dev

# Conflicts:
#	changelog.txt
  • Loading branch information
ChrisAdderley committed Sep 21, 2022
2 parents 4db9d8b + fd8d3d1 commit 02e035c
Show file tree
Hide file tree
Showing 3 changed files with 327 additions and 84 deletions.
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 02e035c

Please sign in to comment.