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

◆ DrawProj_TerraBlade2()

void Terraria.Main.DrawProj_TerraBlade2 ( Projectile proj)
inlineprivate

Definition at line 32962 of file Main.cs.

32963 {
32964 //IL_0001: Unknown result type (might be due to invalid IL or missing references)
32965 //IL_0006: Unknown result type (might be due to invalid IL or missing references)
32966 //IL_000b: Unknown result type (might be due to invalid IL or missing references)
32967 //IL_0010: Unknown result type (might be due to invalid IL or missing references)
32968 //IL_0025: Unknown result type (might be due to invalid IL or missing references)
32969 //IL_002a: Unknown result type (might be due to invalid IL or missing references)
32970 //IL_002b: Unknown result type (might be due to invalid IL or missing references)
32971 //IL_002c: Unknown result type (might be due to invalid IL or missing references)
32972 //IL_0036: Unknown result type (might be due to invalid IL or missing references)
32973 //IL_003b: Unknown result type (might be due to invalid IL or missing references)
32974 //IL_005d: Unknown result type (might be due to invalid IL or missing references)
32975 //IL_00b5: Unknown result type (might be due to invalid IL or missing references)
32976 //IL_00ba: Unknown result type (might be due to invalid IL or missing references)
32977 //IL_00bf: Unknown result type (might be due to invalid IL or missing references)
32978 //IL_00c4: Unknown result type (might be due to invalid IL or missing references)
32979 //IL_00c8: Unknown result type (might be due to invalid IL or missing references)
32980 //IL_00cd: Unknown result type (might be due to invalid IL or missing references)
32981 //IL_0131: Unknown result type (might be due to invalid IL or missing references)
32982 //IL_0132: Unknown result type (might be due to invalid IL or missing references)
32983 //IL_0138: Unknown result type (might be due to invalid IL or missing references)
32984 //IL_013c: Unknown result type (might be due to invalid IL or missing references)
32985 //IL_0143: Unknown result type (might be due to invalid IL or missing references)
32986 //IL_016c: Unknown result type (might be due to invalid IL or missing references)
32987 //IL_0175: Unknown result type (might be due to invalid IL or missing references)
32988 //IL_01a4: Unknown result type (might be due to invalid IL or missing references)
32989 //IL_01ab: Unknown result type (might be due to invalid IL or missing references)
32990 //IL_01b5: Unknown result type (might be due to invalid IL or missing references)
32991 //IL_01ba: Unknown result type (might be due to invalid IL or missing references)
32992 //IL_01d5: Unknown result type (might be due to invalid IL or missing references)
32993 //IL_01d9: Unknown result type (might be due to invalid IL or missing references)
32994 //IL_01e3: Unknown result type (might be due to invalid IL or missing references)
32995 //IL_01e8: Unknown result type (might be due to invalid IL or missing references)
32996 //IL_0227: Unknown result type (might be due to invalid IL or missing references)
32997 //IL_0228: Unknown result type (might be due to invalid IL or missing references)
32998 //IL_022e: Unknown result type (might be due to invalid IL or missing references)
32999 //IL_0235: Unknown result type (might be due to invalid IL or missing references)
33000 //IL_024f: Unknown result type (might be due to invalid IL or missing references)
33001 //IL_0252: Unknown result type (might be due to invalid IL or missing references)
33002 //IL_0269: Unknown result type (might be due to invalid IL or missing references)
33003 //IL_026a: Unknown result type (might be due to invalid IL or missing references)
33004 //IL_0270: Unknown result type (might be due to invalid IL or missing references)
33005 //IL_0274: Unknown result type (might be due to invalid IL or missing references)
33006 //IL_027b: Unknown result type (might be due to invalid IL or missing references)
33007 //IL_0285: Unknown result type (might be due to invalid IL or missing references)
33008 //IL_0290: Unknown result type (might be due to invalid IL or missing references)
33009 //IL_0293: Unknown result type (might be due to invalid IL or missing references)
33010 //IL_02aa: Unknown result type (might be due to invalid IL or missing references)
33011 //IL_02ab: Unknown result type (might be due to invalid IL or missing references)
33012 //IL_02b1: Unknown result type (might be due to invalid IL or missing references)
33013 //IL_02b5: Unknown result type (might be due to invalid IL or missing references)
33014 //IL_02bc: Unknown result type (might be due to invalid IL or missing references)
33015 //IL_02c6: Unknown result type (might be due to invalid IL or missing references)
33016 //IL_02d1: Unknown result type (might be due to invalid IL or missing references)
33017 //IL_02d7: Unknown result type (might be due to invalid IL or missing references)
33018 //IL_02ee: Unknown result type (might be due to invalid IL or missing references)
33019 //IL_02f6: Unknown result type (might be due to invalid IL or missing references)
33020 //IL_0300: Unknown result type (might be due to invalid IL or missing references)
33021 //IL_030a: Unknown result type (might be due to invalid IL or missing references)
33022 //IL_0311: Unknown result type (might be due to invalid IL or missing references)
33023 //IL_032b: Unknown result type (might be due to invalid IL or missing references)
33024 //IL_032e: Unknown result type (might be due to invalid IL or missing references)
33025 //IL_0345: Unknown result type (might be due to invalid IL or missing references)
33026 //IL_034d: Unknown result type (might be due to invalid IL or missing references)
33027 //IL_0357: Unknown result type (might be due to invalid IL or missing references)
33028 //IL_0361: Unknown result type (might be due to invalid IL or missing references)
33029 //IL_0368: Unknown result type (might be due to invalid IL or missing references)
33030 //IL_0382: Unknown result type (might be due to invalid IL or missing references)
33031 //IL_038b: Unknown result type (might be due to invalid IL or missing references)
33032 //IL_03a2: Unknown result type (might be due to invalid IL or missing references)
33033 //IL_03aa: Unknown result type (might be due to invalid IL or missing references)
33034 //IL_03b4: Unknown result type (might be due to invalid IL or missing references)
33035 //IL_03be: Unknown result type (might be due to invalid IL or missing references)
33036 //IL_03c5: Unknown result type (might be due to invalid IL or missing references)
33037 //IL_03df: Unknown result type (might be due to invalid IL or missing references)
33038 //IL_03e8: Unknown result type (might be due to invalid IL or missing references)
33039 //IL_044c: Unknown result type (might be due to invalid IL or missing references)
33040 //IL_044f: Unknown result type (might be due to invalid IL or missing references)
33041 //IL_0467: Unknown result type (might be due to invalid IL or missing references)
33042 //IL_046e: Unknown result type (might be due to invalid IL or missing references)
33043 //IL_0473: Unknown result type (might be due to invalid IL or missing references)
33044 //IL_0478: Unknown result type (might be due to invalid IL or missing references)
33045 //IL_048b: Unknown result type (might be due to invalid IL or missing references)
33046 //IL_049d: Unknown result type (might be due to invalid IL or missing references)
33047 //IL_04a4: Unknown result type (might be due to invalid IL or missing references)
33048 //IL_04ab: Unknown result type (might be due to invalid IL or missing references)
33049 //IL_04b0: Unknown result type (might be due to invalid IL or missing references)
33050 //IL_04eb: Unknown result type (might be due to invalid IL or missing references)
33051 //IL_04f2: Unknown result type (might be due to invalid IL or missing references)
33052 //IL_04f7: Unknown result type (might be due to invalid IL or missing references)
33053 //IL_04fe: Unknown result type (might be due to invalid IL or missing references)
33054 //IL_051e: Unknown result type (might be due to invalid IL or missing references)
33055 //IL_054b: Unknown result type (might be due to invalid IL or missing references)
33056 //IL_0563: Unknown result type (might be due to invalid IL or missing references)
33057 //IL_056a: Unknown result type (might be due to invalid IL or missing references)
33058 //IL_056f: Unknown result type (might be due to invalid IL or missing references)
33059 //IL_0574: Unknown result type (might be due to invalid IL or missing references)
33060 //IL_057d: Unknown result type (might be due to invalid IL or missing references)
33061 //IL_058f: Unknown result type (might be due to invalid IL or missing references)
33062 //IL_0596: Unknown result type (might be due to invalid IL or missing references)
33063 //IL_05a0: Unknown result type (might be due to invalid IL or missing references)
33064 //IL_05a5: Unknown result type (might be due to invalid IL or missing references)
33065 //IL_05e3: Unknown result type (might be due to invalid IL or missing references)
33066 //IL_05ea: Unknown result type (might be due to invalid IL or missing references)
33067 //IL_05ef: Unknown result type (might be due to invalid IL or missing references)
33068 //IL_05f6: Unknown result type (might be due to invalid IL or missing references)
33069 //IL_0600: Unknown result type (might be due to invalid IL or missing references)
33070 Vector2 vector = proj.Center - screenPosition;
33072 Rectangle rectangle = asset.Frame(1, 4);
33073 Vector2 origin = rectangle.Size() / 2f;
33074 float num = proj.scale * 1.1f;
33075 SpriteEffects effects = (SpriteEffects)((!(proj.ai[0] >= 0f)) ? 2 : 0);
33076 float num2 = proj.localAI[0] / proj.ai[1];
33077 float num3 = Utils.Remap(num2, 0f, 0.6f, 0f, 1f) * Utils.Remap(num2, 0.6f, 1f, 1f, 0f);
33078 float num4 = 0.975f;
33079 Color color6 = Lighting.GetColor(proj.Center.ToTileCoordinates());
33080 Vector3 val = ((Color)(ref color6)).ToVector3();
33081 float num5 = ((Vector3)(ref val)).Length() / (float)Math.Sqrt(3.0);
33082 num5 = 0.5f + num5 * 0.5f;
33083 num5 = Utils.Remap(num5, 0.2f, 1f, 0f, 1f);
33084 Color color = default(Color);
33085 ((Color)(ref color))._002Ector(45, 124, 205);
33086 spriteBatch.Draw(asset.Value, vector, (Rectangle?)rectangle, color * num5 * num3, proj.rotation + proj.ai[0] * ((float)Math.PI / 4f) * -1f * (1f - num2), origin, num * 0.95f, effects, 0f);
33087 Color color2 = default(Color);
33088 ((Color)(ref color2))._002Ector(181, 230, 29);
33089 Color color3 = default(Color);
33090 ((Color)(ref color3))._002Ector(34, 177, 76);
33091 Color color4 = Color.White * num3 * 0.5f;
33092 ((Color)(ref color4)).A = (byte)((float)(int)((Color)(ref color4)).A * (1f - num5));
33093 Color color5 = color4 * num5 * 0.5f;
33094 ((Color)(ref color5)).G = (byte)((float)(int)((Color)(ref color5)).G * num5);
33095 ((Color)(ref color5)).B = (byte)((float)(int)((Color)(ref color5)).R * (0.25f + num5 * 0.75f));
33096 spriteBatch.Draw(asset.Value, vector, (Rectangle?)rectangle, color5 * 0.15f, proj.rotation + proj.ai[0] * 0.01f, origin, num, effects, 0f);
33097 spriteBatch.Draw(asset.Value, vector, (Rectangle?)rectangle, color3 * num5 * num3 * 0.3f, proj.rotation, origin, num, effects, 0f);
33098 spriteBatch.Draw(asset.Value, vector, (Rectangle?)rectangle, color2 * num5 * num3 * 0.5f, proj.rotation, origin, num * num4, effects, 0f);
33099 spriteBatch.Draw(asset.Value, vector, (Rectangle?)asset.Frame(1, 4, 0, 3), Color.White * 0.6f * num3, proj.rotation + proj.ai[0] * 0.01f, origin, num, effects, 0f);
33100 spriteBatch.Draw(asset.Value, vector, (Rectangle?)asset.Frame(1, 4, 0, 3), Color.White * 0.5f * num3, proj.rotation + proj.ai[0] * -0.05f, origin, num * 0.8f, effects, 0f);
33101 spriteBatch.Draw(asset.Value, vector, (Rectangle?)asset.Frame(1, 4, 0, 3), Color.White * 0.4f * num3, proj.rotation + proj.ai[0] * -0.1f, origin, num * 0.6f, effects, 0f);
33102 for (float num6 = 0f; num6 < 12f; num6 += 1f)
33103 {
33104 float num7 = proj.rotation + proj.ai[0] * (num6 - 2f) * ((float)Math.PI * -2f) * 0.025f + Utils.Remap(num2, 0f, 1f, 0f, (float)Math.PI / 4f) * proj.ai[0];
33105 Vector2 drawpos = vector + num7.ToRotationVector2() * ((float)asset.Width() * 0.5f - 6f) * num;
33106 float num8 = num6 / 12f;
33107 DrawPrettyStarSparkle(proj.Opacity, (SpriteEffects)0, drawpos, new Color(255, 255, 255, 0) * num3 * num8, color3, num2, 0f, 0.5f, 0.5f, 1f, num7, new Vector2(0f, Utils.Remap(num2, 0f, 1f, 3f, 0f)) * num, Vector2.One * num);
33108 }
33109 Vector2 drawpos2 = vector + (proj.rotation + Utils.Remap(num2, 0f, 1f, 0f, (float)Math.PI / 4f) * proj.ai[0]).ToRotationVector2() * ((float)asset.Width() * 0.5f - 4f) * num;
33110 DrawPrettyStarSparkle(proj.Opacity, (SpriteEffects)0, drawpos2, new Color(255, 255, 255, 0) * num3 * 0.5f, color3, num2, 0f, 0.5f, 0.5f, 1f, 0f, new Vector2(2f, Utils.Remap(num2, 0f, 1f, 4f, 1f)) * num, Vector2.One * num * 1.5f);
33111 }
static Asset< Texture2D >[] Projectile
static SpriteBatch spriteBatch
Definition Main.cs:1043
static Vector2 screenPosition
The position of the top left corner of the screen in world coordinates. Modify in M:Terraria....
Definition Main.cs:1864
static void DrawPrettyStarSparkle(float opacity, SpriteEffects dir, Vector2 drawpos, Color drawColor, Color shineColor, float flareCounter, float fadeInStart, float fadeInEnd, float fadeOutStart, float fadeOutEnd, float rotation, Vector2 scale, Vector2 fatness)
Definition Main.cs:45246

References Terraria.Graphics.Light.Color, Terraria.Main.DrawPrettyStarSparkle(), Terraria.Lighting.GetColor(), Terraria.GameContent.TextureAssets.Projectile, Terraria.Utils.Remap(), Terraria.Main.screenPosition, and Terraria.Main.spriteBatch.

Referenced by Terraria.Main.DrawProj_DrawSpecialProjs().

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