示例#1
0
文件: Helpers.cs 项目: Phytal/Nayu
        public static PotionResult ExecutePotion(ShardedCommandContext context, string potion, ulong user, ulong target)
        {
            var config = GlobalUserAccounts.GetUserAccount(user);
            var choms  = ActiveChomusuke.GetActiveChomusuke(user, config.OpponentId);
            var chom1  = choms.Item1;
            var chom2  = choms.Item2;
            var result = new PotionResult();

            switch (potion)
            {
            case "Strength Potion":
                result = Potions.StrengthPotion(context, chom1, chom2, target);
                break;

            case "Debuff Potion":
                result = Potions.DebuffPotion(context, chom1, chom2, target);
                break;

            case "Speed Potion":
                result = Potions.SpeedPotion(context, chom1, chom2, target);
                break;

            case "Equalizer Potion":
                result = Potions.EqualizerPotion(context, chom1, chom2, target);
                break;
            }

            return(result);
        }