Skip to content

Commit

Permalink
Add H-2 configs (#2420)
Browse files Browse the repository at this point in the history
  • Loading branch information
Capkirk123 authored Aug 11, 2024
1 parent e09d82c commit c3be163
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GameData/RP-1/Tree/ECM-Engines.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@
H-1-200K = 10000, H-1-188K
H-1-205K = 5000, H-1-200K
H-1-250K = 15000,H-1-205K
H-2-250K = 35000,H-1-188K
H-2-300K = 15000,H-2-250K
H2+O2 = 15000,HydroloxPF
HERMeS = 25000
HG-3 = 260000,StagedHydrolox,J-2S
Expand Down
94 changes: 94 additions & 0 deletions GameData/RP-1/Tree/TREE-Engines.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,20 @@
*@PARTUPGRADE[RFUpgrade_H-1-250K]/deleteme -= 1
}

@CONFIG[H-2-250K]
{
%techRequired = orbitalRocketry1967
%cost = 18
*@PARTUPGRADE[RFUpgrade_H-2-250K]/deleteme -= 1
}

@CONFIG[H-2-300K]
{
%techRequired = orbitalRocketry1976
%cost = 41
*@PARTUPGRADE[RFUpgrade_H-2-300K]/deleteme -= 1
}

@CONFIG[H2+O2]
{
%techRequired = reusableControl
Expand Down Expand Up @@ -9617,6 +9631,86 @@ PART
{
}

PARTUPGRADE
{
name = RFUpgrade_H-2-250K
partIcon = RO-H1-RS27 // FIXME Once we get dedicated model
techRequired = orbitalRocketry1967
entryCost = 0
cost = 0
title = H1 Engine Upgrade: H-2-250K Config
basicInfo = Engine Performance Upgrade
manufacturer = Engine Upgrade
deleteme = 1
description = The H1 Engine now supports the H-2-250K configuration for increased performance. Unlock it in the VAB/SPH through the engine configs interface.\n\n
}

PART
{
name = RFUpgrade_engineConfigSource_H-2-250K
engineType = H1
}

@PART[RFUpgrade_engineConfigSource_H-2-250K]:AFTER[RealismOverhaulEngines]
{
%MODULE[Module*EngineConfigs] {
@name = ModuleEngineConfigs
%CONFIG[H-2-250K] {
&specLevel = operational
}
}
}

@PARTUPGRADE[RFUpgrade_H-2-250K]:AFTER[RealismOverhaulEngines]
{
%description = #$description$\nAvailable at specLevel $@PART[RFUpgrade_engineConfigSource_H-2-250K]/MODULE[ModuleEngineConfigs]/CONFIG[H-2-250K]/specLevel$
// TODO: could add any number of other useful fields from the CONFIG here. cost? description?
}

!PART[RFUpgrade_engineConfigSource_H-2-250K]:AFTER[RealismOverhaulEngines]
{
}

PARTUPGRADE
{
name = RFUpgrade_H-2-300K
partIcon = RO-H1-RS27 // FIXME Once we get dedicated model
techRequired = orbitalRocketry1976
entryCost = 0
cost = 0
title = H1 Engine Upgrade: H-2-300K Config
basicInfo = Engine Performance Upgrade
manufacturer = Engine Upgrade
deleteme = 1
description = The H1 Engine now supports the H-2-300K configuration for increased performance. Unlock it in the VAB/SPH through the engine configs interface.\n\n
}

PART
{
name = RFUpgrade_engineConfigSource_H-2-300K
engineType = H1
}

@PART[RFUpgrade_engineConfigSource_H-2-300K]:AFTER[RealismOverhaulEngines]
{
%MODULE[Module*EngineConfigs] {
@name = ModuleEngineConfigs
%CONFIG[H-2-300K] {
&specLevel = operational
}
}
}

@PARTUPGRADE[RFUpgrade_H-2-300K]:AFTER[RealismOverhaulEngines]
{
%description = #$description$\nAvailable at specLevel $@PART[RFUpgrade_engineConfigSource_H-2-300K]/MODULE[ModuleEngineConfigs]/CONFIG[H-2-300K]/specLevel$
// TODO: could add any number of other useful fields from the CONFIG here. cost? description?
}

!PART[RFUpgrade_engineConfigSource_H-2-300K]:AFTER[RealismOverhaulEngines]
{
}

PARTUPGRADE
{
name = RFUpgrade_H2+O2
Expand Down
42 changes: 42 additions & 0 deletions Source/Tech Tree/Parts Browser/data/Engine_Config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4291,6 +4291,48 @@
"identical_part_name": "",
"module_tags": []
},
{
"name": "H-2-250K",
"title": "H-2-250K",
"description": "",
"mod": "Engine_Config",
"cost": "18",
"entry_cost": "0",
"category": "ORBITAL",
"info": "",
"year": "1967",
"technology": "orbitalRocketry1967",
"ro": true,
"orphan": false,
"rp0_conf": true,
"spacecraft": "Saturn C-2",
"engine_config": "H1",
"upgrade": true,
"entry_cost_mods": "35000,H-1-188K",
"identical_part_name": "",
"module_tags": []
},
{
"name": "H-2-300K",
"title": "H-2-300K",
"description": "",
"mod": "Engine_Config",
"cost": "41",
"entry_cost": "0",
"category": "ORBITAL",
"info": "",
"year": "1976",
"technology": "orbitalRocketry1976",
"ro": true,
"orphan": false,
"rp0_conf": true,
"spacecraft": "Saturn C-2",
"engine_config": "H1",
"upgrade": true,
"entry_cost_mods": "15000,H-2-250K",
"identical_part_name": "",
"module_tags": []
},
{
"name": "H2+O2",
"title": "",
Expand Down

0 comments on commit c3be163

Please sign in to comment.