예제 #1
0
        internal static List <Move> GetMoveset(UserAccount avatar)
        {
            List <Move> moves = new List <Move> {
                new Attack(), new Defend()
            };

            string[] moveNames = GetClass(avatar).Movepool;

            foreach (string s in moveNames)
            {
                Move m = PsynergyDatabase.GetPsynergy(s);
                moves.Add(m);
            }

            var classSeries = GetClassSeries(avatar);
            var gear        = avatar.Inv.GetGear(classSeries.Archtype);

            if (gear.HasItem(ItemCategory.Weapon))
            {
                moves.Where(m => m is Attack).First().Emote = gear.GetItem(ItemCategory.Weapon).Icon;
            }
            if (gear.HasItem(ItemCategory.ArmWear))
            {
                moves.Where(m => m is Defend).First().Emote = gear.GetItem(ItemCategory.ArmWear).Icon;
            }
            return(moves);
        }
예제 #2
0
        internal static Move[] GetMoveset(AdeptClass adeptClass)
        {
            List <Move> moves = new List <Move>();

            string[] moveNames = adeptClass.Movepool;

            foreach (string s in moveNames)
            {
                Move m = PsynergyDatabase.GetPsynergy(s);
                moves.Add(m);
            }
            return(moves.ToArray());
        }
예제 #3
0
        public static Move[] GetMoveSet(string[] moveNames)
        {
            List <Move> moves = new List <Move> {
                new Attack(), new Defend()
            };

            foreach (string s in moveNames)
            {
                Move m = PsynergyDatabase.GetMove(s);
                moves.Add(m);
            }
            return(moves.ToArray());
        }
예제 #4
0
        internal static Move[] GetMoveset(AdeptClass adeptClass)
        {
            var moves     = new List <Move>();
            var moveNames = adeptClass.Movepool;

            foreach (var s in moveNames)
            {
                var m = PsynergyDatabase.GetMove(s);
                moves.Add(m);
            }

            return(moves.ToArray());
        }