private void enableVariant(VanillaVariant variant) { Logger.Log(LogLevel.Info, "ExtendedVariantMode/VariantRandomizer", $"Enabling variant {variant.Name}"); if (variant == VanillaVariant.DashMode) { SaveData.Instance.Assists.DashMode = new Assists.DashModes[] { Assists.DashModes.Two, Assists.DashModes.Infinite } }
private bool isDefaultValue(VanillaVariant variant) { if (variant == VanillaVariant.DashMode) { return(SaveData.Instance.Assists.DashMode == Assists.DashModes.Normal); } if (variant == VanillaVariant.GameSpeed) { return(SaveData.Instance.Assists.GameSpeed == 10); } if (variant == VanillaVariant.Hiccups) { return(!SaveData.Instance.Assists.Hiccups); } if (variant == VanillaVariant.PlayAsBadeline) { return(!SaveData.Instance.Assists.PlayAsBadeline); } if (variant == VanillaVariant.InfiniteStamina) { return(!SaveData.Instance.Assists.InfiniteStamina); } if (variant == VanillaVariant.Invincible) { return(!SaveData.Instance.Assists.Invincible); } if (variant == VanillaVariant.InvisibleMotion) { return(!SaveData.Instance.Assists.InvisibleMotion); } if (variant == VanillaVariant.LowFriction) { return(!SaveData.Instance.Assists.LowFriction); } if (variant == VanillaVariant.MirrorMode) { return(!SaveData.Instance.Assists.MirrorMode); } if (variant == VanillaVariant.NoGrabbing) { return(!SaveData.Instance.Assists.NoGrabbing); } if (variant == VanillaVariant.SuperDashing) { return(!SaveData.Instance.Assists.SuperDashing); } if (variant == VanillaVariant.ThreeSixtyDashing) { return(!SaveData.Instance.Assists.ThreeSixtyDashing); } if (variant == VanillaVariant.DashAssist) { return(!SaveData.Instance.Assists.DashAssist); } Logger.Log(LogLevel.Error, "ExtendedVariantMode/VariantRandomizer", $"Requesting default value check for non-existent vanilla variant {variant.Name}"); return(false); }
private void disableVariant(VanillaVariant variant) { Logger.Log(LogLevel.Info, "ExtendedVariantMode/VariantRandomizer", $"Disabling variant {variant.Name}"); if (variant == VanillaVariant.DashMode) { SaveData.Instance.Assists.DashMode = Assists.DashModes.Normal; } else if (variant == VanillaVariant.GameSpeed) { SaveData.Instance.Assists.GameSpeed = 10; } else { toggleVanillaVariant(variant, false); } }