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

◆ DrawMurderAurora()

void Terraria.Main.DrawMurderAurora ( Projectile proj)
inlineprivate

Definition at line 46466 of file Main.cs.

46467 {
46468 //IL_0013: Unknown result type (might be due to invalid IL or missing references)
46469 //IL_001d: Unknown result type (might be due to invalid IL or missing references)
46470 //IL_0022: Unknown result type (might be due to invalid IL or missing references)
46471 //IL_0036: Unknown result type (might be due to invalid IL or missing references)
46472 //IL_003b: Unknown result type (might be due to invalid IL or missing references)
46473 //IL_0040: Unknown result type (might be due to invalid IL or missing references)
46474 //IL_0045: Unknown result type (might be due to invalid IL or missing references)
46475 //IL_0252: Unknown result type (might be due to invalid IL or missing references)
46476 //IL_0259: Unknown result type (might be due to invalid IL or missing references)
46477 //IL_0260: Unknown result type (might be due to invalid IL or missing references)
46478 //IL_0265: Unknown result type (might be due to invalid IL or missing references)
46479 //IL_0298: Unknown result type (might be due to invalid IL or missing references)
46480 //IL_02a3: Unknown result type (might be due to invalid IL or missing references)
46481 //IL_02a8: Unknown result type (might be due to invalid IL or missing references)
46482 //IL_02b7: Unknown result type (might be due to invalid IL or missing references)
46483 //IL_02bb: Unknown result type (might be due to invalid IL or missing references)
46484 //IL_02c6: Unknown result type (might be due to invalid IL or missing references)
46485 //IL_02cb: Unknown result type (might be due to invalid IL or missing references)
46486 //IL_02cd: Unknown result type (might be due to invalid IL or missing references)
46487 Texture2D value = TextureAssets.Projectile[proj.type].Value;
46488 Vector2 origin = value.Size() / 2f;
46489 float num = GlobalTimeWrappedHourly % 10f / 10f;
46490 Vector2 vector = proj.Center - screenPosition;
46491 float[] array = new float[15];
46492 float[] array2 = new float[15];
46493 float[] array3 = new float[15];
46494 float[] array4 = new float[15];
46495 float[] array5 = new float[15];
46496 float num2 = 0.5f;
46497 int num3 = 210;
46498 num2 = Utils.GetLerpValue(0f, 60f, proj.timeLeft, clamped: true) * Utils.GetLerpValue(num3, num3 - 60, proj.timeLeft, clamped: true);
46499 float amount = Utils.GetLerpValue(0f, 60f, proj.timeLeft, clamped: true) * Utils.GetLerpValue(num3, 90f, proj.timeLeft, clamped: true);
46500 amount = MathHelper.Lerp(0.2f, 0.5f, amount);
46501 float num9 = 800f / (float)value.Width;
46502 float num4 = num9 * 0.8f;
46503 float num5 = (num9 - num4) / 15f;
46504 float num6 = 30f;
46505 float num7 = 300f;
46506 Vector2 vector2 = default(Vector2);
46507 ((Vector2)(ref vector2))._002Ector(3f, 6f);
46508 for (int i = 0; i < 15; i++)
46509 {
46510 _ = (float)(i + 1) / 50f;
46511 float num8 = (float)Math.Sin(num * ((float)Math.PI * 2f) + (float)Math.PI / 2f + (float)i / 2f);
46512 array[i] = num8 * (num7 - (float)i * 3f);
46513 array2[i] = (float)Math.Sin(num * ((float)Math.PI * 2f) * 2f + (float)Math.PI / 3f + (float)i) * num6;
46514 array2[i] -= (float)i * 3f;
46515 array3[i] = (float)i / 15f * 2f + num;
46516 array3[i] = (num8 * 0.5f + 0.5f) * 0.6f + num;
46517 array4[i] = (float)(1.0 - Math.Pow(1f * (float)i / 15f, 2.0));
46518 array5[i] = num4 + (float)(i + 1) * num5;
46519 array5[i] *= 0.3f;
46520 Color color = hslToRgb(array3[i] % 1f, 1f, 0.5f) * num2 * amount;
46521 ((Color)(ref color)).A = (byte)(((Color)(ref color)).A / 4);
46522 float rotation = (float)Math.PI / 2f + num8 * ((float)Math.PI / 4f) * -0.3f + (float)Math.PI * (float)i;
46523 EntitySpriteDraw(value, vector + new Vector2(array[i], array2[i]), null, color, rotation, origin, new Vector2(array5[i], array5[i]) * vector2, (SpriteEffects)0);
46524 }
46525 }
static Asset< Texture2D >[] Projectile
static Color hslToRgb(Vector3 hslVector)
Definition Main.cs:61847
static void EntitySpriteDraw(Texture2D texture, Vector2 position, Rectangle? sourceRectangle, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float worthless=0f)
Definition Main.cs:48883
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 float GlobalTimeWrappedHourly
Definition Main.cs:433

References Terraria.Graphics.Light.Color, Terraria.Main.EntitySpriteDraw(), Terraria.Utils.GetLerpValue(), Terraria.Main.GlobalTimeWrappedHourly, Terraria.Main.hslToRgb(), Terraria.GameContent.TextureAssets.Projectile, and Terraria.Main.screenPosition.

Referenced by Terraria.Main.DrawProj_DrawSpecialProjs().

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