Ejemplo n.º 1
0
        public void AddExperience(uint exp)
        {
            Experience += exp;
            var level = Formulae.Level(Level, Experience); // should probably cache exp to next level instead

            if (level > Level)
            {
                AddLevel((byte)(level - Level));
            }
            Packets.Message.Animated(Position, Colors.White, exp.ToString());
            Packets.Stats();
        }