// Returns the price of a good based on a player's trade skill. private int AdjustPriceOnSkills(Good good) { return(Math.Max(good.Price(planetTech) - TradeSkillModifier, 1)); }
// Gets the price for a specific type of Goods. public Int32 GetPrice(Good item) { return(purchasePrices.ContainsKey(item) ? purchasePrices[item] : Int32.MaxValue); }