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