public static void OnLoad()
 {
     ImaginationLoader.Init(typeof(DecorReimaginedPatches));
     Options = new DecorReimaginedOptions();
     POptions.RegisterOptions(typeof(DecorReimaginedOptions));
     PUtil.RegisterPostload(DecorTuning.TuneBuildings);
     PatchParks();
     PatchRecBuildings();
 }
        public static void OnLoad()
        {
            // Defined in Edible
            const float BASE_EAT_RATE = 50000.0f;

            ImaginationLoader.Init(typeof(TraitReworkPatches));
            InitStrings();
            // Create modifier for "Eating in lit area"
            EAT_LIT_MODIFIER = new AttributeModifier("CaloriesDelta", BASE_EAT_RATE * (1.0f /
                                                                                       (1.0f - TraitTuning.EAT_SPEED_BUFF) - 1.0f), TraitStrings.EATING_LIT);
        }
Beispiel #3
0
        // misc bookkeeping
        public static void OnLoad()
        {
            StartLogging();

            AddDiseaseName(SlimeLethalSickness.ID, DUPLICANTS.DISEASES.SLIMESICKNESS.NAME +
                           " (lethal)");
            AddDiseaseName(SlimeCoughSickness.ID, DUPLICANTS.DISEASES.SLIMESICKNESS.NAME +
                           " (cough)");
            AddDiseaseName(FoodPoisonVomiting.ID, DUPLICANTS.DISEASES.FOODSICKNESS.NAME +
                           " (vomiting)");

            SkipNotifications.Skip(SlimeLethalSickness.ID);
            SkipNotifications.Skip(SlimeCoughSickness.ID);
            SkipNotifications.Skip(FoodPoisonVomiting.ID);

            ImaginationLoader.Init(typeof(DiseasesPatch));
            PUtil.RegisterPostload(CompatPatch.CompatPatches);
            BuildingsPatch.uvlight = PLightShape.Register("SkyLib.LightShape.FixedSemi",
                                                          BuildingsPatch.SemicircleLight);
        }
Beispiel #4
0
 public static void OnLoad()
 {
     // Defined in Edible
     ImaginationLoader.Init(typeof(TraitReworkPatches));
     InitStrings();
 }
 /// <summary>
 /// Applied after OnPrefabInit runs.
 /// </summary>
 internal static void Postfix()
 {
     PUtil.LogDebug("Creating DecorCellManager");
     DecorCellManager.CreateInstance();
     ImaginationLoader.IsFinalDestination();
 }
Beispiel #6
0
 internal static void SetupDecor()
 {
     DecorCellManager.CreateInstance();
     ImaginationLoader.IsFinalDestination();
     PUtil.LogDebug("Created DecorCellManager");
 }