예제 #1
0
        /****/

        public static void AddArmourType(this ItemSpec item, ArmourWearLocation type)
        {
            var prop = item.GetProperty(ItemSpecPropertyEnum.ArmourType);

            if (prop == null)
            {
                item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.ArmourType, (short)type));
            }
            else
            {
                var value = prop.ShortValue | (short)type;
                item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.ArmourType, value));
            }
        }
예제 #2
0
        public ItemSpec Clone(int id)
        {
            var ret = new ItemSpec(id);

            foreach (var item in _properties)
            {
                ret.SetProperty(item.Value);
            }

            return(ret);
        }
예제 #3
0
 public static void SetWeaponNoiseDistance(this ItemSpec item, float value)
 {
     item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.NoiseRange, value));
 }
예제 #4
0
        public static void SetModelName(this ItemSpec item, string value)
        {
            var spec = new ItemSpecProperty((short)ItemSpecPropertyEnum.ModelName, value);

            item.SetProperty(spec);
        }
예제 #5
0
 public static void SetHealAmount(this ItemSpec item, short value)
 {
     item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.HealAmount, value));
 }
예제 #6
0
        public static void SetHungerReduceAmount(this ItemSpec item, short value)
        {
            var spec = new ItemSpecProperty((short)ItemSpecPropertyEnum.HungerReduceAmount, value);

            item.SetProperty(spec);
        }
예제 #7
0
        public static void SetDescription(this ItemSpec item, string value)
        {
            var spec = new ItemSpecProperty((short)ItemSpecPropertyEnum.Description, value);

            item.SetProperty(spec);
        }
예제 #8
0
        public static void SetDurabilityMax(this ItemSpec item, short value)
        {
            var spec = new ItemSpecProperty((short)ItemSpecPropertyEnum.DurabilityMax, value);

            item.SetProperty(spec);
        }
예제 #9
0
 public static void SetResourceAmount(this ItemSpec item, byte amount)
 {
     item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.ResourceAmount, amount));
 }
예제 #10
0
 public static void SetReloadClipSize(this ItemSpec item, short size)
 {
     item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.ReloadClipSize, size));
 }
예제 #11
0
 public static void SetClipSize(this ItemSpec item, short value)
 {
     item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.ClipSize, value));
 }
예제 #12
0
 public static void SetMeleeRange(this ItemSpec item, float value)
 {
     item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.MeleeRange, value));
 }
예제 #13
0
 public static void SetWeaponDelay(this ItemSpec item, uint value)
 {
     item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.UsageDelay, (int)value));
 }
예제 #14
0
 public static void SetWeaponType(this ItemSpec item, WeaponTypes value)
 {
     item.SetProperty(new ItemSpecProperty((short)ItemSpecPropertyEnum.WeaponType, (short)value));
 }
예제 #15
0
 public static void SetAmmoType(this ItemSpec item, AmmoType value)
 {
     item.SetProperty(new ItemSpecProperty((short)ItemSpecPropertyEnum.AmmoType, (short)value));
 }
예제 #16
0
 public static void SetDefenceMultipliers(this ItemSpec item, Dictionary <DamageTypeEnum, float> multipliers)
 {
     item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.DefenceValues, multipliers));
 }
예제 #17
0
 public static void SetResourceType(this ItemSpec item, ResourceType resource)
 {
     item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.ResouceType, (short)resource));
 }
예제 #18
0
 public static void SetBulletSpread(this ItemSpec item, float value)
 {
     item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.BulletSpread, value));
 }
예제 #19
0
        public static void SetCost(this ItemSpec item, int value)
        {
            var spec = new ItemSpecProperty((short)ItemSpecPropertyEnum.Cost, value);

            item.SetProperty(spec);
        }
예제 #20
0
 public static void SetDamageMax(this ItemSpec item, float value)
 {
     item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.DamageMax, value));
 }
예제 #21
0
 public static void SetDamageType(this ItemSpec item, DamageTypeEnum type)
 {
     item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.DamageType, (short)type));
 }
예제 #22
0
 public static void SetBaseUsageTime(this ItemSpec item, short value)
 {
     item.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.BaseUsageTime, value));
 }