public HarborOrderLine(Item newItem, int buyPrice, int sellPrice, int buyCount, int sellCount) { item = newItem; BuyPrice = buyPrice; SellPrice = sellPrice; BuyCount = buyCount; SellCount = sellCount; }
public static int GetPrice(Item item, float priceFactor) { if (!prices.ContainsKey(item.Name)) { return 1; } return Mathf.Max(1, Mathf.RoundToInt(prices[item.Name] * priceFactor)); }
public JRPGOrderLine(Item newItem, int newPrice) { item = newItem; Price = newPrice; }