示例#1
0
        private static Upgrades CreateUpgrades()
        {
            Upgrades upgrades = new Upgrades();

            upgrades.Glove           = Raven.Glove;
            upgrades.Feather         = Raven.Feather;
            upgrades.ZepharasFeather = Raven.ElectricFeather;
            upgrades.IcorasFeather   = Raven.IceFeather;
            upgrades.MagirasFeather  = Raven.FireFeather;

            upgrades.ChargeAttack = Raven.ChargeUp;
            upgrades.ZepharasRage = Raven.ElectricCharge;
            upgrades.IcorasWrath  = Raven.IceCharge;
            upgrades.MagirasFury  = Raven.FireCharge;

            upgrades.DoubleJump   = Raven.DoubleJump;
            upgrades.FlashDash    = Raven.ElectricDoubleJump;
            upgrades.Stratosphere = Raven.IceDoubleJump;
            upgrades.BlastOff     = Raven.FireDoubleJump;

            upgrades.Swim      = Raven.Swim;
            upgrades.PerkSlots = GameState.Quinn.MaxPerks;

            return(upgrades);
        }
示例#2
0
        public static void Load(Upgrades upgrades)
        {
            Raven.Glove           = upgrades.Glove;
            Raven.Feather         = upgrades.Feather;
            Raven.ElectricFeather = upgrades.ZepharasFeather;
            Raven.IceFeather      = upgrades.IcorasFeather;
            Raven.FireFeather     = upgrades.MagirasFeather;

            Raven.ChargeUp       = upgrades.ChargeAttack;
            Raven.ElectricCharge = upgrades.ZepharasRage;
            Raven.IceCharge      = upgrades.IcorasWrath;
            Raven.FireCharge     = upgrades.MagirasFury;

            Raven.DoubleJump         = upgrades.DoubleJump;
            Raven.ElectricDoubleJump = upgrades.FlashDash;
            Raven.IceDoubleJump      = upgrades.Stratosphere;
            Raven.FireDoubleJump     = upgrades.BlastOff;

            Raven.Swim = upgrades.Swim;

            int extraPerkSlots = upgrades.PerkSlots - 4;

            if (extraPerkSlots > 0)
            {
                Raven.SetStuff(36, 1);
                extraPerkSlots--;
            }
            if (extraPerkSlots > 0)
            {
                Raven.SetStuff(37, 1);
                extraPerkSlots--;
            }
            if (extraPerkSlots > 0)
            {
                Raven.SetStuff(38, 1);
            }
        }