Пример #1
0
        internal static List <Move> GetMoveset(UserAccount avatar)
        {
            var moves = new List <Move> {
                new Attack(), new Defend()
            };

            var moveNames = GetClass(avatar).Movepool;

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

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

            if (gear.HasItem(ItemCategory.Weapon))
            {
                moves.First(m => m is Attack).Emote = gear.GetItem(ItemCategory.Weapon).Icon;
            }
            if (gear.HasItem(ItemCategory.ArmWear))
            {
                moves.First(m => m is Defend).Emote = gear.GetItem(ItemCategory.ArmWear).Icon;
            }
            return(moves);
        }
Пример #2
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());
        }
Пример #3
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());
        }