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

◆ DrawPurchaseButton()

void GUIShop.DrawPurchaseButton ( )
inline

Definition at line 92 of file GUIShop.cs.

93 {
94 int num = 1;
95 if (num == 0)
96 {
97 }
98 if (Main.npcShop == 0)
99 {
100 return;
101 }
102 if (num == 0)
103 {
104 }
105 int myPlayer = Main.myPlayer;
106 Item selectedItem = this.SelectedItem;
107 int type = this.SelectedItem.type;
108 int stack = this.SelectedItem.stack;
109 if (stack == 0)
110 {
111 }
112 int myPlayer2 = Main.myPlayer;
113 if (!this._pendingPurchase)
114 {
115 }
116 int shopSpecialCurrency = this.SelectedItem.shopSpecialCurrency;
117 if (stack == 0)
118 {
119 }
120 Item mouseItem = Main.mouseItem;
122 bool flag = mouseItem.IsTheSameAs(selectedItem2);
123 if (stack == 0)
124 {
125 }
126 if (Main.mouseItem.type != 0)
127 {
128 return;
129 }
130 }
class f__AnonymousType0<< Count > j__TPar
Item SelectedItem
Definition GUIShop.cs:26
bool _pendingPurchase
Definition GUIShop.cs:350
bool IsTheSameAs(Item compareItem)
Definition Item.cs:1768
int shopSpecialCurrency
Definition Item.cs:2379
static int myPlayer
Definition Main.cs:2337
static Item mouseItem
Definition Main.cs:2155
static int npcShop
Definition Main.cs:2547

References _pendingPurchase, Terraria.Item.IsTheSameAs(), j__TPar, Terraria.Main.mouseItem, Terraria.Main.myPlayer, Terraria.Main.npcShop, SelectedItem, Terraria.Item.shopSpecialCurrency, System.stack, Terraria.Item.stack, and Terraria.Item.type.