Ejemplo n.º 1
0
        private ItemSpec GenerateImpl(FoodType foodType)
        {
            if (_itemSpec.ContainsKey(foodType))
            {
                return(_itemSpec[foodType]);
            }

            var spec = new ItemSpec();

            spec.SetName(GetItemName(foodType));
            spec.SetImageName(GetImageName(foodType));
            spec.SetDescription(GetItemDescription(foodType));
            spec.SetModelName(Models.AmmoCrate01);
            spec.SetHungerReduceAmount(GetHungerReduceAmount(foodType));
            spec.SetBaseUsageTime(3000);
            spec.SetStackMax(1);

            spec = StaticItemSpecCache.Instance.AddSpec(spec);

            return(spec);
        }