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

◆ ItemCheck_UseMinecartPowerUp()

void Terraria.Player.ItemCheck_UseMinecartPowerUp ( Item sItem)
inlineprivate

Definition at line 44935 of file Player.cs.

44936 {
44937 if (sItem.type == 5289 && itemAnimation > 0 && ItemTimeIsZero)
44938 {
44940 if (!unlockedSuperCart)
44941 {
44942 unlockedSuperCart = true;
44943 NetMessage.SendData(4, -1, -1, null, whoAmI);
44944 }
44946 }
44947 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
bool ItemTimeIsZero
Definition Player.cs:4402
IEntitySource GetItemSource_OpenItem(int itemType)
Definition Player.cs:7836
int QuickSpawnItem(IEntitySource source, int item, int stack=1)
Spawns an item into the world at this players position. This is a simpler alternative to M:Terraria....
Definition Player.cs:7384
void ApplyItemTime(Item sItem, float multiplier=1f, bool? callUseItem=null)
Definition Player.cs:4907
bool unlockedSuperCart
If true, then this player has permanently buffed their minecarts. See P:Terraria.Player....
Definition Player.cs:2248

References Terraria.Player.ApplyItemTime(), Terraria.Player.GetItemSource_OpenItem(), Terraria.Player.itemAnimation, Terraria.Player.ItemTimeIsZero, Terraria.Player.QuickSpawnItem(), Terraria.NetMessage.SendData(), Terraria.Player.unlockedSuperCart, and Terraria.Entity.whoAmI.

Referenced by Terraria.Player.ItemCheck_OwnerOnlyCode().

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