コード例 #1
0
            public FarmConfig()
            {
                //basic on/off toggles
                ForageSpawnEnabled      = false;
                LargeObjectSpawnEnabled = false;
                OreSpawnEnabled         = false;
                MonsterSpawnEnabled     = false;

                //settings for each generation type (assigned in the default constructor for each of these "Settings" objects; see those for details)
                Forage_Spawn_Settings       = new ForageSettings();
                Large_Object_Spawn_Settings = new LargeObjectSettings();
                Ore_Spawn_Settings          = new OreSettings();
                Monster_Spawn_Settings      = new MonsterSettings();
            }
コード例 #2
0
        public FarmConfig()
        {
            //basic on/off toggles
            ForageSpawnEnabled      = false;
            LargeObjectSpawnEnabled = false;
            OreSpawnEnabled         = false;

            //settings for each generation type (assigned in the constructor for each of these "Settings" objects; see those for details)
            Forage_Spawn_Settings       = new ForageSettings();
            Large_Object_Spawn_Settings = new LargeObjectSettings();
            Ore_Spawn_Settings          = new OreSettings();

            //a list of every tilesheet index commonly used by "quarry" tiles on maps, e.g. the vanilla hilltop (mining) farm
            //these should be compared to [an instance of GameLocation].getTileIndexAt(x, y, "Back")
            QuarryTileIndex = new int[] { 556, 558, 583, 606, 607, 608, 630, 635, 636, 680, 681, 685 };
            //NOTE: swap in the following code to cover more tiles, e.g. the grassy edges of the "quarry" dirt; this tends to cover too much ground and weird spots, though, such as the farm's cave entrance
            //{ 556, 558, 583, 606, 607, 608, 630, 631, 632, 633, 634, 635, 636, 654, 655, 656, 657, 658, 659, 679, 680, 681, 682, 683, 684, 685, 704, 705, 706, 707 };
        }