Ejemplo n.º 1
0
        public override void Action(CommandCaller caller, string input, string[] args)
        {
            RPGPlayer character = caller.Player.GetModPlayer <RPGPlayer>();
            int       level     = Int32.Parse(args[0]);

            level = Mathf.Clamp(level, 0, 9999);

            character.ResetSkillTree();

            for (int i = 0; i < level; i++)
            {
                character.commandLevelup();
            }
        }
Ejemplo n.º 2
0
        private void ResetStats(UIMouseEvent evt, UIElement listeningElement)
        {
            if (!visible)
            {
                return;
            }
            Main.PlaySound(SoundID.MenuOpen);
            RPGPlayer rPGPlayer = Main.player[Main.myPlayer].GetModPlayer <RPGPlayer>();

            rPGPlayer.ResetSkillTree();
            rPGPlayer.GetskillTree.Init();
            dragging = false;
            LoadSkillTree();
        }