public int GetStandardBagPrice(ContainerSize Size, BagType Type) { StandardBagSizeConfig SizeCfg = StandardBagSettings.First(x => x.Size == Size); int BasePrice = Type.SizeSettings.First(x => x.Size == Size).Price; double Multiplier = GlobalPriceModifier * SizeCfg.PriceModifier; if (Multiplier == 1.0) { return(BasePrice); } else { return(RoundIntegerToSecondMostSignificantDigit((int)(BasePrice * Multiplier), RoundingMode.Floor)); } }
public int GetStandardBagCapacity(ContainerSize Size, BagType Type) { StandardBagSizeConfig SizeCfg = StandardBagSettings.First(x => x.Size == Size); return(SizeCfg.GetCapacity(Type, GlobalCapacityModifier)); }