Example #1
0
        public Module(ModContentPack content) : base(content)
        {
            var harmony = new HarmonyLib.Harmony("FrontierDevelopments.Shields1.2");

            harmony.PatchAll(Assembly.GetExecutingAssembly());

            Harmony_Verb.BlacklistType(typeof(Verb_Bombardment));

            // support for Cargo Pod transport
            Harmony_Skyfaller.WhitelistDef("HelicopterIncoming");
            Harmony_Skyfaller.WhitelistDef("HelicopterLeaving");
        }
Example #2
0
        public Mod(ModContentPack content) : base(content)
        {
            Settings = GetSettings <Settings>();
            ModName  = content.Name;

            var harmony = HarmonyInstance.Create("frontierdevelopment.shields");

            harmony.PatchAll(Assembly.GetExecutingAssembly());

            Harmony_Verb.BlacklistType(typeof(Verb_Bombardment));

            // support for Cargo Pod transport
            Harmony_Skyfaller.WhitelistDef("HelicopterIncoming");
            Harmony_Skyfaller.WhitelistDef("HelicopterLeaving");

            LoadOneTemperatureMod(harmony);
            new CombatExtendedIntegration().TryEnable(harmony);
        }
 static void Postfix()
 {
     Harmony_Verb.BlacklistType(typeof(Verb_ShootMortarCE));
     Harmony_Verb.BlacklistType(typeof(Verb_MarkForArtillery));
 }