예제 #1
0
 private void ResetValues()
 {
     stockpileLocation      = WhiteoutLocation.CH_QuonsetGarage;
     daysOfFoodRequired     = 10;
     litersWaterRequired    = 10;
     litersKeroseneRequired = 1;
     item1        = WhiteoutItem.None;
     item1amount  = 1;
     item2        = WhiteoutItem.None;
     item2amount  = 1;
     item3        = WhiteoutItem.None;
     item3amount  = 1;
     item4        = WhiteoutItem.None;
     item4amount  = 1;
     item5        = WhiteoutItem.None;
     item5amount  = 1;
     item6        = WhiteoutItem.None;
     item6amount  = 1;
     item7        = WhiteoutItem.None;
     item7amount  = 1;
     item8        = WhiteoutItem.None;
     item8amount  = 1;
     item9        = WhiteoutItem.None;
     item9amount  = 1;
     item10       = WhiteoutItem.None;
     item10amount = 1;
     item11       = WhiteoutItem.None;
     item11amount = 1;
     item12       = WhiteoutItem.None;
     item12amount = 1;
 }
예제 #2
0
            private static void AddRequirement(WhiteoutItem item, int numberRequired, Action_WhiteoutGearRequirements instance)
            {
                if (item == WhiteoutItem.None)
                {
                    return;
                }

                var displayName = item.ToString().Replace('_', ' ');
                var gearName    = Dictionaries.gearItemNamesByWhiteoutItem[item];

                SetRequirement(gearName, numberRequired, instance, displayName);
            }
예제 #3
0
        private void AddRequirement(WhiteoutItem item, int number)
        {
            if (item1 == WhiteoutItem.None)
            {
                item1       = item;
                item1amount = number;
                return;
            }

            if (item2 == WhiteoutItem.None)
            {
                item2       = item;
                item2amount = number;
                return;
            }

            if (item3 == WhiteoutItem.None)
            {
                item3       = item;
                item3amount = number;
                return;
            }

            if (item4 == WhiteoutItem.None)
            {
                item4       = item;
                item4amount = number;
                return;
            }

            if (item5 == WhiteoutItem.None)
            {
                item5       = item;
                item5amount = number;
                return;
            }

            if (item6 == WhiteoutItem.None)
            {
                item6       = item;
                item6amount = number;
                return;
            }

            if (item7 == WhiteoutItem.None)
            {
                item7       = item;
                item7amount = number;
                return;
            }

            if (item8 == WhiteoutItem.None)
            {
                item8       = item;
                item8amount = number;
                return;
            }

            if (item9 == WhiteoutItem.None)
            {
                item9       = item;
                item9amount = number;
                return;
            }

            if (item10 == WhiteoutItem.None)
            {
                item10       = item;
                item10amount = number;
                return;
            }

            if (item11 == WhiteoutItem.None)
            {
                item11       = item;
                item11amount = number;
                return;
            }

            if (item12 == WhiteoutItem.None)
            {
                item12       = item;
                item12amount = number;
                return;
            }
        }