Skip to content

Commit

Permalink
Fix for DLC: apply kerbalEVA* patches to the core EVA configuration o…
Browse files Browse the repository at this point in the history
…nly.
  • Loading branch information
SirMortimer committed Jul 2, 2019
1 parent ec400b5 commit 040603d
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* Configs for SoundingRockets (Arthur, Breach Candy)
* Fixed DMOS experiment restriction to plantary space. This breaks some DMOS contracts that require experiments in solar orbit (Sir Mortimer)
* Improved shielding efficiency calculation (Free Thinker)
* Fixed the configuration for EVA kerbals, a problem introduced by Serenity (Sir Mortimer)

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

Expand Down
2 changes: 1 addition & 1 deletion GameData/KerbalismConfig/Profiles/Default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ PARTUPGRADE:NEEDS[ProfileDefault]
// Add scrubber process to EVA kerbals
// ============================================================================
@PART[kerbalEVA*]:NEEDS[ProfileDefault]:FOR[Kerbalism]
@PART[kerbalEVA*]:HAS[@MODULE[ModuleTripLogger]]:NEEDS[ProfileDefault]:FOR[Kerbalism]
{
MODULE
{
Expand Down
4 changes: 2 additions & 2 deletions GameData/KerbalismConfig/System/Habitat.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@
// Add Atmosphere capacity to EVA Kerbals
// ============================================================================

@PART[kerbalEVA*]:NEEDS[FeatureHabitat]:FOR[Kerbalism]
@PART[kerbalEVA*]:HAS[@MODULE[ModuleTripLogger]]:NEEDS[FeatureHabitat]:FOR[Kerbalism]
{
RESOURCE
{
Expand All @@ -242,7 +242,7 @@
// Add WasteAtmosphere capacity to EVA Kerbals
// ============================================================================

@PART[kerbalEVA*]:NEEDS[FeaturePoisoning]:FOR[Kerbalism]
@PART[kerbalEVA*]:HAS[@MODULE[ModuleTripLogger]]:NEEDS[FeaturePoisoning]:FOR[Kerbalism]
{
RESOURCE
{
Expand Down
16 changes: 12 additions & 4 deletions GameData/KerbalismConfig/System/ScienceRework/HardDriveConfigs.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,15 @@
}
}

@PART[ScienceBox,kerbalEVA*]:NEEDS[FeatureScience]
@PART[ScienceBox]:NEEDS[FeatureScience]
{
MODULE
{
name = HardDrive
}
}

@PART[kerbalEVA*]:HAS[@MODULE[ModuleTripLogger]]:NEEDS[FeatureScience]
{
MODULE
{
Expand Down Expand Up @@ -238,7 +246,7 @@
@sampleCapacity = #$@KERBALISM_HDD_SIZES/STOCK/RC-L01/samples$
}
}
@PART[kerbalEVA*]:NEEDS[FeatureScience]:FOR[Kerbalism]
@PART[kerbalEVA*]:HAS[@MODULE[ModuleTripLogger]]:NEEDS[FeatureScience]:FOR[Kerbalism]
{
@MODULE[HardDrive]
{
Expand Down Expand Up @@ -416,7 +424,7 @@
// Removing EVA Drive upgrades (they cannot work due to how stock handles the upgrades)
// They're harmless, but simply avoiding unnecessary upgrade spam.
// ============================================================================
@PART[kerbalEVA*]:NEEDS[FeatureScience]:FOR[zzzKerbalism]
@PART[kerbalEVA*]:HAS[@MODULE[ModuleTripLogger]]:NEEDS[FeatureScience]:FOR[zzzKerbalism]
{
@MODULE[HardDrive]
{
Expand Down Expand Up @@ -471,4 +479,4 @@
}
}
}
}
}
4 changes: 2 additions & 2 deletions GameData/KerbalismConfig/System/ScienceRework/NewScience.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
experiment_id = infraredTelescope
}
}
@PART[kerbalEVA*]:NEEDS[FeatureScience]
@PART[kerbalEVA*]:HAS[@MODULE[ModuleTripLogger]]:NEEDS[FeatureScience]
{
!MODULE:HAS[#experimentID[surfaceSample]] {}
!MODULE:HAS[#experimentID[evaReport]] {}
Expand Down Expand Up @@ -411,7 +411,7 @@
// Nerfing EC cost for EVA kerbals for surface sample, otherwise it's unuseable
// Done this way because of groups that include the surface sample.
// ============================================================================
@PART[kerbalEVA*]:NEEDS[FeatureScience]:AFTER[Kerbalism]
@PART[kerbalEVA*]:HAS[@MODULE[ModuleTripLogger]]:NEEDS[FeatureScience]:AFTER[Kerbalism]
{
@MODULE[Experiment]:HAS[#experiment_id[surfaceSample]]
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
}

@PART[*]:HAS[@MODULE[ModuleScienceExperiment],!MODULE[HardDrive]]:NEEDS[FeatureScience]:AFTER[zzzKerbalism]
@PART[!kerbalEVA*]:HAS[@MODULE[ModuleScienceExperiment],!MODULE[HardDrive]]:NEEDS[FeatureScience]:AFTER[zzzKerbalism]
{
MODULE
{
Expand Down
4 changes: 2 additions & 2 deletions GameData/KerbalismConfig/System/Signal.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
// add Antenna to EVA suits
// ============================================================================

@PART[kerbalEVA*]:FOR[zzzKerbalism]
@PART[kerbalEVA*]:HAS[@MODULE[ModuleTripLogger]]:FOR[zzzKerbalism]
{
%MODULE[ModuleCommand]
{
Expand All @@ -62,7 +62,7 @@
// EVA Kerbals can remote control a probe
// ============================================================================

@PART[kerbalEVA*]:FOR[Kerbalism]
@PART[kerbalEVA*]:HAS[@MODULE[ModuleTripLogger]]:FOR[Kerbalism]
{
%MODULE[ModuleProbeControlPoint]
{
Expand Down

0 comments on commit 040603d

Please sign in to comment.