diff --git a/1.6/1.6/Assemblies/ArachnaeSwarm.dll b/1.6/1.6/Assemblies/ArachnaeSwarm.dll index b568830..ee17215 100644 Binary files a/1.6/1.6/Assemblies/ArachnaeSwarm.dll and b/1.6/1.6/Assemblies/ArachnaeSwarm.dll differ diff --git a/Source/ArachnaeSwarm/PowerArmor/ARA_PowerArmor.cs b/Source/ArachnaeSwarm/PowerArmor/ARA_PowerArmor.cs index aa9d8c7..5061875 100644 --- a/Source/ArachnaeSwarm/PowerArmor/ARA_PowerArmor.cs +++ b/Source/ArachnaeSwarm/PowerArmor/ARA_PowerArmor.cs @@ -178,18 +178,20 @@ namespace ArachnaeSwarm { currentPowerArmorWeapon.DeSpawn(); } + string destroyedWeaponLabel = currentPowerArmorWeapon.Label; currentPowerArmorWeapon.Destroy(); - Log.Message($"[PA_Debug] Notify_Unequipped: Destroyed power armor weapon {currentPowerArmorWeapon.Label}."); + Log.Message($"[PA_Debug] Notify_Unequipped: Destroyed power armor weapon {destroyedWeaponLabel}."); currentPowerArmorWeapon = null; } // Restore original weapon if saved if (originalWeapon != null && pawn?.equipment != null) { + string originalWeaponLabel = originalWeapon.Label; pawn.equipment.MakeRoomFor(originalWeapon); pawn.equipment.AddEquipment(originalWeapon); + Log.Message($"[PA_Debug] Notify_Unequipped: Restored original weapon {originalWeaponLabel}."); originalWeapon = null; - Log.Message($"[PA_Debug] Notify_Unequipped: Restored original weapon {originalWeapon.Label}."); } }