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

◆ DrawWhip()

void Terraria.Main.DrawWhip ( Projectile proj)
inlineprivate

Definition at line 46527 of file Main.cs.

46528 {
46529 //IL_001f: Unknown result type (might be due to invalid IL or missing references)
46530 //IL_0024: Unknown result type (might be due to invalid IL or missing references)
46531 //IL_0027: Unknown result type (might be due to invalid IL or missing references)
46532 //IL_003a: Unknown result type (might be due to invalid IL or missing references)
46533 //IL_003f: Unknown result type (might be due to invalid IL or missing references)
46534 //IL_008a: Unknown result type (might be due to invalid IL or missing references)
46535 //IL_008f: Unknown result type (might be due to invalid IL or missing references)
46536 //IL_00a3: Unknown result type (might be due to invalid IL or missing references)
46537 //IL_00a8: Unknown result type (might be due to invalid IL or missing references)
46538 //IL_0093: Unknown result type (might be due to invalid IL or missing references)
46539 //IL_0098: Unknown result type (might be due to invalid IL or missing references)
46540 //IL_009a: Unknown result type (might be due to invalid IL or missing references)
46541 //IL_009f: Unknown result type (might be due to invalid IL or missing references)
46542 //IL_00d9: Unknown result type (might be due to invalid IL or missing references)
46543 //IL_00de: Unknown result type (might be due to invalid IL or missing references)
46544 //IL_00ac: Unknown result type (might be due to invalid IL or missing references)
46545 //IL_00b1: Unknown result type (might be due to invalid IL or missing references)
46546 //IL_00b5: Unknown result type (might be due to invalid IL or missing references)
46547 //IL_00ba: Unknown result type (might be due to invalid IL or missing references)
46548 //IL_00be: Unknown result type (might be due to invalid IL or missing references)
46549 //IL_00c3: Unknown result type (might be due to invalid IL or missing references)
46550 //IL_00c7: Unknown result type (might be due to invalid IL or missing references)
46551 //IL_00cc: Unknown result type (might be due to invalid IL or missing references)
46552 //IL_00d0: Unknown result type (might be due to invalid IL or missing references)
46553 //IL_00d5: Unknown result type (might be due to invalid IL or missing references)
46554 //IL_00eb: Unknown result type (might be due to invalid IL or missing references)
46555 //IL_00f0: Unknown result type (might be due to invalid IL or missing references)
46556 //IL_00f7: Unknown result type (might be due to invalid IL or missing references)
46557 //IL_00fc: Unknown result type (might be due to invalid IL or missing references)
46558 //IL_00fe: Unknown result type (might be due to invalid IL or missing references)
46559 //IL_0103: Unknown result type (might be due to invalid IL or missing references)
46560 //IL_0105: Unknown result type (might be due to invalid IL or missing references)
46561 //IL_0114: Unknown result type (might be due to invalid IL or missing references)
46562 //IL_0116: Unknown result type (might be due to invalid IL or missing references)
46563 //IL_011b: Unknown result type (might be due to invalid IL or missing references)
46564 //IL_011d: Unknown result type (might be due to invalid IL or missing references)
46565 //IL_0122: Unknown result type (might be due to invalid IL or missing references)
46566 //IL_0138: Unknown result type (might be due to invalid IL or missing references)
46567 //IL_014b: Unknown result type (might be due to invalid IL or missing references)
46568 //IL_014d: Unknown result type (might be due to invalid IL or missing references)
46569 //IL_0152: Unknown result type (might be due to invalid IL or missing references)
46570 //IL_0157: Unknown result type (might be due to invalid IL or missing references)
46571 //IL_015d: Unknown result type (might be due to invalid IL or missing references)
46572 //IL_0161: Unknown result type (might be due to invalid IL or missing references)
46573 //IL_0162: Unknown result type (might be due to invalid IL or missing references)
46574 //IL_016f: Unknown result type (might be due to invalid IL or missing references)
46575 //IL_0171: Unknown result type (might be due to invalid IL or missing references)
46576 //IL_0173: Unknown result type (might be due to invalid IL or missing references)
46577 //IL_0178: Unknown result type (might be due to invalid IL or missing references)
46578 //IL_0214: Unknown result type (might be due to invalid IL or missing references)
46579 //IL_0219: Unknown result type (might be due to invalid IL or missing references)
46580 //IL_021e: Unknown result type (might be due to invalid IL or missing references)
46581 //IL_0223: Unknown result type (might be due to invalid IL or missing references)
46582 //IL_0228: Unknown result type (might be due to invalid IL or missing references)
46583 //IL_022d: Unknown result type (might be due to invalid IL or missing references)
46584 //IL_0232: Unknown result type (might be due to invalid IL or missing references)
46585 //IL_0237: Unknown result type (might be due to invalid IL or missing references)
46586 //IL_01f6: Unknown result type (might be due to invalid IL or missing references)
46587 //IL_01fb: Unknown result type (might be due to invalid IL or missing references)
46588 //IL_023c: Unknown result type (might be due to invalid IL or missing references)
46589 //IL_0241: Unknown result type (might be due to invalid IL or missing references)
46590 //IL_01ec: Unknown result type (might be due to invalid IL or missing references)
46591 //IL_01f1: Unknown result type (might be due to invalid IL or missing references)
46592 //IL_0200: Unknown result type (might be due to invalid IL or missing references)
46593 //IL_0205: Unknown result type (might be due to invalid IL or missing references)
46594 //IL_020a: Unknown result type (might be due to invalid IL or missing references)
46595 //IL_020f: Unknown result type (might be due to invalid IL or missing references)
46596 List<Vector2> list = new List<Vector2>();
46597 Projectile.FillWhipControlPoints(proj, list);
46598 Texture2D value = TextureAssets.FishingLine.Value;
46599 Rectangle value2 = value.Frame();
46600 Vector2 origin = default(Vector2);
46601 ((Vector2)(ref origin))._002Ector((float)(value2.Width / 2), 2f);
46602 Color originalColor = Color.White;
46603 switch (proj.type)
46604 {
46605 case 847:
46606 originalColor = Color.OrangeRed;
46607 break;
46608 case 849:
46609 originalColor = Color.SlateBlue;
46610 originalColor = Color.Black;
46611 break;
46612 case 848:
46613 originalColor = Color.DarkBlue;
46614 break;
46615 case 912:
46616 originalColor = Color.LightBlue;
46617 break;
46618 case 913:
46619 originalColor = Color.Firebrick;
46620 break;
46621 case 914:
46622 originalColor = Color.ForestGreen;
46623 break;
46624 case 915:
46625 originalColor = Color.White;
46626 break;
46627 case 952:
46628 originalColor = Color.Tan;
46629 break;
46630 }
46631 Vector2 vector = list[0];
46632 Vector2 scale = default(Vector2);
46633 for (int i = 0; i < list.Count - 1; i++)
46634 {
46635 Vector2 vector2 = list[i];
46636 Vector2 vector3 = list[i + 1] - vector2;
46637 float rotation = vector3.ToRotation() - (float)Math.PI / 2f;
46638 Color color = Lighting.GetColor(vector2.ToTileCoordinates(), originalColor);
46639 ((Vector2)(ref scale))._002Ector(1f, (((Vector2)(ref vector3)).Length() + 2f) / (float)value2.Height);
46640 spriteBatch.Draw(value, vector - screenPosition, (Rectangle?)value2, color, rotation, origin, scale, (SpriteEffects)0, 0f);
46641 vector += vector3;
46642 }
46643 switch (proj.type)
46644 {
46645 case 847:
46647 break;
46648 case 841:
46650 break;
46651 case 848:
46652 vector = DrawWhip_WhipMace(proj, list);
46653 break;
46654 case 849:
46656 break;
46657 case 912:
46658 vector = DrawWhip_CoolWhip(proj, list);
46659 break;
46660 case 913:
46661 vector = DrawWhip_FireWhip(proj, list);
46662 break;
46663 case 914:
46665 break;
46666 case 915:
46668 break;
46669 case 952:
46670 vector = DrawWhip_BoneWhip(proj, list);
46671 break;
46672 }
46673 }
static Asset< Texture2D > FishingLine
static Vector2 DrawWhip_WhipScythe(Projectile proj, List< Vector2 > controlPoints)
Definition Main.cs:47278
static Vector2 DrawWhip_WhipBland(Projectile proj, List< Vector2 > controlPoints)
Definition Main.cs:47376
static Vector2 DrawWhip_ThornWhip(Projectile proj, List< Vector2 > controlPoints)
Definition Main.cs:47023
static Vector2 DrawWhip_FireWhip(Projectile proj, List< Vector2 > controlPoints)
Definition Main.cs:46830
static SpriteBatch spriteBatch
Definition Main.cs:1043
static Vector2 DrawWhip_RainbowWhip(Projectile proj, List< Vector2 > controlPoints)
Definition Main.cs:46915
static Vector2 DrawWhip_BoneWhip(Projectile proj, List< Vector2 > controlPoints)
Definition Main.cs:46675
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 Vector2 DrawWhip_CoolWhip(Projectile proj, List< Vector2 > controlPoints)
Definition Main.cs:46745
static Vector2 DrawWhip_WhipMace(Projectile proj, List< Vector2 > controlPoints)
Definition Main.cs:47180
static Vector2 DrawWhip_WhipSword(Projectile proj, List< Vector2 > controlPoints)
Definition Main.cs:47096

References Terraria.Main.DrawWhip_BoneWhip(), Terraria.Main.DrawWhip_CoolWhip(), Terraria.Main.DrawWhip_FireWhip(), Terraria.Main.DrawWhip_RainbowWhip(), Terraria.Main.DrawWhip_ThornWhip(), Terraria.Main.DrawWhip_WhipBland(), Terraria.Main.DrawWhip_WhipMace(), Terraria.Main.DrawWhip_WhipScythe(), Terraria.Main.DrawWhip_WhipSword(), Terraria.Projectile.FillWhipControlPoints(), Terraria.GameContent.TextureAssets.FishingLine, Terraria.Lighting.GetColor(), 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: