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

◆ DoGemMinecartEffect()

void Terraria.Mount.DoGemMinecartEffect ( Player mountedPlayer,
int dustType )
inlineprivate

Definition at line 4425 of file Mount.cs.

4426 {
4427 //IL_0020: Unknown result type (might be due to invalid IL or missing references)
4428 //IL_002f: Unknown result type (might be due to invalid IL or missing references)
4429 //IL_0034: Unknown result type (might be due to invalid IL or missing references)
4430 //IL_0039: Unknown result type (might be due to invalid IL or missing references)
4431 //IL_0044: Unknown result type (might be due to invalid IL or missing references)
4432 //IL_004a: Unknown result type (might be due to invalid IL or missing references)
4433 //IL_004f: Unknown result type (might be due to invalid IL or missing references)
4434 //IL_0054: Unknown result type (might be due to invalid IL or missing references)
4435 //IL_0056: Unknown result type (might be due to invalid IL or missing references)
4436 //IL_005b: Unknown result type (might be due to invalid IL or missing references)
4437 //IL_005c: Unknown result type (might be due to invalid IL or missing references)
4438 //IL_0061: Unknown result type (might be due to invalid IL or missing references)
4439 //IL_0062: Unknown result type (might be due to invalid IL or missing references)
4440 //IL_0067: Unknown result type (might be due to invalid IL or missing references)
4441 //IL_0069: Unknown result type (might be due to invalid IL or missing references)
4442 //IL_006c: Unknown result type (might be due to invalid IL or missing references)
4443 //IL_0071: Unknown result type (might be due to invalid IL or missing references)
4444 //IL_0072: Unknown result type (might be due to invalid IL or missing references)
4445 //IL_0080: Unknown result type (might be due to invalid IL or missing references)
4446 //IL_0086: Unknown result type (might be due to invalid IL or missing references)
4447 //IL_00b1: Unknown result type (might be due to invalid IL or missing references)
4448 //IL_00bb: Unknown result type (might be due to invalid IL or missing references)
4449 //IL_00c0: Unknown result type (might be due to invalid IL or missing references)
4450 if (Main.rand.Next(10) == 0)
4451 {
4452 Vector2 vector = Main.rand.NextVector2Square(-1f, 1f) * new Vector2(22f, 10f);
4453 Vector2 vector2 = new Vector2(0f, 10f) * mountedPlayer.Directions;
4454 Vector2 pos = mountedPlayer.Center + vector2 + vector;
4455 pos = mountedPlayer.RotatedRelativePoint(pos);
4456 Dust dust = Dust.NewDustPerfect(pos, dustType);
4457 dust.noGravity = true;
4458 dust.fadeIn = 0.6f;
4459 dust.scale = 0.4f;
4460 dust.velocity *= 0.25f;
4461 dust.shader = GameShaders.Armor.GetSecondaryShader(mountedPlayer.cMinecart, mountedPlayer);
4462 }
4463 }
static ArmorShaderDataSet Armor
Definition GameShaders.cs:7

References Terraria.Graphics.Shaders.GameShaders.Armor, Terraria.Dust.NewDustPerfect(), and Terraria.Main.rand.

Referenced by Terraria.Mount.UpdateEffects().

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