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

◆ DropItemFromExtractinator()

void Terraria.Player.DropItemFromExtractinator ( int itemType,
int stack )
inlineprivate

Definition at line 41190 of file Player.cs.

41191 {
41192 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
41193 //IL_000a: Unknown result type (might be due to invalid IL or missing references)
41194 //IL_000f: Unknown result type (might be due to invalid IL or missing references)
41195 //IL_0014: Unknown result type (might be due to invalid IL or missing references)
41196 //IL_0019: Unknown result type (might be due to invalid IL or missing references)
41197 //IL_0029: Unknown result type (might be due to invalid IL or missing references)
41198 //IL_002e: Unknown result type (might be due to invalid IL or missing references)
41199 //IL_003f: Unknown result type (might be due to invalid IL or missing references)
41200 //IL_0046: Unknown result type (might be due to invalid IL or missing references)
41201 Vector2 vector = Main.ReverseGravitySupport(Main.MouseScreen) + Main.screenPosition;
41202 if (Main.SmartCursorIsUsed || PlayerInput.UsingGamepad)
41203 {
41204 vector = base.Center;
41205 }
41206 int number = Item.NewItem(GetItemSource_TileInteraction(tileTargetX, tileTargetY), (int)vector.X, (int)vector.Y, 1, 1, itemType, stack, noBroadcast: false, -1);
41207 if (Main.netMode == 1)
41208 {
41209 NetMessage.SendData(21, -1, -1, null, number, 1f);
41210 }
41211 }
IEntitySource GetItemSource_TileInteraction(int tileCoordsX, int tileCoordsY)
Definition Player.cs:7881
static int tileTargetY
Definition Player.cs:2652
static int tileTargetX
Definition Player.cs:2650

References Terraria.Player.GetItemSource_TileInteraction(), Terraria.Main.MouseScreen, Terraria.Main.netMode, Terraria.Item.NewItem(), Terraria.Main.ReverseGravitySupport(), Terraria.Main.screenPosition, Terraria.NetMessage.SendData(), Terraria.Main.SmartCursorIsUsed, Terraria.Player.tileTargetX, Terraria.Player.tileTargetY, and Terraria.GameInput.PlayerInput.UsingGamepad.

Referenced by Terraria.Player.ExtractinatorUse(), and Terraria.Player.PlaceThing_ItemInExtractinator().

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