public int SCalcGive(PZStorage s, int myamount) { int max = SCalcMaxGive(s); if (myamount > max) { return(max); } else { return(myamount); } }
public SnapshotStorage(PZStorage s) { try { inputitem = s.inputitem; } catch { } try { client = new SnapshotClient(s.client); } catch { } }
public int SCalcMaxGive(PZStorage s) { int no = s.client.CountItem(-1); //free spaces if (no < 1) { return(1); } else { return(no); //do not have enough space so just fill up their inv } }
public static void HandleStorage(PZStorage c) { }