Exemplo n.º 1
0
        public override void Load(TagCompound tag)
        {
            //dash
            dash        = new Dash(player);
            dash.Locked = tag.GetBool(nameof(dash));
            Abilities.Add(dash);
            //wisp
            wisp        = new Wisp(player);
            wisp.Locked = tag.GetBool(nameof(wisp));
            Abilities.Add(wisp);
            //pure
            pure        = new Pure(player);
            pure.Locked = tag.GetBool(nameof(pure));
            Abilities.Add(pure);
            //smash
            smash        = new Smash(player);
            smash.Locked = tag.GetBool(nameof(smash));
            Abilities.Add(smash);
            //shadow dash
            sdash        = new Superdash(player);
            sdash.Locked = tag.GetBool(nameof(sdash));
            Abilities.Add(sdash);


            //loads the player's maximum stamina.
            StatStaminaMaxPerm = tag.GetInt(nameof(StatStaminaMaxPerm));

            //loads infusion data.
            slot1 = tag.Get <Item>(nameof(slot1)); if (slot1.Name == "")
            {
                slot1 = null;
            }
            slot2 = tag.Get <Item>(nameof(slot2)); if (slot2.Name == "")
            {
                slot2 = null;
            }
            HasSecondSlot = tag.GetBool(nameof(HasSecondSlot));
        }