Beispiel #1
0
        public static EffectsMapObject SetDefaultSeasonsValues(EffectsMapObject emo)
        {
            emo.UseSeasons = true;

            emo.StaticSeason = Season.None;
            emo.SetSpringDate(3, 21);
            emo.SetSummerDate(6, 21);
            emo.SetFallDate(9, 21);
            emo.SetWinterDate(12, 21);

            return emo;
        }
        private static int SortEffectsMapArray(EffectsMapObject emoOne, EffectsMapObject emoTwo)
        {
            if (emoOne == emoTwo)
            {
                return 0;
            }

            if (emoOne.Priority > emoTwo.Priority)
            {
                return -1;
            }
            else if (emoOne.Priority == emoTwo.Priority)
            {
                if (emoOne.Index < emoTwo.Index)
                {
                    return -1;
                }
                else
                {
                    return 1;
                }
            }
            else
            {
                return 1;
            }
        }
Beispiel #3
0
        public static EffectsMapObject SetDefaultEffectsValues(EffectsMapObject emo)
        {
            emo.Priority = 0;

            emo.Enabled = true;

            emo.UseLatitude = true;
            emo.OuterLatitudePercent = 0.10;
            emo.InnerLatitudePercent = 0.10;

            emo.UseDarkestHour = true;

            emo.UseAutoLighting = true;
            emo.UseRandomLightOutage = true;
            emo.LightOutageChancePerTick = 10;

            emo.UseNightSightDarkestHourOverride = true;
            emo.NightSightDarkestHourReduction = 100;

            emo.UseNightSightOverride = false;
            emo.NightSightLevelReduction = 0;

            emo.UseLightLevelOverride = false;
            emo.LightLevelOverrideAdjust = 0;

            emo.UseMurdererDarkestHourBonus = false;
            emo.MurdererDarkestHourLevelBonus = 0;

            emo.UseEvilSpawners = true;

            return emo;
        }