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

◆ OpenChest()

void Terraria.Player.OpenChest ( int x,
int y,
int newChest )
inlineprivate

Definition at line 31241 of file Player.cs.

31242 {
31243 if (chest != -1 && Main.myPlayer == whoAmI)
31244 {
31245 for (int i = 0; i < 40; i++)
31246 {
31247 ItemSlot.SetGlow(i, -1f, chest: true);
31248 }
31249 }
31250 chest = newChest;
31251 Main.playerInventory = true;
31254 {
31255 PlayerInput.Triggers.JustPressed.Grapple = false;
31256 }
31257 Main.recBigList = false;
31258 chestX = x;
31259 chestY = y;
31260 }
static void SetGlow(int index, float hue, bool chest)
Definition ItemSlot.cs:249

References Terraria.UI.Gamepad.UILinkPointNavigator.ForceMovementCooldown(), Terraria.GameInput.PlayerInput.GrappleAndInteractAreShared, Terraria.Main.myPlayer, and Terraria.UI.ItemSlot.SetGlow().