-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add handling for IFS and SMURFF. - Add KPBS ISRU to opt-ins
- Loading branch information
1 parent
e325ca6
commit 1065b30
Showing
10 changed files
with
157 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@PART:HAS[#refType[LFO],@MODULE[ModuleB9PartSwitch]:HAS[#moduleID[RRStockSwitch]]]:NEEDS[SMURFF]:AFTER[RationalResourcesSquad] | ||
{ | ||
%reservedmass:NEEDS[SMURFF] = 0 | ||
%initialmass:NEEDS[SMURFF] = #$mass$ | ||
%MODULE[ModuleSMURFF]{} | ||
|
||
%resourcemass = #$refVolume$ | ||
@resourcemass *= #$@RESOURCE_DEFINITION[LiquidFuel]/density$ //In case the density changes -- it shouldn't, but why tempt fate? | ||
%resourcemass2 = #$resourcemass$ | ||
|
||
@resourcemass *= #$@SMURFFCONFIG/lfomassfactor$ | ||
@mass -= #$resourcemass$ | ||
|
||
@resourcemass2 *= #$@SMURFFCONFIG/lforeservefactor$ | ||
@reservedmass += #$resourcemass2$ | ||
-resourcemass = delete | ||
-resourcemass2 = delete | ||
} | ||
|
||
@PART:HAS[#refType[Mono],@MODULE[ModuleB9PartSwitch]:HAS[#moduleID[RRStockSwitch]]]:NEEDS[SMURFF]:AFTER[RationalResourcesSquad] | ||
{ | ||
%reservedmass:NEEDS[SMURFF] = 0 | ||
%initialmass:NEEDS[SMURFF] = #$mass$ | ||
%MODULE[ModuleSMURFF]{} | ||
|
||
%resourcemass = #$refVolume$ | ||
@resourcemass *= #$@RESOURCE_DEFINITION[MonoPropellant]/density$ //In case the density changes -- it shouldn't, but why tempt fate? | ||
%resourcemass2 = #$resourcemass$ | ||
|
||
@resourcemass *= #$@SMURFFCONFIG/monomassfactor$ | ||
@mass -= #$resourcemass$ | ||
|
||
@resourcemass2 *= #$@SMURFFCONFIG/monoreservefactor$ | ||
@reservedmass += #$resourcemass2$ | ||
-resourcemass = delete | ||
-resourcemass2 = delete | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
"VERSION": | ||
{ | ||
"MAJOR":1, | ||
"MINOR":44, | ||
"MINOR":45, | ||
"PATCH":0, | ||
"BUILD":0 | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@PART:HAS[#RROreTank[isSet],~SMURFFExclude[*rue]]:NEEDS[SMURFF]:AFTER[RationalResourcesCompanion] | ||
{ | ||
%reservedmass = 0 | ||
%initialmass = #$mass$ | ||
refType = Ore | ||
|
||
%resourcemass = #$refVolume$ | ||
@resourcemass *= #$@RESOURCE_DEFINITION[Ore]/density$ //In case the density changes -- it shouldn't, but why tempt fate? | ||
%resourcemass2 = #$resourcemass$ | ||
|
||
@resourcemass *= #$@SMURFFCONFIG/oremassfactor$ | ||
@mass -= #$resourcemass$ | ||
|
||
@resourcemass2 *= #$@SMURFFCONFIG/orereservefactor$ | ||
@reservedmass += #$resourcemass2$ | ||
-resourcemass = delete | ||
-resourcemass2 = delete | ||
|
||
%MODULE[ModuleSMURFF]{} | ||
} |