From 945b9f15cb09c348182e756849c9b0566aded9f1 Mon Sep 17 00:00:00 2001 From: MaxDorob Date: Tue, 3 Dec 2024 00:42:33 +0600 Subject: [PATCH] Another cleanup --- .../Comps/CompCIWSImpactHandler_Skyfaller.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Source/CombatExtended/CombatExtended/Comps/CompCIWSImpactHandler_Skyfaller.cs b/Source/CombatExtended/CombatExtended/Comps/CompCIWSImpactHandler_Skyfaller.cs index 18a6d66f1b..d7fd56f364 100644 --- a/Source/CombatExtended/CombatExtended/Comps/CompCIWSImpactHandler_Skyfaller.cs +++ b/Source/CombatExtended/CombatExtended/Comps/CompCIWSImpactHandler_Skyfaller.cs @@ -80,15 +80,12 @@ private Thing TryDropThing(Thing thingToDrop, Map map, IntVec3 position) { dropedThing = GenSpawn.Spawn(thingToDrop, position, map, contents.spawnWipeMode.Value); } - if (dropedThing is Pawn pawn) + if (dropedThing is Pawn pawn && pawn.RaceProps.Humanlike) { - if (pawn.RaceProps.Humanlike) + TaleRecorder.RecordTale(TaleDefOf.LandedInPod, new object[] { - TaleRecorder.RecordTale(TaleDefOf.LandedInPod, new object[] - { - pawn - }); - } + pawn + }); } return dropedThing; }