Exemplo n.º 1
0
        public ZombielandMod(ModContentPack content) : base(content)
        {
            Identifier = content.Identifier;
            GetSettings <ZombieSettingsDefaults>();

            // HarmonyInstance.DEBUG = true;
            var harmony = HarmonyInstance.Create("net.pardeike.zombieland");

            harmony.PatchAll(Assembly.GetExecutingAssembly());

            // prepare Twinkie
            LongEventHandler.QueueLongEvent(() => { Tools.EnableTwinkie(false); }, "PrepareTwinkie", true, null);

            // extra patch for Combat Extended
            Patches.Projectile_Launch_Patch.PatchCombatExtended(harmony);
        }
Exemplo n.º 2
0
 public void WriteSettings()
 {
     Tools.EnableTwinkie(Values.replaceTwinkie);
 }