public void SetProperty(ItemSpecProperty prop) { if (_properties.ContainsKey(prop.PropertyId)) { _properties[prop.PropertyId].Value = prop.Value; } else { _properties.Add(prop.PropertyId, new ItemSpecProperty(prop)); } }
public static void SetDurabilityMax(this ItemSpec item, short value) { var spec = new ItemSpecProperty((short)ItemSpecPropertyEnum.DurabilityMax, value); item.SetProperty(spec); }
public static void SetCost(this ItemSpec item, int value) { var spec = new ItemSpecProperty((short)ItemSpecPropertyEnum.Cost, value); item.SetProperty(spec); }
public static void SetModelName(this ItemSpec item, string value) { var spec = new ItemSpecProperty((short)ItemSpecPropertyEnum.ModelName, value); item.SetProperty(spec); }
public static void SetHungerReduceAmount(this ItemSpec item, short value) { var spec = new ItemSpecProperty((short)ItemSpecPropertyEnum.HungerReduceAmount, value); item.SetProperty(spec); }
public static void SetDescription(this ItemSpec item, string value) { var spec = new ItemSpecProperty((short)ItemSpecPropertyEnum.Description, value); item.SetProperty(spec); }