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

◆ ItemCheck_UseTorchGodsFavor()

void Terraria.Player.ItemCheck_UseTorchGodsFavor ( Item sItem)
inlineprivate

Definition at line 44959 of file Player.cs.

44960 {
44961 if (sItem.type == 5043 && itemAnimation > 0 && !unlockedBiomeTorches && ItemTimeIsZero)
44962 {
44964 unlockedBiomeTorches = true;
44965 UsingBiomeTorches = true;
44967 if (Main.netMode == 0)
44968 {
44969 NPC nPC = new NPC();
44970 nPC.SetDefaults(664);
44971 Main.BestiaryTracker.Kills.RegisterKill(nPC);
44972 }
44973 NetMessage.SendData(4, -1, -1, null, whoAmI);
44974 NetMessage.SendData(51, -1, -1, null, whoAmI, 5f);
44975 }
44976 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
static void HandleSpecialEvent(Player player, int eventID)
bool unlockedBiomeTorches
Definition Player.cs:2241
bool ItemTimeIsZero
Definition Player.cs:4402
bool UsingBiomeTorches
Definition Player.cs:4289
void ApplyItemTime(Item sItem, float multiplier=1f, bool? callUseItem=null)
Definition Player.cs:4907

References Terraria.Player.ApplyItemTime(), Terraria.Main.BestiaryTracker, Terraria.GameContent.Achievements.AchievementsHelper.HandleSpecialEvent(), Terraria.Player.itemAnimation, Terraria.Player.ItemTimeIsZero, Terraria.Main.netMode, Terraria.Enums.NPC, Terraria.NetMessage.SendData(), Terraria.Player.unlockedBiomeTorches, Terraria.Player.UsingBiomeTorches, 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: