Definition at line 4802 of file Player.cs.
4803 {
4805 {
4806 return;
4807 }
4810 {
4811 return;
4812 }
4815 {
4817 int num =
item.buffTime;
4818 if (num == 0)
4819 {
4820 num = 3600;
4821 }
4823 if (
item.consumable)
4824 {
4826 if (
item.stack <= 0)
4827 {
4829 }
4830 }
4831 }
4833 {
4836 {
4838 }
4839 for (
int i = 0;
i <
num2;
i++)
4840 {
4843 {
4844 continue;
4845 }
4848 if (
item2.mana > 0 && flag)
4849 {
4851 {
4854 }
4855 else
4856 {
4857 flag = false;
4858 }
4859 }
4860 if (
whoAmI == Main.myPlayer &&
item2.type == 603 && !Main.runningCollectorsEdition)
4861 {
4862 flag = false;
4863 }
4865 {
4866 num3 = Main.rand.Next(3);
4868 {
4870 }
4872 {
4874 }
4876 {
4878 }
4879 }
4880 if (!flag)
4881 {
4882 continue;
4883 }
4887 {
4889 }
4891 if (
item2.consumable)
4892 {
4894 if (
item2.stack <= 0)
4895 {
4897 }
4898 }
4900 {
4901 break;
4902 }
4903 }
4904 }
4906 {
4908 Recipe.FindRecipes();
4909 }
4910 }
static void PlaySound(int type, Vector2 position, int style=1)
static readonly int maxBuffs
bool ItemCheck_CheckCanUse(Item sItem)
Item QuickBuff_PickBestFoodItem()
void AddBuff(int type, int timeToAdd, bool quiet=true, bool foodHack=false)
bool QuickBuff_ShouldBotherUsingThisBuff(int attemptedType)
References Terraria.Player.AddBuff(), Terraria.Player.bank4, Terraria.Player.CCed, Terraria.Player.CountBuffs(), Terraria.Player.cursed, Terraria.Player.dead, Terraria.Recipe.FindRecipes(), Terraria.Player.inventory, System.item, Terraria.Chest.item, Terraria.Player.ItemCheck_CheckCanUse(), Terraria.Player.manaCost, Terraria.Player.manaRegenDelay, Terraria.Player.maxBuffs, Terraria.Player.maxRegenDelay, Terraria.Main.myPlayer, Terraria.Audio.SoundEngine.PlaySound(), Terraria.Entity.position, Terraria.Player.QuickBuff_PickBestFoodItem(), Terraria.Player.QuickBuff_ShouldBotherUsingThisBuff(), Terraria.Main.rand, Terraria.Main.runningCollectorsEdition, Terraria.Player.statMana, Terraria.Player.useVoidBag(), and Terraria.Entity.whoAmI.
Referenced by Terraria.GameInput.TriggersSet.CopyInto().