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

◆ SetMount()

void Terraria.Mount.SetMount ( int m,
Player mountedPlayer,
bool faceLeft = false )
inline

Definition at line 1628 of file Mount.cs.

1629 {
1630 if (this._type == 0)
1631 {
1632 }
1633 if (mountedPlayer.wet)
1634 {
1635 return;
1636 }
1637 if (this._active)
1638 {
1639 int buff = this._data.buff;
1640 mountedPlayer.ClearBuff(buff);
1641 Mount.MountData data = this._data;
1642 if (data != null && this._active && data.Minecart)
1643 {
1644 int extraBuff = data.extraBuff;
1645 mountedPlayer.ClearBuff(extraBuff);
1646 if (data == null)
1647 {
1648 }
1649 if (!true)
1650 {
1651 }
1652 }
1653 if (!true)
1654 {
1655 }
1656 return;
1657 }
1658 int num = 1;
1659 this._active = num != 0;
1660 this._type = m;
1661 if (num == 0)
1662 {
1663 }
1664 this._data = num;
1665 if (num != 0)
1666 {
1667 bool active = this._active;
1668 if (active && active && !active)
1669 {
1670 return;
1671 }
1672 }
1673 long num2 = 0L;
1674 int type = this._type;
1675 this._flipDraw = num2 != 0L;
1676 float x = mountedPlayer.velocity.X;
1677 float y = mountedPlayer.velocity.Y;
1678 if (type == 0)
1679 {
1680 }
1681 int type2 = this._type;
1682 int abilityCooldown = this._abilityCooldown;
1683 }
class f__AnonymousType0<< Count > j__TPar
Mount.MountData _data
Definition Mount.cs:1845
int _abilityCooldown
Definition Mount.cs:1890

References Terraria.Mount._abilityCooldown, Terraria.Mount._active, Terraria.Mount._data, Terraria.Mount._type, Terraria.Player.ClearBuff(), Terraria.Mount.MountData.extraBuff, j__TPar, System.L, Terraria.Mount.MountData.Minecart, and Terraria.Entity.wet.