protected void NotifyAdded(Thing item) { if (ThingOwnerUtility.ShouldAutoExtinguishInnerThings(this.owner) && item.HasAttachment(ThingDefOf.Fire)) { item.GetAttachment(ThingDefOf.Fire).Destroy(DestroyMode.Vanish); } if (ThingOwnerUtility.ShouldRemoveDesignationsOnAddedThings(this.owner)) { List <Map> maps = Find.Maps; for (int i = 0; i < maps.Count; i++) { maps[i].designationManager.RemoveAllDesignationsOn(item, false); } } CompTransporter compTransporter = this.owner as CompTransporter; if (compTransporter != null) { compTransporter.Notify_ThingAdded(item); } Caravan caravan = this.owner as Caravan; if (caravan != null) { caravan.Notify_PawnAdded((Pawn)item); } Pawn_ApparelTracker pawn_ApparelTracker = this.owner as Pawn_ApparelTracker; if (pawn_ApparelTracker != null) { pawn_ApparelTracker.Notify_ApparelAdded((Apparel)item); } Pawn_EquipmentTracker pawn_EquipmentTracker = this.owner as Pawn_EquipmentTracker; if (pawn_EquipmentTracker != null) { pawn_EquipmentTracker.Notify_EquipmentAdded((ThingWithComps)item); } this.NotifyColonistBarIfColonistCorpse(item); }