Example #1
0
            public static void OnLoad()
            {
                if (File.Exists(Path.Combine(mod_options_folder, options_file_name)))
                {
                    string opts = File.ReadAllText(Path.Combine(mod_options_folder, options_file_name));
                    custom_settings = FastJson.Deserialize <GearDecaySettings>(opts);

                    GearDecayOptions.general_decay       = custom_settings.general_decay;
                    GearDecayOptions.decay_before_pickup = custom_settings.decay_before_pickup;
                }

                custom_settings.AddToModSettings("Xpazeman Mini Mods");
            }
Example #2
0
 public static void OnLoad()
 {
     options = new GearDecaySettings();
     options.RefreshFields();
     options.AddToModSettings("Gear Decay Modifiers");
 }