-
Notifications
You must be signed in to change notification settings - Fork 14
SnacksPartResource
When a part with crew capacity is loaded in the editor and it lacks this resource, or when a vessel is loaded into the scene and its parts with crew capacity lack this resource, add it to the part. Doesn’t apply to kerbals going on EVA. Use SNACKS_EVA_RESOURCE for that. Use the SNACKS_PART_RESOURCE to define resources to add.
Name of the resource
Amount to add
Max amount possible
Parts with at least one of the modules on this list affect the part's capacity to store the resource (their equipment takes up additional space, for instance).
If a part has at least one part module on the capacityAffectingModules list then multiply resource amount and max amount by this multiplier. Default is 1.0
If true (which is the default), then amount and maxAmount added are multiplied by the part's crew capacity.
Loads the SNACKS_PART_RESOURCE config nodes, if any, and returns SnacksPartResource objects.
A list of SnacksPartResource objects.
If the part with crew capacity doesn't have the resource, then add it.
part:
If the loaded vessel's parts with crew capacity don't have the resource, then load it.
vessel: