40654 {
40656 {
40659 return;
40660 }
40663 ItemCheckContext context = default(ItemCheckContext);
40664 bool flag = false;
40665 if (Main.myPlayer ==
whoAmI)
40666 {
40668 {
40670 flag = true;
40671 }
40673 {
40676 {
40680 }
40681 }
40683 {
40684 for (
int i = 54;
i < 58;
i++)
40685 {
40687 {
40691 break;
40692 }
40693 }
40695 {
40696 for (
int j = 0;
j < 54;
j++)
40697 {
40699 {
40703 break;
40704 }
40705 }
40706 }
40707 }
40708 }
40714 {
40716 }
40718 {
40720 }
40722 {
40724 }
40727 {
40729 }
40732 {
40734 }
40736 {
40738 {
40740 }
40741 if (
item.shoot == 0)
40742 {
40744 }
40747 {
40749 }
40751 {
40753 }
40755 {
40757 }
40759 {
40761 }
40763 {
40765 }
40767 {
40769 }
40770 }
40773 {
40775 }
40777 {
40779 }
40782 compositeFrontArm.enabled = false;
40783 compositeBackArm.enabled = false;
40785 {
40787 {
40789 }
40790 if (Main.dedServ)
40791 {
40794 }
40795 else
40796 {
40799 }
40802 {
40804 }
40805 }
40808 {
40811 {
40814 {
40816 }
40817 }
40818 }
40820 {
40822 }
40823 else
40824 {
40826 }
40828 {
40832 if (
whoAmI == Main.myPlayer)
40833 {
40835 }
40837 {
40838 if (
item.hairDye >= 0)
40839 {
40841 if (
whoAmI == Main.myPlayer)
40842 {
40844 NetMessage.SendData(4, -1, -1,
null,
whoAmI);
40845 }
40846 }
40847 if (
item.healLife > 0 ||
item.healMana > 0)
40848 {
40852 {
40854 }
40855 }
40856 if (
item.buffType > 0)
40857 {
40858 if (
whoAmI == Main.myPlayer &&
item.buffType != 90 &&
item.buffType != 27)
40859 {
40861 }
40863 }
40864 if (
item.type == 678)
40865 {
40866 if (Main.getGoodWorld)
40867 {
40869 if (
whoAmI == Main.myPlayer)
40870 {
40871 for (
int k = 0;
k < 3;
k++)
40872 {
40875 switch (Main.rand.Next(18))
40876 {
40877 case 0:
40879 break;
40880 case 1:
40882 break;
40883 case 2:
40885 break;
40886 case 3:
40888 break;
40889 case 4:
40891 break;
40892 case 5:
40894 break;
40895 case 6:
40897 break;
40898 case 7:
40900 break;
40901 case 8:
40903 break;
40904 case 9:
40906 break;
40907 case 10:
40909 break;
40910 case 11:
40912 break;
40913 case 12:
40915 break;
40916 case 13:
40918 break;
40919 case 14:
40921 break;
40922 case 15:
40924 break;
40925 case 16:
40927 break;
40928 case 17:
40930 break;
40931 }
40933 }
40934 }
40935 }
40936 else
40937 {
40939 if (
whoAmI == Main.myPlayer)
40940 {
40952 }
40953 }
40954 }
40955 }
40957 {
40958 if (Main.rand.Next(2) == 0)
40959 {
40961 }
40963 {
40965 }
40967 {
40968 for (
int l = 0;
l < 70;
l++)
40969 {
40971 }
40974 for (
int m = 0;
m < 70;
m++)
40975 {
40977 }
40978 }
40979 }
40981 {
40983 for (
int n = 0;
n < 2;
n++)
40984 {
40985 if (Main.rand.Next(3) == 0)
40986 {
40987 Dust dust = Dust.NewDustPerfect(
base.Bottom +
vector, Dust.dustWater());
40988 dust.velocity.Y *= 0f;
40989 dust.velocity.Y -= 4.5f;
40990 dust.velocity.X *= 1.5f;
40991 dust.scale = 0.8f;
40992 dust.alpha = 130;
40993 dust.noGravity = true;
40994 dust.fadeIn = 1.1f;
40995 }
40996 }
40998 {
41000 }
41002 {
41003 if (Main.netMode == 0)
41004 {
41006 }
41007 else if (Main.netMode == 1 &&
whoAmI == Main.myPlayer)
41008 {
41009 NetMessage.SendData(73, -1, -1, null, 1);
41010 }
41011 }
41012 }
41014 {
41016 for (int num = 0; num < 2; num++)
41017 {
41018 if (Main.rand.Next(3) == 0)
41019 {
41021 dust2.velocity.Y *= 0f;
41022 dust2.velocity.Y -= 4.5f;
41023 dust2.velocity.X *= 1.5f;
41024 dust2.scale = 0.8f;
41025 dust2.alpha = 130;
41026 dust2.noGravity = true;
41027 dust2.fadeIn = 1.1f;
41028 }
41029 }
41031 {
41033 }
41035 {
41036 if (Main.netMode == 0)
41037 {
41039 }
41040 else if (Main.netMode == 1 &&
whoAmI == Main.myPlayer)
41041 {
41042 NetMessage.SendData(73, -1, -1, null, 2);
41043 }
41044 }
41045 }
41047 {
41048 if (Main.rand.Next(2) == 0)
41049 {
41050 int num2 = Main.rand.Next(4);
41053 {
41054 case 0:
41055 case 1:
41056 color =
new Color(100, 255, 100);
41057 break;
41058 case 2:
41060 break;
41061 case 3:
41063 break;
41064 }
41065 Dust
dust3 = Dust.NewDustPerfect(Main.rand.NextVector2FromRectangle(
base.Hitbox), 267);
41066 dust3.noGravity = true;
41067 dust3.color = color;
41068 dust3.velocity *= 2f;
41069 dust3.scale = 0.8f + Main.rand.NextFloat() * 0.6f;
41070 }
41072 {
41074 }
41076 {
41077 if (Main.netMode == 0)
41078 {
41080 }
41081 else if (Main.netMode == 1 &&
whoAmI == Main.myPlayer)
41082 {
41083 NetMessage.SendData(73, -1, -1, null, 3);
41084 }
41085 }
41086 }
41088 {
41090 {
41094 {
41096 }
41097 }
41099 {
41102 {
41104 }
41112 {
41114 }
41115 if (
item.stack > 0)
41116 {
41118 }
41119 }
41120 }
41122 {
41124 {
41128 {
41130 }
41131 }
41133 {
41136 {
41138 }
41139 if (
whoAmI == Main.myPlayer)
41140 {
41142 }
41144 {
41146 }
41147 if (
item.stack > 0)
41148 {
41150 }
41151 }
41152 }
41154 {
41156 {
41158 }
41160 {
41161 if (Main.netMode == 0)
41162 {
41164 }
41165 else if (Main.netMode == 1 &&
whoAmI == Main.myPlayer)
41166 {
41167 NetMessage.SendData(73);
41168 }
41169 if (
item.stack > 0)
41170 {
41172 }
41173 }
41174 }
41176 {
41178 {
41180 }
41182 {
41183 if (
whoAmI == Main.myPlayer)
41184 {
41186 if (Main.netMode == 1)
41187 {
41188 NetMessage.SendData(4, -1, -1,
null,
whoAmI);
41189 }
41190 }
41191 if (
item.stack > 0)
41192 {
41194 }
41195 }
41196 else
41197 {
41205 {
41208 {
41209 vector3.X *= -1f;
41211 }
41216 Main.dust[
num14].noGravity =
true;
41218 Main.dust[
num14].scale = 1.3f;
41219 Main.dust[
num14].customData =
this;
41220 }
41221 }
41222 }
41223 if (
whoAmI == Main.myPlayer)
41224 {
41226 {
41228 }
41229 }
41230 else
41231 {
41233 }
41234 if (
whoAmI == Main.myPlayer)
41235 {
41237 {
41240 {
41242 {
41245 {
41247 }
41248 break;
41249 }
41250 }
41251 }
41253 {
41256 {
41258 {
41260 }
41262 {
41264 }
41266 {
41268 }
41270 {
41272 }
41273 }
41275 {
41277 }
41279 if (
flag7.HasValue)
41280 {
41282 }
41284 {
41285 if (
item.stack > 0)
41286 {
41288 }
41289 if (
item.stack <= 0)
41290 {
41292 Main.blockMouse = true;
41293 }
41294 }
41295 }
41297 {
41299 }
41301 {
41302 Main.mouseItem =
item.Clone();
41303 }
41304 }
41305 }
41307 {
41309 }
41310 if (
whoAmI == Main.myPlayer && flag)
41311 {
41313 }
41314 }
static void PlaySound(int type, Vector2 position, int style=1)
static void HandleSpecialEvent(Player player, int eventID)
static bool IsPlayerHoldingClub(Player player)
static ? bool[] ForceConsumption
static bool[] MinionTargettingFeature
static readonly short Count
static readonly LegacySoundStyle Item3
LegacySoundStyle UseSound
bool CanMount(int m, Player mountingPlayer)
void SetMount(int m, Player mountedPlayer, bool faceLeft=false)
void ItemCheck_EmitDrinkParticles(Item sItem)
void ItemCheck_ApplyManaRegenDelay(Item sItem)
void ApplyItemTime(Item sItem)
bool cursorItemIconEnabled
void ItemCheck_HandleMount()
void ApplyPotionDelay(Item sItem)
int GetWeaponDamage(Item sItem)
void ApplyLifeAndOrMana(Item item)
Item lastVisualizedSelectedItem
bool ItemCheck_CheckCanUse(Item sItem)
void UpdatePlacementPreview(Item sItem)
void DoPotionOfReturnTeleportationAndSetTheComebackPoint()
void Fishing_GetBait(out int baitPower, out int baitType)
void RemoveAllGrapplingHooks()
void TeleportationPotion()
void ItemCheck_ApplyHoldStyle(float mountOffset, Item sItem, Rectangle heldItemFrame)
void ItemCheck_ApplyUseStyle(float mountOffset, Item sItem, Rectangle heldItemFrame)
void ItemCheck_EmitFoodParticles(Item sItem)
void ItemCheck_HackHoldStyles(Item sItem)
void ItemCheck_HandleMPItemAnimation(Item sItem)
void FreeUpPetsAndMinions(Item sItem)
void ItemCheck_OwnerOnlyCode(ref ItemCheckContext context, Item sItem, int weaponDamage, Rectangle heldItemFrame)
void ItemCheck_ApplyPetBuffs(Item sItem)
void AddBuff(int type, int timeToAdd, bool quiet=true, bool foodHack=false)
float HeightOffsetHitboxCenter
void Spawn(PlayerSpawnContext context)
void ItemCheck_StartActualUse(Item sItem)
void ItemCheck_EmitHeldItemLight(Item sItem)