-
Notifications
You must be signed in to change notification settings - Fork 14
SnacksEVAResource
When a kerbal goes on EVA, take this resource along and remove a corresponding amount from the vessel. Use the SNACKS_EVA_RESOURCE to define the resource to add.
Name of the resource
Amount to add
Max amount possible
The EVA resource that defines how many Snacks the kerbal gets. We track this so that we can update its amount and max amount based on game settings.
Loads the SNACKS_EVA_RESOURCE config nodes, if any, and returns SnacksEVAResource objects.
A list of SnacksEVAResource objects.
Handles the crew boarded event. The resource is removed from the kerbal and added to the vessel.
evaKerbal: The kerbal that is returning from EVA
boardedPart: The part that the kerbal boarded
Handles the crew eva event. The kerbal gains the EVA resource and the vessel loses a corresponding amount.
evaKerbal: The kerbal that went on EVA
partExited: The part that the kerbal exited
If the loaded vessel's parts with crew capacity don't have the resource
vessel: