Example #1
0
        private void Awake()
        {
            context              = this;
            modEnabled           = Config.Bind <bool>("General", "Enabled", true, "Enable this mod");
            creatorDamageMult    = Config.Bind <float>("General", "CreatorDamagMult", 1f, "Multiply damage by creators by this much");
            nonCreatorDamageMult = Config.Bind <float>("General", "NonCreatorDamagMult", 1f, "Multiply damage by non-creators by this much");
            uncreatedDamageMult  = Config.Bind <float>("General", "UncreatedDamagMult", 1f, "Multiply damage to uncreated buildings by this much");
            naturalDamageMult    = Config.Bind <float>("General", "NaturalDamagMult", 1f, "Multiply natural wear damage to buildings by this much");
            nexusID              = Config.Bind <int>("General", "NexusID", 233, "Nexus mod ID for updates");

            if (!modEnabled.Value)
            {
                return;
            }

            Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), null);
        }
Example #2
0
        private void Awake()
        {
            context                 = this;
            modEnabled              = Config.Bind <bool>("General", "Enabled", true, "Enable this mod");
            preventCreatorDamage    = Config.Bind <bool>("General", "PreventCreatorDamage", false, "Prevent creators from damaging their own structures.");
            preventNonCreatorDamage = Config.Bind <bool>("General", "PreventNonCreatorDamage", false, "Prevent damaging structures created by others.");
            preventUncreatedDamage  = Config.Bind <bool>("General", "PreventUncreatedDamage", false, "Prevent damaging structures not created by players.");
            nexusID                 = Config.Bind <int>("General", "NexusID", 85, "Nexus mod ID for updates");

            if (!modEnabled.Value)
            {
                return;
            }



            Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), null);
        }