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

◆ Yoraiz0rEye()

void Terraria.Player.Yoraiz0rEye ( )
inline

Definition at line 10448 of file Player.cs.

10449 {
10450 //IL_0025: Unknown result type (might be due to invalid IL or missing references)
10451 //IL_002a: Unknown result type (might be due to invalid IL or missing references)
10452 //IL_002b: Unknown result type (might be due to invalid IL or missing references)
10453 //IL_002d: Unknown result type (might be due to invalid IL or missing references)
10454 //IL_0032: Unknown result type (might be due to invalid IL or missing references)
10455 //IL_0037: Unknown result type (might be due to invalid IL or missing references)
10456 //IL_004a: Unknown result type (might be due to invalid IL or missing references)
10457 //IL_004f: Unknown result type (might be due to invalid IL or missing references)
10458 //IL_0050: Unknown result type (might be due to invalid IL or missing references)
10459 //IL_0056: Unknown result type (might be due to invalid IL or missing references)
10460 //IL_005c: Unknown result type (might be due to invalid IL or missing references)
10461 //IL_0061: Unknown result type (might be due to invalid IL or missing references)
10462 //IL_0066: Unknown result type (might be due to invalid IL or missing references)
10463 //IL_006b: Unknown result type (might be due to invalid IL or missing references)
10464 //IL_007c: Unknown result type (might be due to invalid IL or missing references)
10465 //IL_007d: Unknown result type (might be due to invalid IL or missing references)
10466 //IL_0085: Unknown result type (might be due to invalid IL or missing references)
10467 //IL_008a: Unknown result type (might be due to invalid IL or missing references)
10468 //IL_008f: Unknown result type (might be due to invalid IL or missing references)
10469 //IL_0094: Unknown result type (might be due to invalid IL or missing references)
10470 //IL_014d: Unknown result type (might be due to invalid IL or missing references)
10471 //IL_0152: Unknown result type (might be due to invalid IL or missing references)
10472 //IL_015d: Unknown result type (might be due to invalid IL or missing references)
10473 //IL_0162: Unknown result type (might be due to invalid IL or missing references)
10474 //IL_0167: Unknown result type (might be due to invalid IL or missing references)
10475 //IL_0168: Unknown result type (might be due to invalid IL or missing references)
10476 //IL_016d: Unknown result type (might be due to invalid IL or missing references)
10477 //IL_018a: Unknown result type (might be due to invalid IL or missing references)
10478 //IL_018f: Unknown result type (might be due to invalid IL or missing references)
10479 //IL_0190: Unknown result type (might be due to invalid IL or missing references)
10480 //IL_0195: Unknown result type (might be due to invalid IL or missing references)
10481 //IL_0197: Unknown result type (might be due to invalid IL or missing references)
10482 //IL_019c: Unknown result type (might be due to invalid IL or missing references)
10483 //IL_02ad: Unknown result type (might be due to invalid IL or missing references)
10484 //IL_02b2: Unknown result type (might be due to invalid IL or missing references)
10485 //IL_02b4: Unknown result type (might be due to invalid IL or missing references)
10486 //IL_02b9: Unknown result type (might be due to invalid IL or missing references)
10487 //IL_02bb: Unknown result type (might be due to invalid IL or missing references)
10488 //IL_02c0: Unknown result type (might be due to invalid IL or missing references)
10489 //IL_02c3: Unknown result type (might be due to invalid IL or missing references)
10490 //IL_02c8: Unknown result type (might be due to invalid IL or missing references)
10491 //IL_02ca: Unknown result type (might be due to invalid IL or missing references)
10492 //IL_02cf: Unknown result type (might be due to invalid IL or missing references)
10493 //IL_02d1: Unknown result type (might be due to invalid IL or missing references)
10494 //IL_02d6: Unknown result type (might be due to invalid IL or missing references)
10495 //IL_0279: Unknown result type (might be due to invalid IL or missing references)
10496 //IL_0283: Unknown result type (might be due to invalid IL or missing references)
10497 //IL_0288: Unknown result type (might be due to invalid IL or missing references)
10498 //IL_028d: Unknown result type (might be due to invalid IL or missing references)
10499 //IL_028f: Unknown result type (might be due to invalid IL or missing references)
10500 //IL_0299: Unknown result type (might be due to invalid IL or missing references)
10501 //IL_029e: Unknown result type (might be due to invalid IL or missing references)
10502 //IL_02a3: Unknown result type (might be due to invalid IL or missing references)
10503 //IL_0217: Unknown result type (might be due to invalid IL or missing references)
10504 //IL_0225: Unknown result type (might be due to invalid IL or missing references)
10505 //IL_022b: Unknown result type (might be due to invalid IL or missing references)
10506 //IL_022d: Unknown result type (might be due to invalid IL or missing references)
10507 //IL_0232: Unknown result type (might be due to invalid IL or missing references)
10508 //IL_0243: Unknown result type (might be due to invalid IL or missing references)
10509 //IL_0265: Unknown result type (might be due to invalid IL or missing references)
10510 //IL_026a: Unknown result type (might be due to invalid IL or missing references)
10511 //IL_042a: Unknown result type (might be due to invalid IL or missing references)
10512 //IL_042c: Unknown result type (might be due to invalid IL or missing references)
10513 //IL_043a: Unknown result type (might be due to invalid IL or missing references)
10514 //IL_043c: Unknown result type (might be due to invalid IL or missing references)
10515 //IL_0379: Unknown result type (might be due to invalid IL or missing references)
10516 //IL_037e: Unknown result type (might be due to invalid IL or missing references)
10517 //IL_0397: Unknown result type (might be due to invalid IL or missing references)
10518 //IL_039c: Unknown result type (might be due to invalid IL or missing references)
10519 //IL_03a0: Unknown result type (might be due to invalid IL or missing references)
10520 //IL_03aa: Unknown result type (might be due to invalid IL or missing references)
10521 //IL_03b1: Unknown result type (might be due to invalid IL or missing references)
10522 //IL_03b6: Unknown result type (might be due to invalid IL or missing references)
10523 //IL_03bc: Unknown result type (might be due to invalid IL or missing references)
10524 //IL_03c1: Unknown result type (might be due to invalid IL or missing references)
10525 //IL_0408: Unknown result type (might be due to invalid IL or missing references)
10526 //IL_040e: Unknown result type (might be due to invalid IL or missing references)
10527 //IL_03ce: Unknown result type (might be due to invalid IL or missing references)
10528 //IL_03d4: Unknown result type (might be due to invalid IL or missing references)
10529 //IL_03da: Unknown result type (might be due to invalid IL or missing references)
10530 //IL_03e4: Unknown result type (might be due to invalid IL or missing references)
10531 //IL_03e9: Unknown result type (might be due to invalid IL or missing references)
10532 //IL_0468: Unknown result type (might be due to invalid IL or missing references)
10533 //IL_0481: Unknown result type (might be due to invalid IL or missing references)
10534 //IL_0487: Unknown result type (might be due to invalid IL or missing references)
10535 //IL_0495: Unknown result type (might be due to invalid IL or missing references)
10536 //IL_0497: Unknown result type (might be due to invalid IL or missing references)
10537 //IL_049f: Unknown result type (might be due to invalid IL or missing references)
10538 //IL_04a4: Unknown result type (might be due to invalid IL or missing references)
10539 //IL_04b1: Unknown result type (might be due to invalid IL or missing references)
10540 //IL_04b6: Unknown result type (might be due to invalid IL or missing references)
10541 int num = 0;
10542 num += bodyFrame.Y / 56;
10543 if (num >= Main.OffsetsPlayerHeadgear.Length)
10544 {
10545 num = 0;
10546 }
10547 Vector2 vector = Main.OffsetsPlayerHeadgear[num];
10548 vector *= Directions;
10549 Vector2 vector2 = new Vector2((float)(width / 2), (float)(height / 2)) + vector + (MountedCenter - base.Center);
10551 vector2 += posOffset + new Vector2(0f, seatAdjustment);
10552 if (face == 19)
10553 {
10554 vector2.Y -= 5f * gravDir;
10555 }
10556 if (head == 276)
10557 {
10558 vector2.X += 2.5f * (float)direction;
10559 }
10560 if (mount.Active && mount.Type == 52)
10561 {
10562 vector2.X += 14f * (float)direction;
10563 vector2.Y -= 2f * gravDir;
10564 }
10565 float y = -11.5f * gravDir;
10566 Vector2 vector3 = new Vector2((float)(3 * direction - ((direction == 1) ? 1 : 0)), y) + Vector2.UnitY * gfxOffY + vector2;
10567 Vector2 vector4 = new Vector2((float)(3 * shadowDirection[1] - ((direction == 1) ? 1 : 0)), y) + vector2;
10568 Vector2 vector5 = Vector2.Zero;
10569 if (mount.Active && mount.Cart)
10570 {
10571 int num2 = Math.Sign(velocity.X);
10572 if (num2 == 0)
10573 {
10574 num2 = direction;
10575 }
10576 vector5 = Utils.RotatedBy(new Vector2(MathHelper.Lerp(0f, -8f, fullRotation / ((float)Math.PI / 4f)), MathHelper.Lerp(0f, 2f, Math.Abs(fullRotation / ((float)Math.PI / 4f)))), fullRotation);
10577 if (num2 == Math.Sign(fullRotation))
10578 {
10579 vector5 *= MathHelper.Lerp(1f, 0.6f, Math.Abs(fullRotation / ((float)Math.PI / 4f)));
10580 }
10581 }
10582 if (fullRotation != 0f)
10583 {
10586 }
10587 float num3 = 0f;
10588 Vector2 vector6 = position + vector3 + vector5;
10589 Vector2 vector7 = oldPosition + vector4 + vector5;
10590 vector7.Y -= num3 / 2f;
10591 vector6.Y -= num3 / 2f;
10592 float num4 = 1f;
10593 switch (yoraiz0rEye % 10)
10594 {
10595 case 1:
10596 return;
10597 case 2:
10598 num4 = 0.5f;
10599 break;
10600 case 3:
10601 num4 = 0.625f;
10602 break;
10603 case 4:
10604 num4 = 0.75f;
10605 break;
10606 case 5:
10607 num4 = 0.875f;
10608 break;
10609 case 6:
10610 num4 = 1f;
10611 break;
10612 case 7:
10613 num4 = 1.1f;
10614 break;
10615 }
10616 Color newColor;
10617 if (yoraiz0rEye < 7)
10618 {
10619 newColor = Main.hslToRgb(Main.rgbToHsl(eyeColor).X, 1f, 0.5f);
10620 DelegateMethods.v3_1 = ((Color)(ref newColor)).ToVector3() * 0.5f * num4;
10621 if (velocity != Vector2.Zero)
10622 {
10623 Utils.PlotTileLine(base.Center, base.Center + velocity * 2f, 4f, DelegateMethods.CastLightOpen);
10624 }
10625 else
10626 {
10627 Utils.PlotTileLine(base.Left, base.Right, 4f, DelegateMethods.CastLightOpen);
10628 }
10629 }
10630 int num5 = (int)Vector2.Distance(vector6, vector7) / 3 + 1;
10631 if (Vector2.Distance(vector6, vector7) % 3f != 0f)
10632 {
10633 num5++;
10634 }
10635 for (float num6 = 1f; num6 <= (float)num5; num6 += 1f)
10636 {
10637 Dust[] dust = Main.dust;
10638 Vector2 center = base.Center;
10639 newColor = default(Color);
10640 Dust obj = dust[Dust.NewDust(center, 0, 0, 182, 0f, 0f, 0, newColor)];
10641 obj.position = Vector2.Lerp(vector7, vector6, num6 / (float)num5);
10642 obj.noGravity = true;
10643 obj.velocity = Vector2.Zero;
10644 obj.customData = this;
10645 obj.scale = num4;
10646 obj.shader = GameShaders.Armor.GetSecondaryShader(cYorai, this);
10647 }
10648 }
Vector2 oldPosition
Definition Entity.cs:35
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Definition Entity.cs:33
Vector2 position
The position of this Entity in world coordinates.
Definition Entity.cs:28
int width
The width of this Entity's hitbox, in pixels.
Definition Entity.cs:46
int height
The height of this Entity's hitbox, in pixels.
Definition Entity.cs:51
static ArmorShaderDataSet Armor
Definition GameShaders.cs:7
bool Active
Definition Mount.cs:348
PlayerSittingHelper sitting
Definition Player.cs:3009
Vector2 MountedCenter
Returns the player's center adjusted for mount and step stool usage. Typically used in conjunction wi...
Definition Player.cs:3692
Mount mount
This player's T:Terraria.Mount. Do not overwrite this value. Instead, call M:Terraria....
Definition Player.cs:2323
Vector2 Directions
Definition Player.cs:4189
float gfxOffY
An offset from the actual position of the player that will be added to the draw position....
Definition Player.cs:1814
float fullRotation
Definition Player.cs:1801
int[] shadowDirection
Definition Player.cs:2024
Vector2 fullRotationOrigin
Definition Player.cs:1803
void GetSittingOffsetInfo(Player player, out Vector2 posOffset, out float seatAdjustment)

References Terraria.Mount.Active, Terraria.Graphics.Shaders.GameShaders.Armor, Terraria.Mount.Cart, Terraria.DelegateMethods.CastLightOpen(), Terraria.Player.cYorai, Terraria.Entity.direction, Terraria.Player.Directions, Terraria.Main.dust, Terraria.Player.eyeColor, Terraria.Player.face, Terraria.Player.fullRotation, Terraria.Player.fullRotationOrigin, Terraria.GameContent.PlayerSittingHelper.GetSittingOffsetInfo(), Terraria.Player.gfxOffY, Terraria.Player.gravDir, Terraria.Player.head, Terraria.Entity.height, Terraria.Main.hslToRgb(), Terraria.Player.mount, Terraria.Player.MountedCenter, Terraria.Dust.NewDust(), Terraria.Main.OffsetsPlayerHeadgear, Terraria.Entity.oldPosition, Terraria.Utils.PlotTileLine(), Terraria.Entity.position, Terraria.Main.rgbToHsl(), Terraria.Utils.RotatedBy(), Terraria.Player.shadowDirection, Terraria.Player.sitting, Terraria.Mount.Type, Terraria.Entity.velocity, Terraria.Entity.width, and Terraria.Player.yoraiz0rEye.

Referenced by Terraria.Player.Update().

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