linuxgurugamer / EvaFuel

A mod for Kerbal Space Program that makes Kerbals no longer be able to have infinite EVA fuel. A continuation of Vendan's mod of the same name.
http://forum.kerbalspaceprogram.com/index.php?/topic/138474-111-105-evafuel-no-more-infinite-eva-fuel/
MIT License
3 stars 5 forks source link

EvaFuelManager.cs: #7

Closed whale2 closed 4 years ago

whale2 commented 7 years ago

This is the same patch, but against tag 1.4.3.2, in case you plan to keep builds for 1.2.

Modified EvaFuelManager.onEvaStart to look up KerbalEVA.propellantResourceDefaultAmount and apply changes proportionally I.e. if that amount is equal to 5 (default value as per https://kerbalspaceprogram.com/api/class_kerbal_e_v_a.html#a7ce0916b13d2c62ac0e130a8aec2a33c), then full value of EvaTankFuelMax as configured in CustomSettings will be requested, or if this amount is 2, then only 2/5 * EvaTankFuelMax will be requested.