public static bool IsLegwear(this ItemSpec item) { return(item.CanBeWornOnLocation(ArmourWearLocation.Legs)); }
public static string GetDescription(this ItemSpec item) { return(item.GetProperty(ItemSpecPropertyEnum.Description).StringValue); }
public static void SetDurabilityMax(this ItemSpec item, short value) { var spec = new ItemSpecProperty((short)ItemSpecPropertyEnum.DurabilityMax, value); item.SetProperty(spec); }
public static void SetResourceType(this ItemSpec item, ResourceType resource) { item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.ResouceType, (short)resource)); }
/**/ public static string GetImageName(this ItemSpec item) { return(item.GetProperty(ItemSpecPropertyEnum.ImageName).StringValue); } public static void SetImageName(this ItemSpec item, string value) { var spec = new ItemSpecProperty((short)ItemSpecPropertyEnum.ImageName, value); item.SetProperty(spec); } /**/ public static int GetCost(this ItemSpec item) { return(item.GetProperty(ItemSpecPropertyEnum.Cost).IntValue); }
public static void SetModelName(this ItemSpec item, string value) { var spec = new ItemSpecProperty((short)ItemSpecPropertyEnum.ModelName, value); item.SetProperty(spec); }
public static void SetWeaponNoiseDistance(this ItemSpec item, float value) { item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.NoiseRange, value)); }
public static short GetReloadClipSize(this ItemSpec item) { return(item.GetProperty(ItemSpecPropertyEnum.ReloadClipSize).ShortValue); }
public static void SetReloadClipSize(this ItemSpec item, short size) { item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.ReloadClipSize, size)); }
public static void SetMeleeRange(this ItemSpec item, float value) { item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.MeleeRange, value)); }
public static void SetClipSize(this ItemSpec item, short value) { item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.ClipSize, value)); }
/****/ public static float GetMeleeRange(this ItemSpec item) { return(item.GetProperty(ItemSpecPropertyEnum.MeleeRange).FloatValue); }
public static void SetWeaponDelay(this ItemSpec item, uint value) { item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.UsageDelay, (int)value)); }
public static bool IsFootwear(this ItemSpec item) { return(item.CanBeWornOnLocation(ArmourWearLocation.Feet)); }
public static void SetHungerReduceAmount(this ItemSpec item, short value) { var spec = new ItemSpecProperty((short)ItemSpecPropertyEnum.HungerReduceAmount, value); item.SetProperty(spec); }
/****/ public static float GetBulletSpread(this ItemSpec item) { return(item.GetProperty(ItemSpecPropertyEnum.BulletSpread).FloatValue); }
public static void SetHealAmount(this ItemSpec item, short value) { item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.HealAmount, value)); }
public static void SetBulletSpread(this ItemSpec item, float value) { item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.BulletSpread, value)); }
public static bool IsHealthPack(this ItemSpec item) { return(item.GetHealAmount() > 0 && item.IsWeapon() == false); }
public static float GetDamageMax(this ItemSpec item) { return(item.GetProperty(ItemSpecPropertyEnum.DamageMax).FloatValue); }
public static void SetDefenceMultipliers(this ItemSpec item, Dictionary <DamageTypeEnum, float> multipliers) { item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.DefenceValues, multipliers)); }
/**/ public static string GetName(this ItemSpec item) { return(item.GetProperty(ItemSpecPropertyEnum.Name).StringValue); } public static void SetName(this ItemSpec item, string value) { var spec = new ItemSpecProperty((short)ItemSpecPropertyEnum.Name, value); item.SetProperty(spec); } /**/ public static string GetModelName(this ItemSpec item) { return(item.GetProperty(ItemSpecPropertyEnum.ModelName).StringValue); }
public static void SetResourceAmount(this ItemSpec item, byte amount) { item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.ResourceAmount, amount)); }
public static void SetDamageMax(this ItemSpec item, float value) { item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.DamageMax, value)); }
public static void SetCost(this ItemSpec item, int value) { var spec = new ItemSpecProperty((short)ItemSpecPropertyEnum.Cost, value); item.SetProperty(spec); }
public static DamageTypeEnum GetDamageType(this ItemSpec item) { return((DamageTypeEnum)(item.GetProperty(ItemSpecPropertyEnum.DamageType).ShortValue)); }
/**/ public static byte GetStackMax(this ItemSpec item) { return(item.GetProperty(ItemSpecPropertyEnum.StackMax).ByteValue); } public static void SetStackMax(this ItemSpec item, byte value) { var spec = new ItemSpecProperty((short)ItemSpecPropertyEnum.StackMax, value); item.SetProperty(spec); } /**/ public static short GetDurabilityMax(this ItemSpec item) { return(item.GetProperty(ItemSpecPropertyEnum.DurabilityMax).ShortValue); }
public static void SetDamageType(this ItemSpec item, DamageTypeEnum type) { item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.DamageType, (short)type)); }
public static bool HasDurability(this ItemSpec item) { return(item.GetProperty(ItemSpecPropertyEnum.DurabilityMax) != null); }
public static bool IsBodywear(this ItemSpec item) { return(item.CanBeWornOnLocation(ArmourWearLocation.Body)); }