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

◆ ApplyWilsonBeard()

void Terraria.Player.ApplyWilsonBeard ( Item currentItem)
inlineprivate

Definition at line 15010 of file Player.cs.

15011 {
15013 if (beardGrowthTimer >= 43200 && Main.rand.Next(540) == 0)
15014 {
15015 beardGrowthTimer = 0;
15016 short defaults = 5105;
15017 if (currentItem.type == 5105)
15018 {
15019 defaults = 5106;
15020 }
15022 currentItem.SetDefaults(defaults);
15023 }
15024 }
static void PlaySound(int type, Vector2 position, int style=1)
static readonly LegacySoundStyle Item60
Definition SoundID.cs:534
int beardGrowthTimer
Definition Player.cs:1243

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