Exemple #1
0
        public static void ApplyPatches()
        {
            if (Features.EnabledAtAll)
            {
                Compat.ApplyCompat(Harm);
                Pawn_TryGetAttackVerb.DoPatches(Harm);
                VerbUtilityPatches.DoPatches(Harm);
                BatteLog.DoPatches(Harm);
                VerbPatches.DoPatches(Harm);
                MiscPatches.DoBasePatches(Harm);
            }

            if (Features.HumanoidVerbs)
            {
                Brawlers.DoPatches(Harm);
                Hunting.DoPatches(Harm);
                Gizmos.DoHumanoidPatches(Harm);
            }

            if (Features.ExtraEquipmentVerbs)
            {
                Gizmos.DoExtraEquipmentPatches(Harm);
                ExtraEquipment.DoPatches(Harm);
            }

            if (Features.RangedAnimals)
            {
                Gizmos.DoAnimalPatches(Harm);
                MiscPatches.DoAnimalPatches(Harm);
            }

            if (Features.IntegratedToggle)
            {
                Gizmos.DoIntegratedTogglePatches(Harm);
            }

            if (Features.IndependentFire)
            {
                VerbPatches.DoIndependentPatches(Harm);
                IndependentVerbs.DoPatches(Harm);
            }

            if (Features.Drawing)
            {
                MiscPatches.DoDrawPatches(Harm);
            }

            if (Features.TickVerbs)
            {
                VerbPatches.DoTickPatches(Harm);
            }

            if (Features.HediffVerbs)
            {
                VerbPatches.DoHediffPatches(Harm);
            }
        }