33979 {
33981 {
33984 {
33986 }
33987 }
33991 if (
armor[10].headSlot >= 0)
33992 {
33994 }
33995 if (
armor[11].bodySlot >= 0)
33996 {
33998 }
33999 if (
armor[12].legSlot >= 0)
34000 {
34002 }
34004 {
34006 }
34009 SetMatchRequest
request =
default(SetMatchRequest);
34010 request.Head =
head;
34011 request.Body =
body;
34012 request.Legs =
legs;
34013 request.Male =
Male;
34014 request.ArmorSlotRequested = 1;
34016 if (num != -1)
34017 {
34019 }
34020 request =
default(SetMatchRequest);
34021 request.Head =
head;
34022 request.Body =
body;
34023 request.Legs =
legs;
34024 request.Male =
Male;
34025 request.ArmorSlotRequested = 2;
34027 if (num != -1)
34028 {
34030 }
34031 request =
default(SetMatchRequest);
34032 request.Head =
head;
34033 request.Body =
body;
34034 request.Legs =
legs;
34035 request.Male =
Male;
34036 request.ArmorSlotRequested = 0;
34038 if (num != -1)
34039 {
34041 }
34043 {
34046 }
34048 {
34051 }
34053 {
34055 }
34057 {
34060 {
34062 {
34065 }
34067 {
34070 }
34071 else if (
back == -1)
34072 {
34075 }
34076 }
34079 {
34082 }
34085 {
34090 {
34093 }
34095 {
34098 }
34100 {
34103 }
34104 }
34105 }
34107 {
34109 }
34111 {
34113 }
34114 bool flag = false;
34116 {
34120 flag = true;
34121 }
34124 {
34126 {
34130 flag = true;
34131 }
34133 {
34135 }
34136 }
34148 {
34150 {
34152 }
34154 {
34156 }
34158 }
34159 hermesStepSound.SoundType = 17;
34160 hermesStepSound.SoundStyle = -1;
34161 hermesStepSound.IntendedCooldown = 9;
34163 {
34165 }
34167 {
34169 }
34172 {
34173 hermesStepSound.SoundType = 2;
34174 hermesStepSound.SoundStyle = 24;
34175 hermesStepSound.IntendedCooldown = 6;
34176 }
34177 if (flag)
34178 {
34182 }
34184 {
34186 {
34189 }
34191 {
34193 }
34194 }
34196 {
34199 {
34201 }
34202 }
34204 {
34205 return;
34206 }
34208 {
34210 float num2 = 1f + Main.rand.NextFloat() * 0.5f;
34211 if (Main.rand.Next(2) == 0)
34212 {
34214 }
34216 Dust
obj = Main.dust[Dust.NewDust(
center, 2, 2, 304, 0f, 0f, 100)];
34217 obj.rotation = Main.rand.NextFloat() * ((float)
Math.
PI * 2f);
34218 obj.alpha = 254;
34219 obj.velocity.X =
num2 * 0.2f;
34220 obj.noGravity = true;
34221 obj.customData = this;
34223 }
34225 {
34226 if (((
body == 68 &&
legs == 57 &&
head == 106) || (
body == 74 &&
legs == 63 &&
head == 106)) && Main.rand.Next(10) == 0)
34227 {
34228 int num3 = Dust.NewDust(
new Vector2(
position.
X -
velocity.
X * 2f,
position.
Y - 2f -
velocity.
Y * 2f),
width,
height, 43, 0f, 0f, 100,
new Color(255, 0, 255), 0.3f);
34229 Main.dust[
num3].fadeIn = 0.8f;
34230 Main.dust[
num3].noGravity =
true;
34231 Main.dust[
num3].velocity *= 2f;
34233 }
34235 {
34237 Lighting.AddLight((
int)base.Center.X / 16, (int)
base.Center.Y / 16,
num4,
num4 * 0.9f,
num4 * 0.2f);
34238 }
34240 {
34242 }
34243 if (
head == 5 &&
body == 5 &&
legs == 5 && Main.rand.Next(10) == 0)
34244 {
34247 }
34249 {
34251 }
34253 {
34255 }
34256 if (
head == 74 &&
body == 48 &&
legs == 44 && Main.rand.Next(10) == 0)
34257 {
34260 }
34262 {
34265 {
34267 }
34268 if (Main.rand.Next(
maxValue) == 0)
34269 {
34271 Main.dust[
num7].noGravity =
true;
34272 Main.dust[
num7].fadeIn = 1.5f;
34273 Main.dust[
num7].velocity *= 0.3f;
34276 }
34277 }
34279 {
34280 for (
int i = 0;
i < 2;
i++)
34281 {
34283 Main.dust[
num8].noGravity =
true;
34284 Main.dust[
num8].noLight =
true;
34285 Main.dust[
num8].velocity.X -= velocity.X * 0.5f;
34286 Main.dust[
num8].velocity.Y -= velocity.Y * 0.5f;
34288 }
34289 }
34291 {
34293 Main.dust[
num9].noGravity =
true;
34294 Main.dust[
num9].velocity.X = velocity.X * 0.25f;
34295 Main.dust[
num9].velocity.Y = velocity.Y * 0.25f;
34297 }
34299 {
34300 for (
int j = 0;
j < 2;
j++)
34301 {
34303 Main.dust[
num10].noGravity =
true;
34304 Main.dust[
num10].noLight =
true;
34305 Main.dust[
num10].velocity.X -= velocity.X * 0.5f;
34306 Main.dust[
num10].velocity.Y -= velocity.Y * 0.5f;
34308 }
34309 }
34310 if (
body == 18 &&
legs == 17 && (
head == 32 ||
head == 33 ||
head == 34) && Main.rand.Next(10) == 0)
34311 {
34313 Main.dust[
num11].fadeIn = 0.8f;
34314 Main.dust[
num11].velocity *= 0f;
34316 }
34317 if ((
body == 24 ||
body == 229) && (
legs == 23 ||
legs == 212) && (
head == 43 ||
head == 41 ||
head == 42 ||
head == 254 ||
head == 255 ||
head == 256 ||
head == 257 ||
head == 258) && velocity.X != 0f && velocity.Y != 0f && Main.rand.Next(10) == 0)
34318 {
34320 Main.dust[
num12].fadeIn = 0.8f;
34321 Main.dust[
num12].velocity *= 0f;
34323 }
34325 {
34326 for (
int k = 0;
k < 2;
k++)
34327 {
34329 Main.dust[
num13].fadeIn = 1f;
34330 Main.dust[
num13].noGravity =
true;
34331 Main.dust[
num13].velocity *= 0.2f;
34333 }
34334 }
34336 {
34337 for (
int l = 0;
l < 2;
l++)
34338 {
34339 int num14 = ((
l != 0) ? Dust.NewDust(
new Vector2(
position.
X + (
float)(
width / 2),
position.
Y + (
float)
height +
gfxOffY),
width / 2, 6, 76, 0f, 0f, 0,
default(
Color), 1.35f) : Dust.NewDust(
new Vector2(
position.
X,
position.
Y + (float)
height +
gfxOffY),
width / 2, 6, 76, 0f, 0f, 0,
default(
Color), 1.35f));
34340 Main.dust[
num14].scale *= 1f + (float)Main.rand.Next(20, 40) * 0.01f;
34341 Main.dust[
num14].noGravity =
true;
34342 Main.dust[
num14].noLight =
true;
34343 Main.dust[
num14].velocity *= 0.001f;
34344 Main.dust[
num14].velocity.Y -= 0.003f;
34346 }
34347 }
34348 }
34351 {
34354 }
34357 bool flag4 = HeldItem.type != 4952;
34359 {
34361 legFrame.Y = legFrame.Height * 6;
34363 {
34366 reference.Y = 0;
34367 }
34369 {
34371 {
34373 {
34375 {
34376 if (Main.rand.Next(4) == 0)
34377 {
34379 Main.dust[
num15].velocity *= 0.1f;
34380 Main.dust[
num15].noLight =
true;
34381 }
34382 if (Main.rand.Next(4) == 0)
34383 {
34385 Main.dust[
num16].velocity *= 0.1f;
34386 Main.dust[
num16].noLight =
true;
34387 }
34388 }
34389 else
34390 {
34391 if (Main.rand.Next(4) == 0)
34392 {
34394 Main.dust[
num17].velocity *= 0.1f;
34395 Main.dust[
num17].noLight =
true;
34396 }
34397 if (Main.rand.Next(4) == 0)
34398 {
34400 Main.dust[
num18].velocity *= 0.1f;
34401 Main.dust[
num18].noLight =
true;
34402 }
34403 }
34404 }
34408 }
34410 {
34412 }
34413 else
34414 {
34418 }
34419 }
34420 else
34421 {
34423 }
34424 }
34425 else if (
legs != 140)
34426 {
34428 {
34431 {
34434 }
34436 {
34437 legFrame.Y = legFrame.Height * 19;
34438 }
34440 {
34441 legFrame.Y = legFrame.Height * 7;
34442 }
34443 }
34445 {
34447 legFrame.Y = legFrame.Height * 5;
34449 {
34450 legFrame.Y = 0;
34451 }
34452 }
34454 {
34456 {
34460 reference2.Y = 0;
34461 }
34462 else
34463 {
34466 {
34469 }
34471 {
34472 legFrame.Y = legFrame.Height * 19;
34473 }
34475 {
34476 legFrame.Y = legFrame.Height * 7;
34477 }
34478 }
34479 }
34480 else
34481 {
34485 reference3.Y = 0;
34486 }
34487 }
34489 {
34493 reference4.Y = 0;
34494 }
34496 {
34498 {
34500 }
34502 {
34505 {
34507 {
34508 itemLocation.X = position.X + (float)
width * 0.5f - (
float)(16 *
direction);
34509 }
34511 {
34512 itemLocation.X = position.X + (float)
width * 0.5f + (
float)(6 *
direction);
34514 }
34515 }
34516 }
34520 reference5.Y = 0;
34521 }
34523 {
34525 {
34527 {
34528 bodyFrame.Y = bodyFrame.Height * 3;
34529 }
34531 {
34532 bodyFrame.Y = bodyFrame.Height * 2;
34533 }
34534 else
34535 {
34537 }
34538 }
34540 {
34542 {
34543 bodyFrame.Y = bodyFrame.Height * 3;
34544 }
34545 else
34546 {
34547 bodyFrame.Y = bodyFrame.Height * 2;
34548 }
34549 }
34551 {
34552 bodyFrame.Y = bodyFrame.Height * 3;
34553 }
34555 {
34557 {
34558 bodyFrame.Y = bodyFrame.Height * 4;
34559 }
34561 {
34562 bodyFrame.Y = bodyFrame.Height * 3;
34563 }
34564 else
34565 {
34566 bodyFrame.Y = bodyFrame.Height * 2;
34567 }
34568 }
34570 {
34571 bodyFrame.Y = 0;
34572 }
34574 {
34578 {
34580 }
34582 {
34583 bodyFrame.Y = bodyFrame.Height * 3;
34584 }
34585 else
34586 {
34587 bodyFrame.Y = bodyFrame.Height * 2;
34588 }
34589 }
34591 {
34593 {
34594 bodyFrame.Y = bodyFrame.Height * 3;
34595 }
34596 else
34597 {
34598 bodyFrame.Y = bodyFrame.Height * 3;
34599 }
34600 }
34602 {
34603 bodyFrame.Y = bodyFrame.Height * 2;
34604 }
34606 {
34607 bodyFrame.Y = 0;
34608 }
34610 {
34611 bodyFrame.Y = bodyFrame.Height * 3;
34612 }
34614 {
34616 {
34617 bodyFrame.Y = bodyFrame.Height * 3;
34618 }
34620 {
34621 bodyFrame.Y = bodyFrame.Height * 2;
34622 }
34623 else
34624 {
34626 }
34627 }
34629 {
34631 {
34632 bodyFrame.Y = bodyFrame.Height * 2;
34633 }
34634 else
34635 {
34637 bodyFrame.Y = bodyFrame.Height * 3;
34638 if ((
double)
num20 < -0.75)
34639 {
34640 bodyFrame.Y = bodyFrame.Height * 2;
34642 {
34643 bodyFrame.Y = bodyFrame.Height * 4;
34644 }
34645 }
34646 if ((
double)
num20 > 0.6)
34647 {
34648 bodyFrame.Y = bodyFrame.Height * 4;
34650 {
34651 bodyFrame.Y = bodyFrame.Height * 2;
34652 }
34653 }
34654 }
34655 }
34656 }
34658 {
34660 {
34662 }
34663 else
34664 {
34665 bodyFrame.Y = bodyFrame.Height * 2;
34666 }
34667 }
34669 {
34670 bodyFrame.Y = bodyFrame.Height * 3;
34671 }
34673 {
34674 bodyFrame.Y = bodyFrame.Height * 2;
34675 }
34677 {
34678 bodyFrame.Y = bodyFrame.Height * 3;
34679 }
34681 {
34682 bodyFrame.Y = bodyFrame.Height * 3;
34683 }
34685 {
34686 bodyFrame.Y = bodyFrame.Height * 11;
34687 }
34689 {
34692 reference6.Y = 0;
34693 }
34695 {
34696 bodyFrame.Y = bodyFrame.Height * 10;
34697 }
34699 {
34702 }
34704 {
34711 {
34714 }
34720 {
34721 bodyFrame.Y = bodyFrame.Height * 2;
34723 {
34724 bodyFrame.Y = bodyFrame.Height * 4;
34725 }
34726 }
34728 {
34729 bodyFrame.Y = bodyFrame.Height * 4;
34731 {
34732 bodyFrame.Y = bodyFrame.Height * 2;
34733 }
34734 }
34735 else
34736 {
34737 bodyFrame.Y = bodyFrame.Height * 3;
34738 }
34739 }
34741 {
34742 bodyFrame.Y = bodyFrame.Height * 10;
34743 }
34745 {
34747 {
34750 reference7.Y = 0;
34751 }
34753 {
34754 bodyFrame.Y = bodyFrame.Height * 5;
34755 }
34756 else
34757 {
34760 reference8.Y = 0;
34761 }
34762 }
34764 {
34766 {
34767 bodyFrame.Y = bodyFrame.Height * 3;
34768 }
34770 {
34771 bodyFrame.Y = bodyFrame.Height * 6;
34772 }
34774 {
34775 bodyFrame.Y = bodyFrame.Height * 6;
34776 }
34777 else if (
wings > 0)
34778 {
34780 {
34781 bodyFrame.Y = 0;
34782 }
34784 {
34786 {
34787 bodyFrame.Y = bodyFrame.Height * 6;
34788 }
34789 else
34790 {
34791 bodyFrame.Y = bodyFrame.Height * 5;
34792 }
34793 }
34794 else
34795 {
34796 bodyFrame.Y = bodyFrame.Height * 6;
34797 }
34798 }
34799 else
34800 {
34801 bodyFrame.Y = bodyFrame.Height * 5;
34802 }
34804 }
34806 {
34808 {
34811 {
34814 }
34816 {
34817 bodyFrame.Y = bodyFrame.Height * 19;
34818 }
34820 {
34821 bodyFrame.Y = bodyFrame.Height * 7;
34822 }
34823 }
34824 else
34825 {
34828 }
34829 }
34830 else
34831 {
34835 reference9.Y = 0;
34836 }
34838 {
34840 legFrame.Y = legFrame.Height * (velocity.Y != 0f).ToInt();
34842 if (Main.OffsetsPlayerHeadgear[
num23].Y == 0f)
34843 {
34844 legFrame.Y = legFrame.Height * 7;
34845 }
34847 {
34848 legFrame.Y = 0;
34849 }
34850 }
34852 {
34854 legFrame.Y = legFrame.Height * 5;
34855 }
34857 {
34859 }
34860 }
static double Abs(double value)
static ArmorShaderDataSet Armor
static bool[] DrawInTailLayer
static bool[] DrawInBackpackLayer
static IncludeCapeFrontAndBackInfo[] IncludeCapeFrontAndBack
static bool[] DisableHandOnAndOffAccDraw
static int[] IncludedCapeFront
static int[] IncludedCapeBack
static bool[] DisableBeltAccDraw
static bool[] OverrideHelmet
static bool[] DrawInFaceUnderHairLayer
static bool[] UseAltFaceHeadDraw
bool IsConsideredASlimeMount
void TryBeginningFlight(Player mountedPlayer, int state)
int GetIntendedGroundedFrame(Player mountedPlayer)
void TryLanding(Player mountedPlayer)
void UpdateFrame(Player mountedPlayer, int state, Vector2 velocity)
bool socialShadowRocketBoots
bool armorEffectDrawOutlinesForbidden
PlayerSleepingHelper sleeping
RabbitOrderFrameHelper rabbitOrderFrame
void ApplyArmorSoundAndDustChanges()
bool ShouldDrawFootball()
PlayerSittingHelper sitting
void CancelAllJumpVisualEffects()
void SetCompositeArmBack(bool enabled, CompositeArmStretchAmount stretch, float rotation)
bool armorEffectDrawShadowEOCShield
static int SetMatch(SetMatchRequest request, ref bool somethingSpecial)
void UpdateVisibleAccessories()
bool isDisplayDollOrInanimate
bool armorEffectDrawShadowSubtle
bool ShouldDrawWingsThatAreAlwaysAnimated()
bool armorEffectDrawOutlines
void SetArmorEffectVisuals(Player drawPlayer)
bool armorEffectDrawShadow
bool armorEffectDrawShadowLokis
bool armorEffectDrawShadowBasilisk
bool skipAnimatingValuesInPlayerFrame
bool CanVisuallyHoldItem(Item item)