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

◆ AI_061_FishingBobber_DoASplash()

void Terraria.Projectile.AI_061_FishingBobber_DoASplash ( )
inlineprivate

Definition at line 57266 of file Projectile.cs.

57267 {
57268 //IL_0029: Unknown result type (might be due to invalid IL or missing references)
57269 //IL_004b: Unknown result type (might be due to invalid IL or missing references)
57270 //IL_0051: Unknown result type (might be due to invalid IL or missing references)
57271 for (int i = 0; i < 100; i++)
57272 {
57273 int num = Dust.NewDust(new Vector2(position.X - 6f, position.Y - 10f), width + 12, 24, Dust.dustWater());
57274 Main.dust[num].velocity.Y -= 4f;
57275 Main.dust[num].velocity.X *= 2.5f;
57276 Main.dust[num].scale = 0.8f;
57277 Main.dust[num].alpha = 100;
57278 Main.dust[num].noGravity = true;
57279 }
57280 SoundEngine.PlaySound(19, (int)position.X, (int)position.Y, 0);
57281 }
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

References Terraria.Main.dust, Terraria.Dust.dustWater(), Terraria.Dust.NewDust(), and Terraria.Audio.SoundEngine.PlaySound().

+ Here is the call graph for this function: