protected virtual Rectangle ThreatLocation() { int BiggestValue = 0; Vector2 BiggestKey = Vector2.Zero; foreach (KeyValuePair <Vector2, int> I in Me.CurrentSuspicions) { if (I.Value > BiggestValue) { BiggestValue = I.Value; BiggestKey = I.Key; } } int RoomIndex = RectMethod.FindWhatRoomLocationIsIn(BiggestKey, map, out bool IsInPassage); if (RoomIndex == Me.CurrentRoomIn) { return(RectMethod.AddABorder(Me.ImmediatelyAhead, 1)); } else { return(CalculateCurrentRoomIn(BiggestKey)); } }