Beispiel #1
0
        public static Weapon getWeaponFromWeaponData(WeaponData data, Dictionary <long, AbilityData> abilityDataDictionary, Dictionary <long, EffectData> effectDataDictionary)
        {
            Item i = getItemFromItemData(data, abilityDataDictionary, effectDataDictionary);

            Weapon w = new Weapon()
            {
                actionPoints   = data.AP,
                activeEffects  = i.activeEffects,
                ID             = i.ID,
                maxDamage      = data.maxDamage,
                minDamage      = data.minDamage,
                name           = i.name,
                passiveEffects = i.passiveEffects,
                sheetname      = i.sheetname,
                spriteindex    = i.spriteindex,
                type           = i.type,
                weaponType     = data.weaponType,
                price          = data.price
            };


            return(w);
        }
Beispiel #2
0
        public static Weapon getWeaponFromWeaponData(WeaponData data, Dictionary<long, AbilityData> abilityDataDictionary, Dictionary<long, EffectData> effectDataDictionary)
        {
            Item i = getItemFromItemData(data, abilityDataDictionary, effectDataDictionary);

            Weapon w = new Weapon()
            {
                actionPoints = data.AP,
                activeEffects = i.activeEffects,
                ID = i.ID,
                maxDamage = data.maxDamage,
                minDamage = data.minDamage,
                name = i.name,
                passiveEffects = i.passiveEffects,
                sheetname = i.sheetname,
                spriteindex = i.spriteindex,
                type = i.type,
                weaponType = data.weaponType,
                price = data.price

            };
          

            return w;
        }