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

◆ SellItem()

bool Terraria.Player.SellItem ( Item item,
int stack = -1 )
inline

Definition at line 10284 of file Player.cs.

10285 {
10286 int stack2 = item.stack;
10287 Item[] array = this.inventory;
10288 int amount = Main.shopSellbackHelper.GetAmount(item);
10289 int stack3 = item.stack;
10290 int num = Math.Min(amount, stack3);
10291 int num2 = 53;
10292 Item[] array2 = this.inventory;
10293 bool flag = this.DoCoins(num2);
10295 int num3 = 53;
10296 Item[] array3 = this.inventory;
10297 bool flag2 = this.DoCoins(num3);
10299 int num4 = 53;
10300 Item[] array4 = this.inventory;
10301 bool flag3 = this.DoCoins(num4);
10303 int num5 = 53;
10304 Item[] array5 = this.inventory;
10305 bool flag4 = this.DoCoins(num5);
10307 Item[] array6 = this.inventory;
10308 Item item2;
10309 if (item2 == null || item2 != null)
10310 {
10311 }
10312 throw new ArrayTypeMismatchException();
10313 }
class f__AnonymousType0<< Count > j__TPar
static byte Min(byte val1, byte val2)
Definition Math.cs:152
Vector2 position
Definition Entity.cs:460
bool DoCoins(int i)
Definition Player.cs:11281
Item[] inventory
Definition Player.cs:21263

References System.array, Terraria.Player.DoCoins(), Terraria.GameContent.ItemShopSellbackHelper.GetAmount(), Terraria.Player.inventory, System.item, j__TPar, System.Math.Min(), Terraria.Entity.position, and Terraria.Main.shopSellbackHelper.