Advertisement
sdini

example

Mar 15th, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.65 KB | None | 0 0
  1.          public static StaticContext TheGame { get; private set; }
  2.          public static Farmer Player => TheGame.Player;
  3.  
  4.          int itemsInInventoryCountStart = Player.Items.Count;
  5.          int itemsInInventoryCountEnd = Player.Items.Count;
  6.          int itemCountDiffereance = 0;
  7.          temCountDiffereance = itemsInInventoryCountEnd - itemsInInventoryCountStart;
  8.          
  9.          if(itemCountDiffereance > 0)
  10.          {
  11.              int c = itemsInInventoryCountStart - 1;
  12.              while (c < itemsInInventoryCountEnd - 1)
  13.          {
  14.              Player.Items[c] = null;
  15.          }
  16.                                          
  17.          }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement