// Original public method ColonistBar.ColonistOrCorpseAt()
        private static Thing ColonistOrCorpseAt(Vector2 pos)
        {
            if (!ColonistBarUtility.ShouldBeVisible())
            {
                return(null);
            }
            ColonistBar.Entry entry;
            if (!ColonistBarUtility.TryGetEntryAt(pos, out entry))
            {
                return(null);
            }
            Pawn  pawn = entry.pawn;
            Thing result;

            if (pawn != null && pawn.Dead && pawn.Corpse != null && pawn.Corpse.SpawnedOrAnyParentSpawned)
            {
                result = pawn.Corpse;
            }
            else
            {
                result = pawn;
            }
            return(result);
        }
 private static bool Prefix(ref bool __result, Vector2 pos, ref ColonistBar.Entry entry)
 {
     __result = ColonistBarUtility.TryGetEntryAt(pos, out entry);
     return(false);
 }