示例#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;
        }
示例#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)));
            }
        }
示例#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));
            }
        }
示例#4
0
 public int GetRucksackSlotCount(ContainerSize Size)
 {
     return(RucksackSettings.First(x => x.Size == Size).Slots);
 }