Пример #1
0
        private void RescuedCheck()
        {
            if (Pawn.Faction == Faction.OfPlayer)
            {
                rescued = false;
                return;
            }
            if (Pawn.Downed || Pawn.InBed())
            {
                return;
            }

            // Can walk again, make the roll
            rescued = false;

            // Copied from Pawn_GuestTracker
            if (Pawn.RaceProps.Humanlike && Pawn.HostFaction == Faction.OfPlayer && !Pawn.IsPrisoner)
            {
                if (!GuestUtility.WillRescueJoin(Pawn))
                {
                    return;
                }

                GuestUtility.ShowRescuedPawnDialog(Pawn);
            }
        }