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

◆ EmitMaxManaEffect()

void Terraria.Player.EmitMaxManaEffect ( )
inlineprivate

Definition at line 50418 of file Player.cs.

50419 {
50420 //IL_001d: Unknown result type (might be due to invalid IL or missing references)
50421 //IL_0041: Unknown result type (might be due to invalid IL or missing references)
50422 //IL_0047: Unknown result type (might be due to invalid IL or missing references)
50423 //IL_0085: Unknown result type (might be due to invalid IL or missing references)
50424 //IL_008f: Unknown result type (might be due to invalid IL or missing references)
50425 //IL_0094: Unknown result type (might be due to invalid IL or missing references)
50427 for (int i = 0; i < 5; i++)
50428 {
50429 int num = Dust.NewDust(position, width, height, 45, 0f, 0f, 255, default(Color), (float)Main.rand.Next(20, 26) * 0.1f);
50430 Main.dust[num].noLight = true;
50431 Main.dust[num].noGravity = true;
50432 Dust obj = Main.dust[num];
50433 obj.velocity *= 0.5f;
50434 }
50435 }
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 ...
Vector2 position
The position of this Entity in world coordinates.
Definition Entity.cs:28
int width
The width of this Entity's hitbox, in pixels.
Definition Entity.cs:46
int height
The height of this Entity's hitbox, in pixels.
Definition Entity.cs:51

References Terraria.Main.dust, Terraria.Entity.height, Terraria.Dust.NewDust(), Terraria.Audio.SoundEngine.PlaySound(), Terraria.Entity.position, Terraria.Main.rand, and Terraria.Entity.width.

Referenced by Terraria.Player.ItemCheck_Inner().

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