52758 {
52760 {
52761 return false;
52762 }
52765 int num2 = (int)((
float)Main.mouseX + Main.screenPosition.X) / 16;
52766 int num3 = (int)((
float)Main.mouseY + Main.screenPosition.Y) / 16;
52768 {
52769 num3 = (int)(Main.screenPosition.Y + (
float)Main.screenHeight - (float)Main.mouseY) / 16;
52770 }
52772 {
52774 }
52776 {
52778 }
52780 {
52782 }
52784 {
52786 }
52788 {
52790 }
52792 {
52794 }
52796 {
52798 }
52800 {
52802 }
52805 {
52808 {
52810 }
52811 }
52813 {
52819 {
52821 {
52823 }
52824 }
52826 {
52828 }
52829 }
52831 {
52833 }
52835 {
52837 }
52838 if (
whoAmI == Main.myPlayer &&
sItem.type == 603 && !Main.runningCollectorsEdition)
52839 {
52841 }
52842 if (
sItem.type == 1071 ||
sItem.type == 1072)
52843 {
52844 bool flag2 =
false;
52845 for (int i = 0; i < 58; i++)
52846 {
52848 {
52850 break;
52851 }
52852 }
52854 {
52856 }
52857 }
52859 {
52861 }
52862 if (
sItem.tileWand > 0)
52863 {
52864 int tileWand =
sItem.tileWand;
52866 for (
int j = 0;
j < 58;
j++)
52867 {
52869 {
52871 break;
52872 }
52873 }
52874 }
52876 {
52877 for (
int k = 0;
k < 1000;
k++)
52878 {
52879 if (Main.projectile[
k].active && Main.projectile[
k].owner == Main.myPlayer && Main.projectile[
k].type ==
sItem.shoot)
52880 {
52882 }
52883 }
52884 }
52885 if (
sItem.shoot == 106)
52886 {
52888 for (
int l = 0;
l < 1000;
l++)
52889 {
52890 if (Main.projectile[
l].active && Main.projectile[
l].owner == Main.myPlayer && Main.projectile[
l].type ==
sItem.shoot)
52891 {
52893 }
52894 }
52896 {
52898 }
52899 }
52900 if (
sItem.shoot == 272)
52901 {
52903 for (
int m = 0;
m < 1000;
m++)
52904 {
52905 if (Main.projectile[
m].active && Main.projectile[
m].owner == Main.myPlayer && Main.projectile[
m].type ==
sItem.shoot)
52906 {
52908 }
52909 }
52911 {
52913 }
52914 }
52915 if (
sItem.shoot == 1000)
52916 {
52918 for (
int n = 0;
n < 1000;
n++)
52919 {
52920 if (Main.projectile[
n].active && Main.projectile[
n].owner == Main.myPlayer && Main.projectile[
n].type ==
sItem.shoot)
52921 {
52923 }
52924 }
52926 {
52928 }
52929 }
52931 {
52933 {
52934 if (Main.projectile[
num7].active && Main.projectile[
num7].owner == Main.myPlayer && Main.projectile[
num7].type ==
sItem.shoot && Main.projectile[
num7].ai[0] != 2
f)
52935 {
52937 }
52938 }
52939 }
52940 if (
sItem.shoot == 332)
52941 {
52944 {
52945 if (Main.projectile[
num9].active && Main.projectile[
num9].owner == Main.myPlayer && Main.projectile[
num9].type ==
sItem.shoot && Main.projectile[
num9].ai[0] != 2
f)
52946 {
52948 }
52949 }
52951 {
52953 }
52954 }
52956 {
52958 }
52960 {
52962 }
52964 {
52966 }
52967 if (
sItem.type == 43 && Main.IsItDay())
52968 {
52970 }
52971 if (
sItem.type == 544 && Main.IsItDay())
52972 {
52974 }
52975 if (
sItem.type == 556 && Main.IsItDay())
52976 {
52978 }
52979 if (
sItem.type == 557 && Main.IsItDay())
52980 {
52982 }
52984 {
52986 }
52988 {
52990 }
52992 {
52994 }
52995 if (
sItem.type == 1844 && (Main.dayTime || Main.pumpkinMoon || Main.snowMoon ||
DD2Event.
Ongoing))
52996 {
52998 }
52999 if (
sItem.type == 1958 && (Main.dayTime || Main.pumpkinMoon || Main.snowMoon ||
DD2Event.
Ongoing))
53000 {
53002 }
53003 if (
sItem.type == 2767 && (!Main.dayTime || Main.eclipse || !Main.hardMode))
53004 {
53006 }
53007 if (
sItem.type == 4271 && (Main.dayTime || Main.bloodMoon))
53008 {
53010 }
53011 if (
sItem.type == 3601 && (!
NPC.downedGolemBoss || !Main.hardMode ||
NPC.AnyDanger() ||
NPC.AnyoneNearCultists()))
53012 {
53014 }
53016 {
53018 }
53020 {
53022 }
53023 if (
sItem.chlorophyteExtractinatorConsumable &&
flag &&
num == Main.myPlayer)
53024 {
53026 if (!tile.active() || (tile.type != 642 && tile.type != 219))
53027 {
53029 }
53030 }
53031 if (
sItem.fishingPole > 0)
53032 {
53034 }
53036 {
53038 }
53039 if (
sItem.shoot == 17 &&
flag &&
num == Main.myPlayer)
53040 {
53042 {
53044 if (!Main.tile[
num2,
num3].active())
53045 {
53046 if (Main.netMode == 1)
53047 {
53048 NetMessage.SendData(17, -1, -1,
null, 4,
num2,
num3);
53049 }
53050 }
53051 else
53052 {
53054 }
53055 }
53056 else
53057 {
53059 }
53060 }
53062 {
53064 }
53066 }
bool wet
The Entity is currently in water. Projectile: Affects movement speed and some projectiles die when ...
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
static MultiToolMode ToolMode
static bool[] HasAProjectileThatHasAUsabilityCheck
If true for a given item type (F:Terraria.Item.type), then that item will run M:Terraria....
static bool[] IsAKite
If true for a given item type (F:Terraria.Item.type), then that item is a kite. Kites cannot be use...
static bool[] IsADD2Turret
Iff true for a given projectile type (F:Terraria.Projectile.type), then that projectile is counted as...
static bool CanUseItem(Player player, Item item)
bool ItemCheck_CheckUsabilityOfProjectiles(bool canUse)
static bool WouldSpotOverlapWithSentry(int worldX, int worldY, bool lightningAura)
bool downedDD2EventAnyDifficulty
bool HasAmmo(Item sItem)
Whether or not the player has ammunition available for the given weapon.
int wireOperationsCooldown
void FindSentryRestingSpot(int checkProj, out int worldX, out int worldY, out int pushYUp)
bool CheckDD2CrystalPaymentLock(Item item)
bool SummonItemCheck(Item item)
bool ItemCheck_CheckFishingBobbers(bool canUse)
int[] ownedProjectileCounts
Provides efficient access to the number of projectiles of the specified type owned by this player cur...
static bool ItemCheck_IsValidDirtRodTarget(Tile t)
Item[] inventory
The player's normal inventory. Indexes 0-9 hold the hotbar items, 10-49 the rest of the main inventor...
bool ItemCheck_PayMana(Item sItem, bool canUse)