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

◆ ItemCheck_UsePeddlersSatchel()

void Terraria.Player.ItemCheck_UsePeddlersSatchel ( Item sItem)
inlineprivate

Definition at line 45104 of file Player.cs.

45105 {
45106 if (!NPC.peddlersSatchelWasUsed && sItem.type == 5343 && itemAnimation > 0 && ItemTimeIsZero)
45107 {
45109 if (Main.netMode == 0)
45110 {
45111 NPC.peddlersSatchelWasUsed = true;
45112 Main.NewText(Language.GetTextValue("Misc.PeddlersSatchelUsed"), 50, byte.MaxValue, 130);
45113 }
45114 else
45115 {
45116 NetMessage.SendData(61, -1, -1, null, whoAmI, -18f);
45117 }
45118 }
45119 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
static string GetTextValue(string key)
Retrieves the text value for a specified localization key. The text returned will be for the currentl...
Definition Language.cs:35
Contains methods to access or retrieve localization values. The Localization Guideteaches more about ...
Definition Language.cs:12
bool ItemTimeIsZero
Definition Player.cs:4402
void ApplyItemTime(Item sItem, float multiplier=1f, bool? callUseItem=null)
Definition Player.cs:4907

References Terraria.Player.ApplyItemTime(), Terraria.Localization.Language.GetTextValue(), Terraria.Player.itemAnimation, Terraria.Player.ItemTimeIsZero, Terraria.Main.netMode, Terraria.Main.NewText(), Terraria.NPC.peddlersSatchelWasUsed, 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: