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: #6

Closed whale2 closed 7 years ago

whale2 commented 7 years ago

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.

ModuleKISItemEvaPropellantProxy.cs: Altered call to PopupDialog.SpawnPopupDialog() to include dialog name as per https://kerbalspaceprogram.com/api/class_popup_dialog.html