예제 #1
0
        public static Armor getArmorFromArmorData(ArmorData data, Dictionary <long, AbilityData> abilityDataDictionary, Dictionary <long, EffectData> effectDataDictionary)
        {
            Item i = getItemFromItemData(data, abilityDataDictionary, effectDataDictionary);

            Armor a = new Armor()
            {
                activeEffects  = i.activeEffects,
                armor          = data.armor,
                armorType      = data.armorType,
                ID             = i.ID,
                name           = i.name,
                passiveEffects = i.passiveEffects,
                sheetname      = i.sheetname,
                spriteindex    = i.spriteindex,
                type           = i.type,
                price          = data.price
            };

            return(a);
        }
예제 #2
0
        public static Armor getArmorFromArmorData(ArmorData data, Dictionary<long, AbilityData> abilityDataDictionary, Dictionary<long, EffectData> effectDataDictionary)
        {
            Item i = getItemFromItemData(data, abilityDataDictionary, effectDataDictionary);

            Armor a = new Armor()
            {
                activeEffects = i.activeEffects,
                armor = data.armor,
                armorType = data.armorType,
                ID = i.ID,
                name = i.name,
                passiveEffects = i.passiveEffects,
                sheetname = i.sheetname,
                spriteindex = i.spriteindex,
                type = i.type,
                price = data.price
            };
           
            return a;
        }