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

◆ ItemCheck_UsePeddlersSatchel()

void Terraria.Player.ItemCheck_UsePeddlersSatchel ( Item sItem)
inlineprivate

Definition at line 43193 of file Player.cs.

43194 {
43195 if (!NPC.peddlersSatchelWasUsed && sItem.type == 5343 && itemAnimation > 0 && ItemTimeIsZero)
43196 {
43198 if (Main.netMode == 0)
43199 {
43200 NPC.peddlersSatchelWasUsed = true;
43201 Main.NewText(Language.GetTextValue("Misc.PeddlersSatchelUsed"), 50, byte.MaxValue, 130);
43202 }
43203 else
43204 {
43205 NetMessage.SendData(61, -1, -1, null, whoAmI, -18f);
43206 }
43207 }
43208 }
static string GetTextValue(string key)
Definition Language.cs:15
void ApplyItemTime(Item sItem)
Definition Player.cs:3752
bool ItemTimeIsZero
Definition Player.cs:3525

References Terraria.Localization.Language.GetTextValue(), Terraria.Main.netMode, Terraria.Main.NewText(), Terraria.NPC.peddlersSatchelWasUsed, and Terraria.NetMessage.SendData().