diff --git a/Si_RepairFacility/Si_RepairFacility.cs b/Si_RepairFacility/Si_RepairFacility.cs index 012c8f0..fd52a74 100644 --- a/Si_RepairFacility/Si_RepairFacility.cs +++ b/Si_RepairFacility/Si_RepairFacility.cs @@ -36,7 +36,7 @@ You should have received a copy of the GNU General Public License using System.Collections.Generic; using System.Text; -[assembly: MelonInfo(typeof(RepairFacility), "Repair Facility", "1.1.0", "databomb", "https://github.com/data-bomb/Silica")] +[assembly: MelonInfo(typeof(RepairFacility), "Repair Facility", "1.1.1", "databomb", "https://github.com/data-bomb/Silica")] [assembly: MelonGame("Bohemia Interactive", "Silica")] [assembly: MelonOptionalDependencies("Admin Mod")] @@ -99,6 +99,11 @@ private static void Postfix(MusicJukeboxHandler __instance) float healAmount = vehicle.DamageManager.MaxHealth * (vehicle.IsFlyingType ? _Pref_Humans_Aircraft_HealRate.Value : _Pref_Humans_Vehicle_HealRate.Value); float newHealth = Mathf.Clamp(vehicle.DamageManager.Health + healAmount, 0.0f, vehicle.DamageManager.MaxHealth); vehicle.DamageManager.SetHealth(newHealth); + + if (_Pref_Repair_Notification.Value && vehicle.ControlledBy != null) + { + HelperMethods.SendChatMessageToPlayer(vehicle.ControlledBy, HelperMethods.chatPrefix, " Debug Info: Health[" + vehicle.DamageManager.Health + "] MaxHP[" + vehicle.DamageManager.MaxHealth + "] HealAmt[" + healAmount + "]"); + } } } }