Skip to content

Commit

Permalink
Support USFuelCellMedium (#444)
Browse files Browse the repository at this point in the history
* Support USFuelCellMedium
* changelog for US2 fuel cells
  • Loading branch information
lordcirth authored and SirMortimer committed Jul 5, 2019
1 parent 6054ba0 commit a2db10d
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* Improved shielding efficiency calculation (Free Thinker)
* Apply artificial radiation sources after Gamma Transparency is applied (Free Thinker)
* Fixed the configuration for EVA kerbals, a problem introduced by Serenity (Sir Mortimer)
* Added support for Universal Storage 2 fuel cells (lordcirth)

## v3.0.2 for all versions of KSP from 1.4.0 to 1.7.x

Expand Down
72 changes: 72 additions & 0 deletions GameData/Kerbalism/Support/US2.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,78 @@

@TechRequired = basicScience
}

// Stock fuel cell masses 0.05t
// This wedge masses 0.156, so *3.12
@PART[USFuelCellMedium]:NEEDS[ProfileDefault]:FOR[Kerbalism]
{
!MODULE[ModuleResourceConverter] {}
!RESOURCE[ElectricCharge] {}

MODULE
{
name = ProcessController
resource = _FuelCell
title = H2+O2 fuel cell
capacity = 3.12 //1
valve_i = 1
}

MODULE
{
name = ProcessController
resource = _MonopropFuelCell
title = Monoprop+O2 fuel cell
capacity = 15.6 // 5
}

MODULE
{
name = Configure
title = Fuel Cell
slots = 1

SETUP
{
name = Hydrogen Oxygen Fuel Cell
desc = Burns <b>Hydrogen</b> gas and <b>Oxygen</b> gas, producing <b>Water</b> as a by-product.

MODULE
{
type = ProcessController
id_field = resource
id_value = _FuelCell
}
}

SETUP
{
name = Monoprop Oxygen Fuel Cell
desc = Burns <b>MonoPropellant</b> and <b>Oxygen</b> gas, producing <b>Water</b> and <b>Nitrogen</b> gas as by-products.
tech = basicScience

MODULE
{
type = ProcessController
id_field = resource
id_value = _MonopropFuelCell
}
}
}

MODULE:NEEDS[FeatureReliability]
{
name = Reliability
type = ProcessController
title = Fuel Cell
redundancy = Power Generation
repair = Engineer
mtbf = 72576000
extra_cost = 1.0
extra_mass = 0.33
}
}

@PART[rtg]:NEEDS[ProfileDefault]:FOR[Kerbalism]
{
MODULE
Expand Down

0 comments on commit a2db10d

Please sign in to comment.