Ejemplo n.º 1
0
        /// <summary>
        /// Gets the base job based on a job.
        /// </summary>
        /// <param name="job">The job.</param>
        /// <returns>The base job associated with it.</returns>
        public static Enums.Job GetBaseJob(Enums.Job job)
        {
            if (((int)job) >= 100)
            {
                return(Enums.Job.InternTaoist);
            }

            var baseJob = ((int)job / 10) * 10;

            return((Enums.Job)baseJob);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets stats based on a job and level.
        /// </summary>
        /// <param name="job">The job.</param>
        /// <param name="level">The level.</param>
        /// <returns>The stats associated with the job and level.</returns>
        public static ushort[] Get(Enums.Job job, byte level)
        {
            var baseJob = Tools.JobTools.GetBaseJob(job);

            return(Get((byte)baseJob, level));
        }