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

◆ meleeEnchant

byte Terraria.Player.meleeEnchant

The vanilla flask effect which the player currently has active; these affect all melee weapons and whips.
Defaults to 0, which denotes that the player does not currently have a flask active.
The following values correspond to vanilla flasks:
1 => Flask of Venom (affected weapons proc Acid Venom on hit)
2 => Flask of Cursed Flames (affected weapons proc Cursed Inferno on hit)
3 => Flask of Fire (affected weapons proc On Fire! on hit)
4 => Flask of Gold (affected weapons proc Midas on hit)
5 => Flask of Ichor (affected weapons proc Ichor on hit)
6 => Flask of Nanites (affected weapons proc Confused on hit)
7 => Flask of Party (affected weapons sometimes release confetti explosions on hit)
8 => Flask of Poison (affected weapons proc Poisoned on hit)

Definition at line 1281 of file Player.cs.

Referenced by Terraria.Player.ApplyNPCOnHitEffects(), Terraria.Projectile.EmitEnchantmentVisualsAt(), Terraria.Player.ItemCheck_EmitUseVisuals(), Terraria.Player.ItemCheck_MeleeHitPVP(), Terraria.Player.ResetEffects(), Terraria.Player.StatusToNPC(), Terraria.Player.StatusToPlayerPvP(), and Terraria.Player.UpdateBuffs().