Exemple #1
0
        private static bool Chance(Interpreter interpreter, Source source, Stringe tagname, Argument[] args)
        {
            int a;

            if (!Int32.TryParse(args[0].GetString(), out a))
            {
                throw new RantException(source, tagname, "Invalid chance number.");
            }
            interpreter.SetChance(a);
            return(false);
        }