TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ HaveDryadDoStardewAnimation()

static void Terraria.NPC.HaveDryadDoStardewAnimation ( )
inlinestatic

Definition at line 13959 of file NPC.cs.

13960 {
13961 //IL_007e: Unknown result type (might be due to invalid IL or missing references)
13962 //IL_008d: Unknown result type (might be due to invalid IL or missing references)
13963 //IL_0092: Unknown result type (might be due to invalid IL or missing references)
13964 //IL_0097: Unknown result type (might be due to invalid IL or missing references)
13965 //IL_0098: Unknown result type (might be due to invalid IL or missing references)
13966 //IL_0099: Unknown result type (might be due to invalid IL or missing references)
13967 //IL_009e: Unknown result type (might be due to invalid IL or missing references)
13968 //IL_00a1: Unknown result type (might be due to invalid IL or missing references)
13969 //IL_00be: Unknown result type (might be due to invalid IL or missing references)
13970 //IL_00ca: Unknown result type (might be due to invalid IL or missing references)
13971 //IL_00d8: Unknown result type (might be due to invalid IL or missing references)
13972 //IL_00e7: Unknown result type (might be due to invalid IL or missing references)
13973 //IL_0140: Unknown result type (might be due to invalid IL or missing references)
13974 //IL_014b: Unknown result type (might be due to invalid IL or missing references)
13975 //IL_0150: Unknown result type (might be due to invalid IL or missing references)
13976 //IL_0163: Unknown result type (might be due to invalid IL or missing references)
13977 //IL_0165: Unknown result type (might be due to invalid IL or missing references)
13978 //IL_0167: Unknown result type (might be due to invalid IL or missing references)
13979 //IL_016c: Unknown result type (might be due to invalid IL or missing references)
13980 //IL_0156: Unknown result type (might be due to invalid IL or missing references)
13981 //IL_0157: Unknown result type (might be due to invalid IL or missing references)
13982 Vector2 vector2 = default(Vector2);
13983 for (int i = 0; i < 200; i++)
13984 {
13985 NPC nPC = Main.npc[i];
13986 if (!nPC.active || nPC.type != 20)
13987 {
13988 continue;
13989 }
13990 nPC.localAI[2] = 480f;
13991 nPC.ai[0] = 24f;
13992 nPC.ai[1] = 480f;
13993 nPC.ai[2] = 0f;
13994 nPC.localAI[3] = 0f;
13995 nPC.netUpdate = true;
13996 nPC.direction = 1;
13997 nPC.spriteDirection = 1;
13998 Vector2 vector = nPC.Bottom + new Vector2(100f, 0f);
13999 Point p = vector.ToTileCoordinates();
14000 p.Y = Utils.Clamp(p.Y - 10, 10, Main.maxTilesY - 10);
14001 int y = p.Y;
14002 int num = 15;
14003 int num2 = p.Y + num;
14004 bool flag = false;
14005 for (int j = p.Y; j < num2; j++)
14006 {
14007 Tile tile = Main.tile[p.X, j];
14008 p.Y = j;
14009 if (tile.active() && Main.tileSolid[tile.type])
14010 {
14011 if (j == y)
14012 {
14013 flag = true;
14014 }
14015 break;
14016 }
14017 }
14018 ((Vector2)(ref vector2))._002Ector(0f, -52f);
14019 Vector2 vector3 = p.ToWorldCoordinates(8f, 0f);
14020 if (flag)
14021 {
14022 vector3 = vector;
14023 }
14024 Projectile.NewProjectile(new EntitySource_DebugCommand("DryadStardewAnimation"), vector3 + vector2, Vector2.Zero, 995, 0, 0f, Main.myPlayer);
14025 break;
14026 }
14027 }

References Terraria.Tile.active(), Terraria.Main.maxTilesY, Terraria.Main.myPlayer, Terraria.Projectile.NewProjectile(), Terraria.Main.npc, Terraria.Main.tile, Terraria.Main.tileSolid, and Terraria.Tile.type.

Referenced by Terraria.MessageBuffer.GetData(), and Terraria.Main.GUIChatDrawInner().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: