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

◆ AI_015_Flails_Dust()

void Terraria.Projectile.AI_015_Flails_Dust ( bool doFastThrowDust)
inlineprivate

Definition at line 46356 of file Projectile.cs.

46357 {
46358 //IL_01bd: Unknown result type (might be due to invalid IL or missing references)
46359 //IL_01f9: Unknown result type (might be due to invalid IL or missing references)
46360 //IL_01ff: Unknown result type (might be due to invalid IL or missing references)
46361 //IL_0023: Unknown result type (might be due to invalid IL or missing references)
46362 //IL_0047: Unknown result type (might be due to invalid IL or missing references)
46363 //IL_004d: Unknown result type (might be due to invalid IL or missing references)
46364 //IL_033a: Unknown result type (might be due to invalid IL or missing references)
46365 //IL_0372: Unknown result type (might be due to invalid IL or missing references)
46366 //IL_0378: Unknown result type (might be due to invalid IL or missing references)
46367 //IL_026d: Unknown result type (might be due to invalid IL or missing references)
46368 //IL_02a5: Unknown result type (might be due to invalid IL or missing references)
46369 //IL_02ab: Unknown result type (might be due to invalid IL or missing references)
46370 //IL_030c: Unknown result type (might be due to invalid IL or missing references)
46371 //IL_0312: Unknown result type (might be due to invalid IL or missing references)
46372 //IL_0317: Unknown result type (might be due to invalid IL or missing references)
46373 //IL_0321: Unknown result type (might be due to invalid IL or missing references)
46374 //IL_0326: Unknown result type (might be due to invalid IL or missing references)
46375 //IL_03d8: Unknown result type (might be due to invalid IL or missing references)
46376 //IL_0414: Unknown result type (might be due to invalid IL or missing references)
46377 //IL_041a: Unknown result type (might be due to invalid IL or missing references)
46378 //IL_043e: Unknown result type (might be due to invalid IL or missing references)
46379 //IL_0448: Unknown result type (might be due to invalid IL or missing references)
46380 //IL_044d: Unknown result type (might be due to invalid IL or missing references)
46381 //IL_009a: Unknown result type (might be due to invalid IL or missing references)
46382 //IL_00b9: Unknown result type (might be due to invalid IL or missing references)
46383 //IL_00bf: Unknown result type (might be due to invalid IL or missing references)
46384 //IL_00cc: Unknown result type (might be due to invalid IL or missing references)
46385 //IL_00d2: Unknown result type (might be due to invalid IL or missing references)
46386 //IL_00dc: Unknown result type (might be due to invalid IL or missing references)
46387 //IL_00e1: Unknown result type (might be due to invalid IL or missing references)
46388 //IL_00e6: Unknown result type (might be due to invalid IL or missing references)
46389 //IL_012c: Unknown result type (might be due to invalid IL or missing references)
46390 //IL_0132: Unknown result type (might be due to invalid IL or missing references)
46391 //IL_0141: Unknown result type (might be due to invalid IL or missing references)
46392 //IL_014b: Unknown result type (might be due to invalid IL or missing references)
46393 //IL_0150: Unknown result type (might be due to invalid IL or missing references)
46394 //IL_0167: Unknown result type (might be due to invalid IL or missing references)
46395 //IL_016d: Unknown result type (might be due to invalid IL or missing references)
46396 //IL_0179: Unknown result type (might be due to invalid IL or missing references)
46397 //IL_017f: Unknown result type (might be due to invalid IL or missing references)
46398 //IL_0189: Unknown result type (might be due to invalid IL or missing references)
46399 //IL_018e: Unknown result type (might be due to invalid IL or missing references)
46400 //IL_0193: Unknown result type (might be due to invalid IL or missing references)
46401 if (type == 25)
46402 {
46403 int maxValue = 15;
46404 if (doFastThrowDust)
46405 {
46406 maxValue = 1;
46407 }
46408 if (Main.rand.Next(maxValue) == 0)
46409 {
46410 Dust.NewDust(position, width, height, 14, 0f, 0f, 150, default(Color), 1.3f);
46411 }
46412 }
46413 else if (type == 757)
46414 {
46415 int num = 4;
46416 if (((Vector2)(ref velocity)).Length() < 8f)
46417 {
46418 num = 10;
46419 }
46420 if (doFastThrowDust)
46421 {
46422 num /= 2;
46423 }
46424 for (int i = 0; i < 2; i++)
46425 {
46426 if (Main.rand.Next(num) == 0)
46427 {
46428 Dust dust = Dust.NewDustDirect(position, width, height, 5, 0f, 0f, 0, default(Color), 0.8f);
46429 dust.velocity += velocity / 4f;
46430 dust.fadeIn = 1.3f;
46431 }
46432 }
46433 num = 40;
46434 if (doFastThrowDust)
46435 {
46436 num /= 2;
46437 }
46438 for (float num2 = 0f; num2 < 1f; num2 += 0.1f)
46439 {
46440 if (Main.rand.Next(num) == 0)
46441 {
46442 Dust dust2 = Dust.NewDustDirect(Vector2.Lerp(Main.player[owner].Center, base.Center, Main.rand.NextFloat()) + new Vector2(-8f), 16, 16, 5, 0f, 0f, 0, default(Color), 1.3f);
46443 dust2.velocity += velocity / 4f;
46444 }
46445 }
46446 }
46447 else if (type == 26)
46448 {
46449 int num3 = Dust.NewDust(position, width, height, 172, velocity.X * 0.4f, velocity.Y * 0.4f, 100, default(Color), 1.5f);
46450 Main.dust[num3].noGravity = true;
46451 Main.dust[num3].velocity.X /= 2f;
46452 Main.dust[num3].velocity.Y /= 2f;
46453 }
46454 else if (type == 948 && !wet)
46455 {
46456 int num4 = Dust.NewDust(position, width, height, 6, velocity.X * 0.4f, velocity.Y * 0.4f, 100, default(Color), 1.2f);
46457 Main.dust[num4].noGravity = true;
46458 Main.dust[num4].velocity.X *= 4f;
46459 Main.dust[num4].velocity.Y *= 4f;
46460 Main.dust[num4].velocity = (Main.dust[num4].velocity + velocity) / 2f;
46461 }
46462 else if (type == 35)
46463 {
46464 int num5 = Dust.NewDust(position, width, height, 6, velocity.X * 0.4f, velocity.Y * 0.4f, 100, default(Color), 3f);
46465 Main.dust[num5].noGravity = true;
46466 Main.dust[num5].velocity.X *= 2f;
46467 Main.dust[num5].velocity.Y *= 2f;
46468 }
46469 else if (type == 154)
46470 {
46471 int num6 = Dust.NewDust(position, width, height, 115, velocity.X * 0.4f, velocity.Y * 0.4f, 140, default(Color), 1.5f);
46472 Main.dust[num6].noGravity = true;
46473 Dust obj = Main.dust[num6];
46474 obj.velocity *= 0.25f;
46475 }
46476 }
bool wet
The Entity is currently in water. Projectile: Affects movement speed and some projectiles die when ...
Definition Entity.cs:57
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Definition Entity.cs:33
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
int owner
The index of the player who owns this projectile. In Multiplayer, Clients "own" projectiles that they...
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...

References Terraria.Main.dust, Terraria.Dust.NewDust(), Terraria.Dust.NewDustDirect(), Terraria.Main.player, and Terraria.Main.rand.

+ Here is the call graph for this function: