Exemplo n.º 1
0
        public void GetRucksackMenuOptions(ContainerSize Size, out int NumColumns, out int SlotSize)
        {
            RucksackSizeConfig SizeCfg = RucksackSettings.First(x => x.Size == Size);

            NumColumns = SizeCfg.MenuColumns;
            SlotSize   = SizeCfg.MenuSlotSize;
        }
Exemplo n.º 2
0
        public int GetRucksackCapacity(ContainerSize Size)
        {
            RucksackSizeConfig SizeCfg = RucksackSettings.First(x => x.Size == Size);
            int    BaseCapacity        = SizeCfg.BaseCapacity;
            double Multiplier          = GlobalCapacityModifier * SizeCfg.CapacityModifier;

            if (Multiplier == 1.0)
            {
                return(BaseCapacity);
            }
            else
            {
                return(Math.Max(1, RoundIntegerToSecondMostSignificantDigit((int)(BaseCapacity * Multiplier), RoundingMode.Round)));
            }
        }
Exemplo n.º 3
0
        public int GetRucksackPrice(ContainerSize Size)
        {
            RucksackSizeConfig SizeCfg = RucksackSettings.First(x => x.Size == Size);
            int    BasePrice           = SizeCfg.BasePrice;
            double Multiplier          = GlobalPriceModifier * SizeCfg.PriceModifier;

            if (Multiplier == 1.0)
            {
                return(BasePrice);
            }
            else
            {
                return(RoundIntegerToSecondMostSignificantDigit((int)(BasePrice * Multiplier), RoundingMode.Round));
            }
        }