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

◆ ApplyWilsonBeard()

void Terraria.Player.ApplyWilsonBeard ( Item currentItem)
inlineprivate

Definition at line 13663 of file Player.cs.

13664 {
13665 //IL_0052: Unknown result type (might be due to invalid IL or missing references)
13667 if (beardGrowthTimer >= 43200 && Main.rand.Next(540) == 0)
13668 {
13669 beardGrowthTimer = 0;
13670 short defaults = 5105;
13671 if (currentItem.type == 5105)
13672 {
13673 defaults = 5106;
13674 }
13676 currentItem.SetDefaults(defaults);
13677 }
13678 }
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...
static readonly SoundStyle Item60
Definition SoundID.cs:797
int beardGrowthTimer
Definition Player.cs:1745

References Terraria.Player.beardGrowthTimer, Terraria.ID.SoundID.Item60, Terraria.Audio.SoundEngine.PlaySound(), and Terraria.Main.rand.

Referenced by Terraria.Player.ApplyEquipFunctional().

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