protected override ItemSpec GetDefaultObject() { var ret = new ItemSpec(); ret.SetDescription("Something for the pain\nRight click to use"); ret.SetName("Health pack"); ret.SetCost(5); ret.SetImageName(Icons.FirstAidKit); ret.SetModelName(Models.HealthPack01); ret.SetHealAmount(50); ret.SetStackMax(5); ret.SetBaseUsageTime(3000); return(ret); }
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); }