コード例 #1
0
		public HarborOrderLine(Item newItem, int buyPrice, int sellPrice, int buyCount, int sellCount)
		{
			item = newItem;
			BuyPrice = buyPrice;
			SellPrice = sellPrice;
			BuyCount = buyCount;
			SellCount = sellCount;
		}
コード例 #2
0
ファイル: Prices.cs プロジェクト: jaronimoe/cellVIEW_animated
		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));
		}
コード例 #3
0
		public JRPGOrderLine(Item newItem, int newPrice)
		{
			item = newItem;
			Price = newPrice;
		}