Exemple #1
0
        public CommandResult Cast(string data, string userId)
        {
            var fisher = FishingSystem.GetFisherById(userId);

            if (fisher != null)
            {
                if (fisher.Hooked != null)
                {
                    return(new CommandResult("Something's already bit your line! Quick, type !catch to snag it!"));
                }
                if (fisher.IsFishing)
                {
                    return(new CommandResult("Your line is already cast! I'm sure a fish'll be along soon..."));
                }
            }
            FishingSystem.Cast(userId);
            return(new CommandResult("You cast your line out into the water."));
        }