Skip to content

Instantly share code, notes, and snippets.

@DeltaDizzy
Created July 29, 2020 07:20
Show Gist options
  • Save DeltaDizzy/5abd4551e2bb28d8a9d141c316103034 to your computer and use it in GitHub Desktop.
Save DeltaDizzy/5abd4551e2bb28d8a9d141c316103034 to your computer and use it in GitHub Desktop.
@PART[bluedog_BigG_Cabin]:NEEDS[SnacksStress]
{
MODULE
{
name = SnacksConverter
ConverterName = Stargazing
StartActionName = Start Stargazing
StopActionName = Stop Stargazing
AutoShutdown = false
GeneratesHeat = false
UseSpecialistBonus = false
//At least one crew needs to be in the part to run the converter.
minimumCrew = 1
//Connection back home required to receive entertainment.
requiresHomeConnection = false
//This condition is set whenever the kerbal enters the part and the converter is active, and
//when the converter is started. Since it's registered as a SKILL_LOSS_CONDITION, the kerbals will lose their
//skills while the converter is running.
conditionSummary = Stargazing
INPUT_RESOURCE
{
ResourceName = ElectricCharge
Ratio = 0.05
FlowMode = STAGE_PRIORITY_FLOW
}
//Works like an INPUT_RESOURCE except:
// It applies to individual kerbals.
// You can specify an AmountPerDay or AmountPerSecond.
ROSTER_INPUT_RESOURCE
{
ResourceName = Stress
//AmountPerDay will be translated into: AmountPerDay / seconds per homeworld day
//This will override AmountPerSecond if it is defined in the node.
AmountPerDay = 1.0
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment