public void StartSocialFight(Pawn otherPawn) { if (PawnUtility.ShouldSendNotificationAbout(this.pawn) || PawnUtility.ShouldSendNotificationAbout(otherPawn)) { Messages.Message("MessageSocialFight".Translate(new object[] { this.pawn.LabelShort, otherPawn.LabelShort }), this.pawn, MessageTypeDefOf.ThreatSmall, true); } MentalStateHandler arg_76_0 = this.pawn.mindState.mentalStateHandler; MentalStateDef socialFighting = MentalStateDefOf.SocialFighting; arg_76_0.TryStartMentalState(socialFighting, null, false, false, otherPawn, false); MentalStateHandler arg_9A_0 = otherPawn.mindState.mentalStateHandler; socialFighting = MentalStateDefOf.SocialFighting; Pawn otherPawn2 = this.pawn; arg_9A_0.TryStartMentalState(socialFighting, null, false, false, otherPawn2, false); TaleRecorder.RecordTale(TaleDefOf.SocialFight, new object[] { this.pawn, otherPawn }); }
public void StartSocialFight(Pawn otherPawn) { if (PawnUtility.ShouldSendNotificationAbout(this.pawn) || PawnUtility.ShouldSendNotificationAbout(otherPawn)) { Thought thought = default(Thought); if (!InteractionUtility.TryGetRandomSocialFightProvokingThought(this.pawn, otherPawn, out thought)) { Log.Warning("Pawn " + this.pawn + " started a social fight with " + otherPawn + ", but he has no negative opinion thoughts towards " + otherPawn + "."); } else { Messages.Message("MessageSocialFight".Translate(this.pawn.LabelShort, otherPawn.LabelShort, thought.LabelCapSocial), this.pawn, MessageTypeDefOf.ThreatSmall); } } MentalStateHandler mentalStateHandler = this.pawn.mindState.mentalStateHandler; MentalStateDef socialFighting = MentalStateDefOf.SocialFighting; mentalStateHandler.TryStartMentalState(socialFighting, null, false, false, otherPawn); MentalStateHandler mentalStateHandler2 = otherPawn.mindState.mentalStateHandler; socialFighting = MentalStateDefOf.SocialFighting; Pawn otherPawn2 = this.pawn; mentalStateHandler2.TryStartMentalState(socialFighting, null, false, false, otherPawn2); TaleRecorder.RecordTale(TaleDefOf.SocialFight, this.pawn, otherPawn); }
private static void StartReligiousSocialFight(Pawn talker, Pawn talkee) { Messages.Message("MessageReligiousSocialFight".Translate(new object[] { talker.LabelShort, talkee.LabelShort, }), talker, MessageSound.SeriousAlert); talker.mindState.mentalStateHandler.TryStartMentalState(MentalStateDefOf.SocialFighting, null, false, false, talkee); MentalStateHandler handlerTalkee = talkee.mindState.mentalStateHandler; Pawn otherPawn2 = talker; handlerTalkee.TryStartMentalState(MentalStateDefOf.SocialFighting, null, false, false, otherPawn2); }
// Token: 0x06000056 RID: 86 RVA: 0x00003870 File Offset: 0x00001A70 private void startFightingState(Fighter f) { f.p.mindState.enemyTarget = this.getOtherFighter(f).p; f.p.jobs.StopAll(false); f.p.mindState.mentalStateHandler.Reset(); MentalStateHandler mentalStateHandler = f.p.mindState.mentalStateHandler; MentalStateDef ArenaFighting = MentalStateDefOfArena.Fighter; Pawn pawn = f.p; MentalStateDef stateDef = ArenaFighting; Pawn otherPawn = this.getOtherFighter(f).p; mentalStateHandler.TryStartMentalState(stateDef, "", false, false, null, true); MentalState_Fighter mentalState = f.p.MentalState as MentalState_Fighter; mentalState.otherPawn = this.getOtherFighter(f).p; mentalState.bellRef = this; }
public void StartSocialFight(Pawn otherPawn) { if (PawnUtility.ShouldSendNotificationAbout(pawn) || PawnUtility.ShouldSendNotificationAbout(otherPawn)) { Messages.Message("MessageSocialFight".Translate(pawn.LabelShort, otherPawn.LabelShort, pawn.Named("PAWN1"), otherPawn.Named("PAWN2")), pawn, MessageTypeDefOf.ThreatSmall); } MentalStateHandler mentalStateHandler = pawn.mindState.mentalStateHandler; MentalStateDef socialFighting = MentalStateDefOf.SocialFighting; mentalStateHandler.TryStartMentalState(socialFighting, null, forceWake: false, causedByMood: false, otherPawn); MentalStateHandler mentalStateHandler2 = otherPawn.mindState.mentalStateHandler; socialFighting = MentalStateDefOf.SocialFighting; Pawn otherPawn2 = pawn; mentalStateHandler2.TryStartMentalState(socialFighting, null, forceWake: false, causedByMood: false, otherPawn2); TaleRecorder.RecordTale(TaleDefOf.SocialFight, pawn, otherPawn); }
public void StartSocialFight(Pawn otherPawn) { if (PawnUtility.ShouldSendNotificationAbout(this.pawn) || PawnUtility.ShouldSendNotificationAbout(otherPawn)) { Thought thought; if (!InteractionUtility.TryGetRandomSocialFightProvokingThought(this.pawn, otherPawn, out thought)) { Log.Warning(string.Concat(new object[] { "Pawn ", this.pawn, " started a social fight with ", otherPawn, ", but he has no negative opinion thoughts towards ", otherPawn, "." })); } else { Messages.Message("MessageSocialFight".Translate(new object[] { this.pawn.LabelShort, otherPawn.LabelShort, thought.LabelCapSocial }), this.pawn, MessageTypeDefOf.ThreatSmall); } } MentalStateHandler arg_D6_0 = this.pawn.mindState.mentalStateHandler; MentalStateDef socialFighting = MentalStateDefOf.SocialFighting; arg_D6_0.TryStartMentalState(socialFighting, null, false, false, otherPawn); MentalStateHandler arg_F9_0 = otherPawn.mindState.mentalStateHandler; socialFighting = MentalStateDefOf.SocialFighting; Pawn otherPawn2 = this.pawn; arg_F9_0.TryStartMentalState(socialFighting, null, false, false, otherPawn2); TaleRecorder.RecordTale(TaleDefOf.SocialFight, new object[] { this.pawn, otherPawn }); }