52346 {
52349 {
52350 return;
52351 }
52352 float num = 0f;
52357 byte b =
byte.MaxValue;
52360 float num7 = Lighting.OffScreenTiles;
52361 float num8 = Lighting.OffScreenTiles;
52371 {
52373 {
52375 {
52377 {
52381 }
52383 {
52385 }
52386 }
52387 }
52388 }
52389 num = 200f;
52396 bool flag = false;
52408 {
52410 }
52412 {
52414 }
52416 {
52417 transformMatrix *= matrix;
52419 }
52421 {
52425 {
52426 flag = true;
52427 }
52428 }
52430 {
52432 {
52434 {
52437 }
52438 else
52439 {
52448 }
52449 }
52453 {
52455 }
52457 {
52459 }
52463 {
52464 mapFullscreenPos.X =
num7;
52465 }
52467 {
52468 mapFullscreenPos.X =
num9;
52469 }
52471 {
52472 mapFullscreenPos.Y =
num8;
52473 }
52475 {
52476 mapFullscreenPos.Y =
num10;
52477 }
52481 {
52485 mapFullscreenPos.X =
num24;
52486 mapFullscreenPos.Y =
num25;
52487 }
52501 {
52509 if ((
double)
num26 < 1.2)
52510 {
52512 }
52513 }
52515 {
52523 if ((
double)
num26 < 1.2)
52524 {
52526 }
52527 }
52529 {
52537 if ((
double)
num26 < 1.2)
52538 {
52540 }
52541 }
52543 {
52551 }
52554 flag = true;
52559 {
52562 {
52564 }
52567 }
52569 {
52572 flag = false;
52573 }
52574 }
52576 {
52588 {
52590 }
52592 {
52594 }
52596 {
52598 }
52600 {
52602 }
52621 }
52623 {
52626 {
52628 }
52630 {
52632 }
52634 {
52636 }
52638 {
52640 }
52653 }
52655 {
52657 {
52659 }
52661 {
52663 }
52664 }
52668 {
52670 }
52672 {
52674 }
52676 {
52678 }
52680 {
52682 }
52687 for (
int k = 0;
k <= 4;
k++)
52688 {
52690 {
52691 continue;
52692 }
52693 for (
int l = 0;
l <=
num6;
l++)
52694 {
52696 {
52697 float num43 = num + (float)(
int)((float)
k *
num39);
52704 {
52707 }
52708 else
52709 {
52711 }
52713 {
52716 }
52717 else
52718 {
52720 }
52727 {
52729 }
52731 {
52733 }
52737 {
52739 spriteBatch.Draw(
mapTarget[
k,
l],
new Vector2(
num43,
num44),
value,
new Microsoft.
Xna.
Framework.
Color(
b,
b,
b,
b), 0f,
default(
Vector2),
num5,
SpriteEffects.None, 0f);
52740 }
52742 }
52744 {
52746 }
52747 }
52748 }
52749 if (flag)
52750 {
52753 }
52755 {
52757 {
52758 float num53 = (
num5 * 0.2f * 2f + 1f) / 3f;
52760 {
52762 }
52769 {
52771 try
52772 {
52774 }
52776 {
52777 TimeLogger.DrawException(e);
52778 }
52780 }
52782 try
52783 {
52784 for (
int m = 0;
m < 200;
m++)
52785 {
52786 if (
npc[
m].active &&
npc[
m].townNPC)
52787 {
52790 {
52792 if (
npc[
m].direction > 0)
52793 {
52795 }
52803 }
52804 }
52805 if (!
npc[
m].active ||
npc[
m].GetBossHeadTextureIndex() == -1)
52806 {
52807 continue;
52808 }
52813 {
52818 {
52822 }
52825 }
52834 }
52835 }
52837 {
52838 TimeLogger.DrawException(
e2);
52839 }
52842 for (
int n = 0;
n < 255;
n++)
52843 {
52845 {
52857 }
52858 }
52861 }
52863 {
52864 float num62 = (
num5 * 0.25f * 2f + 1f) / 3f;
52866 {
52868 }
52869 MapIcons.Draw(
new Vector2(
num13,
num14),
new Vector2(
num3 +
num11,
num4 +
num12),
new Microsoft.
Xna.
Framework.
Rectangle(
miniMapX,
miniMapY,
miniMapWidth,
miniMapHeight),
num5,
num62,
ref text);
52870 revengeMarker =
NPC.RevengeManager.DrawMapIcons(
spriteBatch,
new Vector2(
num13,
num14),
new Vector2(
num3 +
num11,
num4 +
num12),
new Microsoft.
Xna.
Framework.
Rectangle(
miniMapX,
miniMapY,
miniMapWidth,
miniMapHeight),
num5,
num62,
ref text);
52871 DrawMiscMapIcons(
spriteBatch,
new Vector2(
num13,
num14),
new Vector2(
num3 +
num11,
num4 +
num12),
new Microsoft.
Xna.
Framework.
Rectangle(
miniMapX,
miniMapY,
miniMapWidth,
miniMapHeight),
num5,
num62,
ref text);
52875 {
52877 {
52880 {
52883 {
52885 }
52894 {
52900 {
52902 }
52904 }
52905 }
52906 }
52908 {
52909 continue;
52910 }
52915 {
52920 {
52924 }
52927 }
52937 {
52943 {
52945 }
52947 }
52948 }
52952 {
52954 {
52955 continue;
52956 }
52967 {
52971 {
52977 {
52979 }
52980 }
52981 }
52983 {
52984 continue;
52985 }
52994 {
52995 spriteBatch.Draw(
TextureAssets.
MapDeath.Value,
new Vector2(
num79,
num80),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
MapDeath.Width(),
TextureAssets.
MapDeath.Height()),
Microsoft.
Xna.
Framework.
Color.
White, 0f,
new Vector2((
float)
TextureAssets.
MapDeath.Width() * 0.5f, (float)
TextureAssets.
MapDeath.Height() * 0.5f),
num62,
SpriteEffects.None, 0f);
53003 {
53005 }
53006 }
53007 }
53014 {
53017 }
53018 else
53019 {
53021 }
53022 }
53023 }
53025 {
53028 bool flag2 =
false;
53030 {
53032 }
53034 {
53036 }
53038 {
53040 }
53042 {
53044 }
53046 {
53059 {
53062 {
53065 if (
tile.frameX % 36 != 0)
53066 {
53068 }
53069 if (
tile.frameY % 36 != 0)
53070 {
53072 }
53074 }
53075 }
53077 {
53080 {
53083 if (
tile2.frameX % 36 != 0)
53084 {
53086 }
53087 if (
tile2.frameY % 36 != 0)
53088 {
53090 }
53092 }
53093 }
53095 {
53098 {
53101 if (
tile3.frameX % 36 != 0)
53102 {
53104 }
53105 if (
tile3.frameY % 36 != 0)
53106 {
53108 }
53109 text = chestType[tile3.frameX / 36].
Value;
53110 }
53111 }
53113 {
53116 {
53119 if (
tile4.frameX % 36 != 0)
53120 {
53122 }
53123 if (
tile4.frameY % 36 != 0)
53124 {
53126 }
53127 text = chestType2[tile4.frameX / 36].
Value;
53128 }
53129 }
53131 {
53134 {
53136 int x =
num89 - tile5.frameX % 54 / 18;
53137 if (
tile5.frameY % 36 != 0)
53138 {
53140 }
53143 }
53144 }
53145 else
53146 {
53147 text = Lang.GetMapObjectName(
type);
53148 }
53149 }
53150 float num109 = (
num5 * 0.25f * 2f + 1f) / 3f;
53152 {
53154 }
53162 {
53164 {
53167 {
53170 {
53172 }
53184 {
53186 }
53188 }
53189 }
53191 {
53192 continue;
53193 }
53198 {
53203 {
53207 }
53210 }
53224 {
53226 }
53227 }
53228 bool flag3 =
false;
53232 {
53234 {
53236 }
53237 }
53239 {
53242 }
53244 {
53250 }
53252 {
53254 {
53255 continue;
53256 }
53271 {
53272 continue;
53273 }
53277 {
53278 continue;
53279 }
53282 {
53285 {
53287 }
53293 {
53298 }
53299 }
53300 }
53304 {
53306 }
53313 {
53315 }
53319 {
53324 {
53327 }
53328 }
53329 spriteBatch.Draw(
TextureAssets.
MapIcon[
num135].Value,
new Vector2(
num133,
num134),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
MapIcon[
num135].Width(),
TextureAssets.
MapIcon[
num135].Height()),
new Microsoft.
Xna.
Framework.
Color(
num136,
num136,
num136,
num136), 0f,
default(
Vector2), 1f,
SpriteEffects.None, 0f);
53331 }
53334 float t = 3f;
53337 {
53339 }
53342 try
53343 {
53345 {
53347 }
53349 {
53351 }
53353 {
53355 }
53356 }
53358 {
53359 TimeLogger.DrawException(
e3);
53360 }
53363 TimeLogger.DetailedDrawTime(9);
53364 }
static readonly BlendState AlphaBlend
static readonly DepthStencilState None
static readonly RasterizerState CullCounterClockwise
static readonly SamplerState PointClamp
static readonly SamplerState LinearClamp
static void PlaySound(int type, Vector2 position, int style=1)
static Asset< Texture2D > Map
static Asset< Texture2D >[] NpcHeadBoss
static Asset< Texture2D >[] MapIcon
static Asset< Texture2D >[] NpcHead
static Asset< Texture2D > MapDeath
static int GetHeadIndexSafe(NPC npc)
static CaptureManager Instance
static string GetTextValue(string key)
static bool showFrameRate
static float mapFullscreenScale
static void TriggerPing(Vector2 position)
static void DrawNPCHeadBoss(Entity theNPC, byte alpha, float headScale, float rotation, SpriteEffects effects, int bossHeadId, float x, float y)
static bool[,] mapWasContentLost
static string DrawMap_FindChestName(LocalizedText[] chestNames, Tile chestTile, int x, int y, int fullTileWidth=36)
static void DrawMapFullscreenBackground(Vector2 screenPosition, int screenWidth, int screenHeight)
RenderTarget2D[,] mapTarget
static SpriteBatch spriteBatch
void DrawMiscMapIcons(SpriteBatch spriteBatch, Vector2 mapTopLeft, Vector2 mapX2Y2AndOff, Microsoft.Xna.Framework.Rectangle? mapRect, float mapScale, float drawScale, ref string mouseTextString)
static bool cancelWormHole
static Vector2 DrawThickCursor(bool smart=false)
static float mapOverlayScale
static bool mouseLeftRelease
static int _minimapTopRightAnchorOffsetTowardsBottom
static float mapMinimapAlpha
static Vector2 screenPosition
static void DrawCursor(Vector2 bonus, bool smart=false)
static Vector2 MouseScreen
static Matrix UIScaleMatrix
static Microsoft.Xna.Framework.Color OurFavoriteColor
static SpriteViewMatrix GameViewMatrix
static bool DrawPlayerDeathMarker(float X, float Y, float scale, float left, float top, float headScale, int i)
static float inventoryScale
static Vector2 _lastPingMousePosition
static SamplerState SamplerStateForCursor
static float mapMinimapScale
static void DrawNPCHeadFriendly(Entity theNPC, byte alpha, float headScale, SpriteEffects dir, int townHeadId, float x, float y)
static Vector2 mapFullscreenPos
static int textureMaxHeight
static int textureMaxWidth
static MapHeadRenderer MapPlayerRenderer
static Microsoft.Xna.Framework.Color GetPlayerHeadBordersColor(Player plr)
static void UpdateMinimapAnchors()
static float mapOverlayAlpha
static double _lastPingMouseDownTime
static MinimapFrameManager MinimapFrameManagerInstance
static bool mapFullscreen
static MapIconOverlay MapIcons
void MouseText(string cursorText, int rare=0, byte diff=0, int hackedMouseX=-1, int hackedMouseY=-1, int hackedScreenWidth=-1, int hackedScreenHeight=-1, int pushWidthX=0)
static int _minimapTopRightAnchorOffsetTowardsLeft
static int[] tileOptionCounts
static ushort[] tileLookup
static Matrix CreateScale(float xScale, float yScale, float zScale)
static float Distance(Vector2 value1, Vector2 value2)