forked from tomforwood/StationScience
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from Grimmas/systemheat-patch
SystemHeat patch for StationScience
- Loading branch information
Showing
1 changed file
with
79 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
// System Heat patch for MOAR Station Science | ||
// | ||
// author: Grimmas | ||
// | ||
|
||
// parts balance is also affected (only when using SystemHeat): | ||
// required cooling per part increased from 2kw to a more reasonable 200kw, so that the parts cannot be simply cooled with the smallest radiator | ||
|
||
|
||
@PART[StnSciSpectro,StnSciLab,StnSciCyclo,StnSciZoo]:NEEDS[SystemHeat]:FOR[StationScience] | ||
{ | ||
// remove core heat modules | ||
!MODULE[ModuleCoreHeat] {} | ||
!MODULE[ModuleOverheatDisplay] {} | ||
!TemperatureModifier {} | ||
|
||
// add system heat main module | ||
MODULE | ||
{ | ||
name = ModuleSystemHeat | ||
// Cubic metres | ||
volume = 5.0 | ||
moduleID = heat | ||
iconName = Icon_Gears | ||
} | ||
} | ||
|
||
// change SampleAnalyzer parts to use system heat | ||
@PART[StnSciSpectro]:NEEDS[SystemHeat]:FOR[StationScience] | ||
{ | ||
// FIXME the SampleAnalyzer / Spectrometron in StationScience does not actually generate any heat so we won't generate any here either for now | ||
!MODULE[ModuleSystemHeat] {} | ||
// @MODULE[SampleAnalyzer] | ||
// { | ||
// @GeneratesHeat = False | ||
// @AutoShutdown = False | ||
// } | ||
} | ||
// change StationScienceModule parts to use system heat | ||
@PART[StnSciLab,StnSciCyclo,StnSciZoo]:NEEDS[SystemHeat]:FOR[StationScience] | ||
{ | ||
@MODULE[StationScienceModule] | ||
{ | ||
@name = ModuleSystemHeatConverter | ||
// must be unique | ||
moduleID = converter1 | ||
// ModuleSystemHeat moduleID to link to | ||
systemHeatModuleID = heat | ||
// The shutdown temperature of the part | ||
shutdownTemperature = 354 | ||
// The temperature the system contributes to loops | ||
systemOutletTemperature = 320 | ||
// Map loop temperature to system efficiency (0-1.0) | ||
systemEfficiency | ||
{ | ||
key = 0 0.0 | ||
key = 320 1.0 | ||
key = 354 0.0 | ||
} | ||
// Heat generation (kW) | ||
systemPower = 200 | ||
!ThermalEfficiency {} | ||
!TemperatureModifier {} | ||
@GeneratesHeat = False | ||
} | ||
} | ||