- Extend array functionality:
array.flat_map
: Map with function that returns an array for each element.
Result will be appended.
Example[ 1, 2, 3 ].flat_map(fn(i) -> [0.1 * i, 0.01 * i]) == [ 0.1, 0.01, 0.2, 0.02, 0.3, 0.03]
array.filter_map
: Map with function that return an option for each element.
Result will only contain values where option is defined.
Examplevessel.parts.filter_map(fn(part) -> part.solar_panel)
to get an array of all
solar panels of the vessel.
- Add solar panel flow information:
base_flow_rate
(available in VAB)efficiency_multiplier
(available in VAB)star_energy_scale
max_flow
shorthand forbase_flow_rate * efficiency_multiplier * star_energy_scale
- Add
fairing.enabled
toggle - Add
deployable.extended
toggle - Add heatshield information:
heatshield.is_deployed
heatshield.is_ablating
heatshield.is_ablator_exhausted
heatshield.ablator_ratio
(0.0 - 1.0)
- Add propellant information to engine via
engine.current_propellant
andengine.propellants
- Extend
ResourceDefinition
byis_recipe
andrecipe_ingredients
- Extend
- Add
engine.thrust_limiter
property