Skip to content

Commit

Permalink
Enforce body restriction for crewed experiments (#2437)
Browse files Browse the repository at this point in the history
Added `BodyAllowed = HomeBody` for experiments with `celestialBodies = Earth`, and added `BodyAllowed = HomeBodyAndMoons` for experiments with `celestialBodies = Earth;Moon`. Also trimmed the whitespace.
  • Loading branch information
TwistedGiraffe authored Sep 28, 2024
1 parent 20994ab commit d379a5e
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ EXPERIMENT_DEFINITION
{
// sample mass in tons. if undefined or 0, the experiment produce a file
SampleMass = 0
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
IncludeExperiment =
}
}
Expand Down Expand Up @@ -87,8 +87,8 @@ EXPERIMENT_DEFINITION
{
// sample mass in tons. if undefined or 0, the experiment produce a file
SampleMass = 0
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
IncludeExperiment =
}
}
Expand Down Expand Up @@ -138,8 +138,8 @@ EXPERIMENT_DEFINITION
{
// sample mass in tons. if undefined or 0, the experiment produce a file
SampleMass = 0
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
IncludeExperiment =
}
}
Expand Down Expand Up @@ -189,8 +189,8 @@ EXPERIMENT_DEFINITION
{
// sample mass in tons. if undefined or 0, the experiment produce a file
SampleMass = 0.002
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
IncludeExperiment =
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ EXPERIMENT_DEFINITION
{
// sample mass in tons. if undefined or 0, the experiment produce a file
SampleMass = 0
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBodyAndMoons
IncludeExperiment =
}
}
Expand Down Expand Up @@ -86,6 +88,8 @@ EXPERIMENT_DEFINITION
{
// sample mass in tons. if undefined or 0, the experiment produce a file
SampleMass = 0
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
IncludeExperiment =
}
}
Expand Down Expand Up @@ -135,6 +139,8 @@ EXPERIMENT_DEFINITION
{
// sample mass in tons. if undefined or 0, the experiment produce a file
SampleMass = 0
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
IncludeExperiment =
}
}
Expand Down Expand Up @@ -184,6 +190,8 @@ EXPERIMENT_DEFINITION
{
// sample mass in tons. if undefined or 0, the experiment produce a file
SampleMass = 0.0001
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
IncludeExperiment =
}
}
Expand All @@ -195,7 +203,7 @@ EXPERIMENT_DEFINITION
experiment_id = RP0TerrainPhotography
ec_rate = 0
data_rate = 50
@data_rate /= 129600 // 3 days
@data_rate /= 129600 // 1.5 days
%sample_amount = 1
@sample_amount /= 3
requires = CrewMin:2
Expand Down Expand Up @@ -235,6 +243,8 @@ EXPERIMENT_DEFINITION
{
// sample mass in tons. if undefined or 0, the experiment produce a file
SampleMass = 0.0001
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
IncludeExperiment =
}
}
Expand All @@ -246,7 +256,7 @@ EXPERIMENT_DEFINITION
experiment_id = RP0WeatherPhotography
ec_rate = 0
data_rate = 50
@data_rate /= 129600 // 3 days
@data_rate /= 129600 // 1.5 days
%sample_amount = 1
@sample_amount /= 3
requires = CrewMin:2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ EXPERIMENT_DEFINITION
{
// sample mass in tons. if undefined or 0, the experiment produce a file
SampleMass = 0
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
IncludeExperiment =
}
}
Expand Down Expand Up @@ -87,6 +87,8 @@ EXPERIMENT_DEFINITION
{
// sample mass in tons. if undefined or 0, the experiment produce a file
SampleMass = 0
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBodyAndMoons
IncludeExperiment =
}
}
Expand Down Expand Up @@ -136,6 +138,8 @@ EXPERIMENT_DEFINITION
{
// sample mass in tons. if undefined or 0, the experiment produce a file
SampleMass = 0
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBodyAndMoons
IncludeExperiment =
}
}
Expand Down Expand Up @@ -185,8 +189,8 @@ EXPERIMENT_DEFINITION
{
// sample mass in tons. if undefined or 0, the experiment produce a file
SampleMass = 0
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
IncludeExperiment =
}
}
Expand Down Expand Up @@ -236,8 +240,8 @@ EXPERIMENT_DEFINITION
{
// sample mass in tons. if undefined or 0, the experiment produce a file
SampleMass = 0.0005
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
IncludeExperiment =
}
}
Expand Down Expand Up @@ -288,6 +292,8 @@ EXPERIMENT_DEFINITION
{
// sample mass in tons. if undefined or 0, the experiment produce a file
SampleMass = 0.0005
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBodyAndMoons
IncludeExperiment =
}
}
Expand Down Expand Up @@ -338,8 +344,8 @@ EXPERIMENT_DEFINITION
{
// sample mass in tons. if undefined or 0, the experiment produce a file
SampleMass = 0
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
IncludeExperiment =
}
}
Expand Down Expand Up @@ -389,8 +395,8 @@ EXPERIMENT_DEFINITION
{
// sample mass in tons. if undefined or 0, the experiment produce a file
SampleMass = 0
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
IncludeExperiment =
}
}
Expand Down Expand Up @@ -440,8 +446,8 @@ EXPERIMENT_DEFINITION
{
// sample mass in tons. if undefined or 0, the experiment produce a file
SampleMass = 0
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
IncludeExperiment =
}
}
Expand Down Expand Up @@ -491,6 +497,8 @@ EXPERIMENT_DEFINITION
{
// sample mass in tons. if undefined or 0, the experiment produce a file
SampleMass = 0
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBodyAndMoons
IncludeExperiment =
}
}
Expand Down Expand Up @@ -540,8 +548,8 @@ EXPERIMENT_DEFINITION
{
// sample mass in tons. if undefined or 0, the experiment produce a file
SampleMass = 0.004
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
IncludeExperiment =
}
}
Expand Down Expand Up @@ -592,8 +600,8 @@ EXPERIMENT_DEFINITION
{
// sample mass in tons. if undefined or 0, the experiment produce a file
SampleMass = 0
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
// Body restrictions, multiple lines allowed (just don't use confictiong combinations).
BodyAllowed = HomeBody
IncludeExperiment =
}
}
Expand Down
Loading

0 comments on commit d379a5e

Please sign in to comment.