public void Reset() { BoolValues.Clear(); IntValues.Clear(); FloatValues.Clear(); HardMode = false; ReduceLagInGrimmFight = false; EvenMoreLagReduction = false; NightmareGodGrimm = false; NightmareGodGrimmDies = false; TimeAttackMode = false; OneHitMode = false; StartingDanceSpeedMultiplier = 0.8f; MaximumDanceSpeed = 3.0f; DamageToIncreaseDanceSpeedByOne = 5000.0f; DamageToIncreaseStaggerHitsByOne = 300; StartingHitsToStagger = 8; modernHardRandomSpikesDmg = 1500; modernHardNGGSpikesDmg = 7000; modernHardDeathWallDmg = 4000; modernHardSanicDmg = 9000; // Six minutes, slim shady. TimeAttackTime = 60 * 6; settingsVersion = version_info.SETTINGS_VER; }
public void Reset() { BoolValues.Clear(); StringValues.Clear(); IntValues.Clear(); FloatValues.Clear(); }
public void Reset() { BoolValues.Clear(); IntValues.Clear(); FloatValues.Clear(); StringValues.Clear(); infiniteGrimmIntegration = true; ghostBalls = true; maxAttackSpeedMult = 2.5f; maxRangeMult = 2.0f; maxBallMoveSpeed = 1.5f; maxBallSize = 2.0f; maxDamage = 1000; notchesCost = 2; maxSoulAdd = 200; volumeMultiplier = 0.6f; colorAlpha = 1.0f; colorBlue = 1.0f; colorRed = 1.0f; colorGreen = 1.0f; SettingsVersion = VersionInfo.SettingsVer; }
public void OnAfterDeserialize() { foreach ((FieldInfo fi, Type type) in _fields) { if (fi.FieldType == typeof(bool)) { if (BoolValues.TryGetValue($"{type.Name}:{fi.Name}", out bool val)) { fi.SetValue(null, val); } } else if (fi.FieldType == typeof(float)) { if (FloatValues.TryGetValue($"{type.Name}:{fi.Name}", out float val)) { fi.SetValue(null, val); } } else if (fi.FieldType == typeof(int)) { if (IntValues.TryGetValue($"{type.Name}:{fi.Name}", out int val)) { fi.SetValue(null, val); } } } }
public void OnAfterDeserialize() { foreach (KeyValuePair <FieldInfo, Type> pair in _fields) { FieldInfo fi = pair.Key; if (fi.FieldType == typeof(bool)) { if (BoolValues.TryGetValue($"{pair.Value.Name}:{fi.Name}", out bool val)) { fi.SetValue(null, val); } } else if (fi.FieldType == typeof(float)) { if (FloatValues.TryGetValue($"{pair.Value.Name}:{fi.Name}", out float val)) { fi.SetValue(null, val); } } else if (fi.FieldType == typeof(int)) { if (IntValues.TryGetValue($"{pair.Value.Name}:{fi.Name}", out int val)) { fi.SetValue(null, val); } } } }
public void reset() { BoolValues.Clear(); IntValues.Clear(); FloatValues.Clear(); StringValues.Clear(); settingsVersion = globals.SETTINGS_VER; onlyEnableInGodmaster = false; comboAffectsPlayerDamage = true; comboLossOnHit = true; comboDrainRate = 1.0f; damageModifier = 0.4f; comboIncrementHits = 8; tenXcomboIncrementHits = 35; doNotModifyAnyStringValues = globals.DO_NOT_MODIFY; string unset = char.ToString((char)globals.gm1_bestclear.None) + char.ToString((char)globals.gm1_numbindings.None); unset = char.ToString(cheat_detect.checksumString(unset)) + unset; soulless1 = unset; soulless2 = unset; soulless3 = unset; soulless4 = unset; soulless5 = unset; }
/// <summary> /// Handles fetching of a value in the BoolValues Dictionary /// </summary> /// <param name="defaultValue">Default Value to use if value is not found in the Settings Dictionary</param> /// <param name="name">Compiler Generated Name of Property</param> /// <returns>Bool Value for the dictionary</returns> public bool GetBool(bool?defaultValue = null, [CallerMemberName] string name = null) { if (name == null) { return(false); } return(BoolValues.ContainsKey(name) ? BoolValues[name] : defaultValue ?? false); }
public void reset() { BoolValues.Clear(); IntValues.Clear(); FloatValues.Clear(); StringValues.Clear(); settingsVersion = version_info.SETTINGS_VER; }
public SettingPresenter([NotNull] ApplicationPresenter applicationPresenter, [NotNull] SettingsView view) : base(view, "HeaderString", applicationPresenter) { BoolValues.Add("True"); BoolValues.Add("False"); _config = Sim.MyGeneralConfig; _defaultOptions.Add(Allfiles); _defaultOptions.Add(NoFiles); _defaultOptions.Add(Onlysum); _defaultOptions.Add(OnlySumAndDevice); Refresh(); }
public void Reset() { BoolValues.Clear(); StringValues.Clear(); IntValues.Clear(); FloatValues.Clear(); //foreach(string s in EnemyRandomizerDatabase.enemyTypeNames ) //{ // StringValues.Add( s, s ); // BoolValues.Add( s, true ); //} }
/// <summary> /// Handles setting of a value in the BoolValues Dictionary /// </summary> /// <param name="value">Value to Set</param> /// <param name="name">Compiler Generated Name of the Property</param> public void SetBool(bool value, [CallerMemberName] string name = null) { if (name == null) { return; } if (BoolValues.ContainsKey(name)) { BoolValues[name] = value; } else { BoolValues.Add(name, value); } }
public void reset() { BoolValues.Clear(); IntValues.Clear(); FloatValues.Clear(); StringValues.Clear(); soulDreamFails = 0; falseDreamFails = 0; kinDreamFails = 0; soulDreamLevel = 1; falseDreamLevel = 1; kinDreamLevel = 1; settingsVersion = version_info.SAVE_VER; }
public void Reset() { BoolValues.Clear(); IntValues.Clear(); FloatValues.Clear(); StringValues.Clear(); //infiniteGrimmIntegration = true; // just kidding... // floor color in json. defaults to invisible and black. rainbowFloor = false; // update every x frames rainbowUpdateDelay = 6; floorColorRed = 0.0f; floorColorGreen = 0.0f; floorColorBlue = 0.0f; floorColorAlpha = 0.0f; SettingsVersion = VersionInfo.SettingsVer; }
private void CreateCollectionVariable(List <string> lst, int type) { for (int i = 0; i < lst.Count; i++) { if (type == 0) { BitVar bv = new BitVar("Klapany"); bv.VarName = lst[i]; BitValues.Add(bv); } if (type == 1) { BoolVar bov = new BoolVar("Klapany"); bov.VarName = lst[i]; BoolValues.Add(bov); } if (type == 2) { IntVar iv = new IntVar("Klapany"); iv.VarName = lst[i]; IntValues.Add(iv); } if (type == 3) { DoubleVar dv = new DoubleVar("Klapany"); dv.VarName = lst[i]; DoubleValues.Add(dv); } if (type == 4) { BoolVarFMS bvfms = new BoolVarFMS("Klapany"); bvfms.VarName = lst[i]; BoolFMSValues.Add(bvfms); } } }
public void reset() { BoolValues.Clear(); IntValues.Clear(); FloatValues.Clear(); StringValues.Clear(); useGreymothDashWhenBlackmothMissing = true; overrideBlackmothNailDamage = true; overrideBlackmothLore = true; overrideBlackmothCloak = true; handicapAllNonFireAttacks = false; nailmasterGloryCost = 3; fireballSoulAddOnHit = 11; fireballDamageBase = 8; fireballDamagePerNailLvl = 3; fireballMagmaDamageBase = 3; fireballMagmaDamagePerNailLvl = 2; laserDamageBase = 15; laserDamagePerNailLvl = 3; pillarDamageBase = 10; pillarDamagePerNailLvl = 6; pillarSecondaryDamageBase = 5; pillarSecondaryAttacks = 4; trailDamageBase = 5; trailDamagePerNailLvl = 8; // not actually implemented //trailSecondaryDamageBase = 2; //trailSecondaryDamagePerNailLvl = 1; // Causes lasers to only fire when damage taken lasersWhenShieldBlocksAllDmg = false; useEnglishLoreWhenLanguageMissing = false; useEnglishWarningInfoWhenLanguageMissing = true; applyBindingsToRedwingAttacks = true; applyCharmBindingToGreymoth = true; applyHealthBindingToShield = true; applyNailBindingToRedwingAttacks = true; applySoulBindingToNapalm = true; redwingFirstLaunch = true; fireballCooldownBase = 7f; laserCooldownBase = 10f; shieldCooldownBase = 30f; shieldCooldownReductionPerNailHit = 0.5f; napalmDamageMultiplier = 0.6f; napalmDamageExponent = 0.7f; settingsVersion = version_info.SETTINGS_VER; }
public void Reset() { BoolValues.Clear(); Pure = true; }