terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ DoSpawnDust()

void Terraria.Mount.DoSpawnDust ( Player mountedPlayer,
bool isDismounting )
inlineprivate

Definition at line 1686 of file Mount.cs.

1687 {
1688 if (!true)
1689 {
1690 }
1691 bool netHostOnly = Main.NetHostOnly;
1692 int type = this._type;
1693 int num = 1;
1694 float x = mountedPlayer.position.X;
1695 float y = mountedPlayer.position.Y;
1696 int width = mountedPlayer.width;
1697 bool wet = mountedPlayer.wet;
1698 if (type == 0)
1699 {
1700 }
1701 Dust dust;
1702 float scale = dust.scale;
1703 if (type == 0)
1704 {
1705 }
1706 dust.noGravity = num != 0;
1707 dust.scale = x;
1708 float x2 = dust.velocity.X;
1709 float y2 = dust.velocity.Y;
1710 float x3 = mountedPlayer.velocity.X;
1711 float y3 = mountedPlayer.velocity.Y;
1712 if (type == 0)
1713 {
1714 }
1715 dust.velocity.X = x;
1716 dust.velocity.Y = y;
1717 dust.velocity.X = x;
1718 dust.velocity.Y = y;
1719 dust.velocity.Y = x;
1720 dust.noLight = num != 0;
1721 int num2;
1722 if (num2 == 0)
1723 {
1724 Dust dust2 = Dust.CloneDust(dust);
1725 float scale2 = dust2.scale;
1726 dust2.scale = scale2;
1727 }
1728 }
class f__AnonymousType0<< Count > j__TPar

References Terraria.Mount._type, Terraria.Dust.CloneDust(), j__TPar, Terraria.Main.NetHostOnly, Terraria.Dust.scale, Terraria.Dust.velocity, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.

Referenced by Terraria.Mount.Dismount().