public override void Interacted(Pawn initiator, Pawn recipient, List <RulePackDef> extraSentencePacks)
        {
            if (!recipient.IsPrisoner || !recipient.guest.PrisonerIsSecure || !PrisonBreakUtility.CanParticipateInPrisonBreak(recipient))
            {
                return;
            }
            PrisonBreakUtility.StartPrisonBreak(recipient);
            MentalState_Jailbreaker mentalState_Jailbreaker = initiator.MentalState as MentalState_Jailbreaker;

            if (mentalState_Jailbreaker != null)
            {
                mentalState_Jailbreaker.Notify_InducedPrisonerToEscape();
            }
        }
Beispiel #2
0
 public override void Interacted(Pawn initiator, Pawn recipient, List <RulePackDef> extraSentencePacks, out string letterText, out string letterLabel, out LetterDef letterDef)
 {
     if (!recipient.IsPrisoner || !recipient.guest.PrisonerIsSecure || !PrisonBreakUtility.CanParticipateInPrisonBreak(recipient))
     {
         letterText  = null;
         letterLabel = null;
         letterDef   = null;
     }
     else
     {
         PrisonBreakUtility.StartPrisonBreak(recipient, out letterText, out letterLabel, out letterDef);
         (initiator.MentalState as MentalState_Jailbreaker)?.Notify_InducedPrisonerToEscape();
     }
 }