Ejemplo n.º 1
0
        public static RangedWeapon getRangedWeaponFromRangedWeaponData(RangedWeaponData data, Dictionary <long, AbilityData> abilityDataDictionary, Dictionary <long, EffectData> effectDataDictionary)
        {
            Weapon       w  = getWeaponFromWeaponData(data, abilityDataDictionary, effectDataDictionary);
            RangedWeapon rw = new RangedWeapon()
            {
                ID             = w.ID,
                name           = w.name,
                actionPoints   = w.actionPoints,
                activeEffects  = w.activeEffects,
                maxDamage      = w.maxDamage,
                minDamage      = w.minDamage,
                passiveEffects = w.passiveEffects,
                sheetname      = w.sheetname,
                spriteindex    = w.spriteindex,
                type           = w.type,
                weaponType     = w.weaponType,

                range    = data.range,
                ammoType = data.ammoType,
                price    = data.price
            };

            return(rw);
        }
Ejemplo n.º 2
0
        public static RangedWeapon getRangedWeaponFromRangedWeaponData(RangedWeaponData data, Dictionary<long, AbilityData> abilityDataDictionary, Dictionary<long, EffectData> effectDataDictionary)
        {
            Weapon w = getWeaponFromWeaponData(data, abilityDataDictionary, effectDataDictionary);
            RangedWeapon rw = new RangedWeapon()
            {
                ID = w.ID,
                name = w.name,
                actionPoints = w.actionPoints,
                activeEffects = w.activeEffects,
                maxDamage = w.maxDamage,
                minDamage = w.minDamage,
                passiveEffects = w.passiveEffects,
                sheetname = w.sheetname,
                spriteindex = w.spriteindex,
                type = w.type,
                weaponType = w.weaponType,

                range = data.range,
                ammoType = data.ammoType,
                price = data.price
            };

            return rw;
        }