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

◆ ItemCheck_UseDemonHeart()

void Terraria.Player.ItemCheck_UseDemonHeart ( Item sItem)
inlineprivate

Definition at line 44925 of file Player.cs.

44926 {
44927 if (sItem.type == 3335 && itemAnimation > 0 && !extraAccessory && Main.expertMode && ItemTimeIsZero)
44928 {
44930 extraAccessory = true;
44931 NetMessage.SendData(4, -1, -1, null, whoAmI);
44932 }
44933 }
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
bool extraAccessory
Definition Player.cs:1071
void ApplyItemTime(Item sItem, float multiplier=1f, bool? callUseItem=null)
Definition Player.cs:4907

References Terraria.Player.ApplyItemTime(), Terraria.Main.expertMode, Terraria.Player.extraAccessory, Terraria.Player.itemAnimation, Terraria.Player.ItemTimeIsZero, Terraria.NetMessage.SendData(), 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: