/// <summary> /// Handle resetting the timer and saving the last split /// </summary> private static void LoadTimer() { // Set the last split timer Raven.Set(15, Raven.Frame, (int)Map.Level); // Reset timer to 1 frame, setting to 0 deletes the save (sometimes?) Raven.SetStuff(0, 1); }
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); } }