protected override void PrepareConstructionConfig(
            ConstructionTileRequirements tileRequirements,
            ConstructionStageConfig build,
            ConstructionStageConfig repair,
            ConstructionUpgradeConfig upgrade,
            out ProtoStructureCategory category)
        {
            category = GetCategory <StructureCategoryIndustry>();

            build.StagesCount          = 5;
            build.StageDurationSeconds = BuildDuration.Medium;
            build.AddStageRequiredItem <ItemIngotSteel>(count: 2);
            build.AddStageRequiredItem <ItemIngotGold>(count: 1);
            build.AddStageRequiredItem <ItemCement>(count: 2);

            repair.StagesCount          = 10;
            repair.StageDurationSeconds = BuildDuration.Medium;
            repair.AddStageRequiredItem <ItemIngotSteel>(count: 1);
        }
        protected override void PrepareConstructionConfig(
            ConstructionTileRequirements tileRequirements,
            ConstructionStageConfig build,
            ConstructionStageConfig repair,
            ConstructionUpgradeConfig upgrade,
            out ProtoStructureCategory category)
        {
            category = GetCategory <StructureCategoryElectricity>();

            build.StagesCount          = 5;
            build.StageDurationSeconds = BuildDuration.Short;
            build.AddStageRequiredItem <ItemGlassRaw>(count: 5);
            build.AddStageRequiredItem <ItemIngotSteel>(count: 1);

            repair.StagesCount          = 5;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemGlassRaw>(count: 5);
            repair.AddStageRequiredItem <ItemIngotSteel>(count: 1);
        }
Esempio n. 3
0
        protected override void PrepareConstructionConfig(
            ConstructionTileRequirements tileRequirements,
            ConstructionStageConfig build,
            ConstructionStageConfig repair,
            ConstructionUpgradeConfig upgrade,
            out ProtoStructureCategory category)
        {
            category = GetCategory <StructureCategoryFood>();

            build.StagesCount          = 5;
            build.StageDurationSeconds = BuildDuration.Short;
            build.AddStageRequiredItem <ItemIngotSteel>(count: 2);
            build.AddStageRequiredItem <ItemWire>(count: 2);
            build.AddStageRequiredItem <ItemComponentsElectronic>(count: 1);

            repair.StagesCount          = 10;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemIngotSteel>(count: 1);
        }
Esempio n. 4
0
        protected override void PrepareConstructionConfig(
            ConstructionTileRequirements tileRequirements,
            ConstructionStageConfig build,
            ConstructionStageConfig repair,
            ConstructionUpgradeConfig upgrade,
            out ProtoStructureCategory category)
        {
            category = GetCategory <StructureCategoryStorage>();

            build.StagesCount          = 5;
            build.StageDurationSeconds = BuildDuration.Short;
            build.AddStageRequiredItem <ItemPlanks>(count: 4);
            build.AddStageRequiredItem <ItemIngotIron>(count: 1);

            repair.StagesCount          = 5;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemPlanks>(count: 2);
            repair.AddStageRequiredItem <ItemIngotIron>(count: 1);
        }
Esempio n. 5
0
        protected override void PrepareConstructionConfigWell(
            ConstructionTileRequirements tileRequirements,
            ConstructionStageConfig build,
            ConstructionStageConfig repair,
            ConstructionUpgradeConfig upgrade,
            out ProtoStructureCategory category)
        {
            category = GetCategory <StructureCategoryIndustry>();

            build.StagesCount          = 5;
            build.StageDurationSeconds = BuildDuration.Medium;
            build.AddStageRequiredItem <ItemIngotSteel>(count: 2);
            build.AddStageRequiredItem <ItemHygroscopicGranules>(count: 10);
            build.AddStageRequiredItem <ItemComponentsElectronic>(count: 1);

            repair.StagesCount          = 5;
            repair.StageDurationSeconds = BuildDuration.Medium;
            repair.AddStageRequiredItem <ItemIngotSteel>(count: 1);
        }
Esempio n. 6
0
        protected override void PrepareConstructionConfig(
            ConstructionTileRequirements tileRequirements,
            ConstructionStageConfig build,
            ConstructionStageConfig repair,
            ConstructionUpgradeConfig upgrade,
            out ProtoStructureCategory category)
        {
            category = GetCategory <StructureCategoryOther>();

            build.StagesCount          = 1;
            build.StageDurationSeconds = BuildDuration.Instant;
            build.AddStageRequiredItem <ItemTwigs>(count: 20);
            build.AddStageRequiredItem <ItemFibers>(count: 50);

            repair.StagesCount          = 10;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemTwigs>(count: 2);
            repair.AddStageRequiredItem <ItemFibers>(count: 5);
        }
Esempio n. 7
0
        protected override void PrepareConstructionConfig(
            ConstructionTileRequirements tileRequirements,
            ConstructionStageConfig build,
            ConstructionStageConfig repair,
            ConstructionUpgradeConfig upgrade,
            out ProtoStructureCategory category)
        {
            category = GetCategory <StructureCategoryFood>();

            build.StagesCount          = 1;
            build.StageDurationSeconds = BuildDuration.Short;
            build.AddStageRequiredItem <ItemTwigs>(count: 10);
            build.AddStageRequiredItem <ItemStone>(count: 10);

            repair.StagesCount          = 5;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemTwigs>(count: 1);
            repair.AddStageRequiredItem <ItemStone>(count: 1);
        }
Esempio n. 8
0
        protected override void PrepareConstructionConfig(
            ConstructionTileRequirements tileRequirements,
            ConstructionStageConfig build,
            ConstructionStageConfig repair,
            ConstructionUpgradeConfig upgrade,
            out ProtoStructureCategory category)
        {
            category = GetCategory <StructureCategoryBuildings>();

            build.StagesCount          = 10;
            build.StageDurationSeconds = BuildDuration.Short;
            build.AddStageRequiredItem <ItemIngotSteel>(count: 6);
            build.AddStageRequiredItem <ItemComponentsMechanical>(count: 1);
            build.AddStageRequiredItem <ItemCement>(count: 25);

            repair.StagesCount          = 10;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemIngotSteel>(count: 4);
        }
Esempio n. 9
0
        protected override void PrepareLaunchpadConstructionConfig(
            ConstructionStageConfig build,
            ConstructionStageConfig repair,
            ConstructionUpgradeConfig upgrade)
        {
            build.StagesCount          = 10;
            build.StageDurationSeconds = BuildDuration.VeryLong;
            build.AddStageRequiredItem <ItemIngotSteel>(count: 5);
            build.AddStageRequiredItem <ItemComponentsElectronic>(count: 5);
            build.AddStageRequiredItem <ItemComponentsHighTech>(count: 1);
            build.AddStageRequiredItem <ItemCement>(count: 10);

            repair.StagesCount          = 10;
            repair.StageDurationSeconds = BuildDuration.VeryLong;
            repair.AddStageRequiredItem <ItemIngotSteel>(count: 4);
            repair.AddStageRequiredItem <ItemComponentsElectronic>(count: 2);

            upgrade.AddUpgrade <ObjectLaunchpadStage2>();
            // please note: the upgrade is free but requires finishing the tasks defined below
        }
Esempio n. 10
0
        protected override void PrepareConstructionConfig(
            ConstructionTileRequirements tileRequirements,
            ConstructionStageConfig build,
            ConstructionStageConfig repair,
            ConstructionUpgradeConfig upgrade,
            out ProtoStructureCategory category)
        {
            category = GetCategory <StructureCategoryIndustry>();

            build.StagesCount          = 10;
            build.StageDurationSeconds = BuildDuration.Short;
            build.AddStageRequiredItem <ItemPlanks>(count: 10);
            build.AddStageRequiredItem <ItemIngotCopper>(count: 1);
            build.AddStageRequiredItem <ItemBottleWater>(count: 1);

            repair.StagesCount          = 5;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemPlanks>(count: 5);
            repair.AddStageRequiredItem <ItemIngotCopper>(count: 1);
        }
Esempio n. 11
0
        protected override void PrepareConstructionConfig(
            ConstructionTileRequirements tileRequirements,
            ConstructionStageConfig build,
            ConstructionStageConfig repair,
            ConstructionUpgradeConfig upgrade,
            out ProtoStructureCategory category)
        {
            // TODO: set proper values here
            category = GetCategory <StructureCategoryOther>();

            build.StagesCount          = 10;
            build.StageDurationSeconds = BuildDuration.Short;
            build.AddStageRequiredItem <ItemIngotSteel>(count: 10);
            build.AddStageRequiredItem <ItemGlassRaw>(count: 20);
            build.AddStageRequiredItem <ItemComponentsElectronic>(count: 1);

            repair.StagesCount          = 10;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemIngotSteel>(count: 4);
        }
Esempio n. 12
0
        protected override void PrepareConstructionConfigWell(
            ConstructionTileRequirements tileRequirements,
            ConstructionStageConfig build,
            ConstructionStageConfig repair,
            ConstructionUpgradeConfig upgrade,
            out ProtoStructureCategory category)
        {
            category = GetCategory <StructureCategoryIndustry>();

            build.StagesCount          = 10;
            build.StageDurationSeconds = BuildDuration.Short;
            build.AddStageRequiredItem <ItemWire>(count: 4);
            build.AddStageRequiredItem <ItemIngotCopper>(count: 1);
            build.AddStageRequiredItem <ItemRubberVulcanized>(count: 1);

            repair.StagesCount          = 10;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemWire>(count: 2);
            repair.AddStageRequiredItem <ItemIngotCopper>(count: 1);
        }
Esempio n. 13
0
        protected override void PrepareFloorConstructionConfig(
            ConstructionStageConfig build,
            ConstructionStageConfig repair)
        {
            build.StagesCount = 1;
            //build.StageDurationSeconds = BuildDuration.Short; <-- irrelevant here
            build.AddStageRequiredItem <ItemStone>(count: 10);

            repair.StagesCount          = 1;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemStone>(count: 5);
        }
Esempio n. 14
0
        protected override void PrepareConstructionConfig(
            ConstructionTileRequirements tileRequirements,
            ConstructionStageConfig build,
            ConstructionStageConfig repair,
            ConstructionUpgradeConfig upgrade,
            out ProtoStructureCategory category)
        {
            tileRequirements.Clear()
            .Add(ConstructionTileRequirements.DefaultForPlayerStructuresOwnedOrFreeLand);

            category = GetCategory <StructureCategoryOther>();

            build.StagesCount          = 1;
            build.StageDurationSeconds = BuildDuration.Short;
            build.AddStageRequiredItem <ItemTwigs>(count: 20);
            build.AddStageRequiredItem <ItemFibers>(count: 20);

            repair.StagesCount          = 5;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemTwigs>(count: 2);
            repair.AddStageRequiredItem <ItemFibers>(count: 2);
        }
Esempio n. 15
0
        protected override void PrepareConstructionConfig(
            ConstructionTileRequirements tileRequirements,
            ConstructionStageConfig build,
            ConstructionStageConfig repair,
            ConstructionUpgradeConfig upgrade,
            out ProtoStructureCategory category)
        {
            category = GetCategory <StructureCategoryIndustry>();

            // Oil pump requires each tile to contain an oil seep.
            // Notice: technically it will be possible to construct one oil pump on two oil seeps if they're nearby,
            // so there should be the oil spawn limitation to avoid that case!
            tileRequirements
            .Clear()
            .Add(ErrorRequiresOilSeep,
                 c => c.Tile.StaticObjects.Any(_ => _.ProtoStaticWorldObject is ObjectDepositOilSeep))
            .Add(ConstructionTileRequirements.BasicRequirements)
            .Add(ConstructionTileRequirements.ValidatorClientOnlyNoCurrentPlayer)
            .Add(ConstructionTileRequirements.ValidatorNoPhysicsBodyDynamic)
            .Add(ConstructionTileRequirements.ErrorNoFreeSpace,
                 c => !ConstructionTileRequirements.TileHasAnyPhysicsObjectsWhere(
                     c.Tile,
                     o => o.PhysicsBody.IsStatic &&
                     !(o.PhysicsBody.AssociatedWorldObject?.ProtoWorldObject
                       is ObjectDepositOilSeep)))
            .Add(ConstructionTileRequirements.ValidatorNotRestrictedArea)
            .Add(LandClaimSystem.ValidatorIsOwnedOrFreeArea);

            build.StagesCount          = 10;
            build.StageDurationSeconds = BuildDuration.Short;
            build.AddStageRequiredItem <ItemIngotSteel>(count: 20);
            build.AddStageRequiredItem <ItemIngotCopper>(count: 15);
            build.AddStageRequiredItem <ItemCement>(count: 25);

            repair.StagesCount          = 10;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemIngotSteel>(count: 5);
            repair.AddStageRequiredItem <ItemIngotCopper>(count: 2);
        }
Esempio n. 16
0
        protected override void PrepareConstructionConfig(
            ConstructionTileRequirements tileRequirements,
            ConstructionStageConfig build,
            ConstructionStageConfig repair,
            ConstructionUpgradeConfig upgrade,
            out ProtoStructureCategory category)
        {
            category = GetCategory <StructureCategoryElectricity>();

            build.StagesCount          = 10;
            build.StageDurationSeconds = BuildDuration.Medium;
            build.AddStageRequiredItem <ItemIngotSteel>(count: 5);
            build.AddStageRequiredItem <ItemOrePragmium>(count: 5);
            build.AddStageRequiredItem <ItemPlastic>(count: 2);
            build.AddStageRequiredItem <ItemComponentsHighTech>(count: 1);

            repair.StagesCount          = 10;
            repair.StageDurationSeconds = BuildDuration.Medium;
            repair.AddStageRequiredItem <ItemIngotSteel>(count: 2);
            repair.AddStageRequiredItem <ItemOrePragmium>(count: 2);
            repair.AddStageRequiredItem <ItemPlastic>(count: 1);
        }
Esempio n. 17
0
        protected override void PrepareDecorationConstructionConfig(
            ConstructionTileRequirements tileRequirements,
            ConstructionStageConfig build,
            ConstructionStageConfig repair)
        {
            build.StagesCount          = 10;
            build.StageDurationSeconds = BuildDuration.Short;
            build.AddStageRequiredItem <ItemIngotCopper>(count: 3);

            repair.StagesCount          = 10;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemIngotCopper>(count: 2);
        }
Esempio n. 18
0
        protected override void PrepareLandClaimConstructionConfig(
            ConstructionTileRequirements tileRequirements,
            ConstructionStageConfig build,
            ConstructionStageConfig repair,
            ConstructionUpgradeConfig upgrade,
            out ProtoStructureCategory category)
        {
            category = GetCategory <StructureCategoryOther>();

            // build is not allowed - it's an upgrade from previous level
            // for requirements for the upgrade see construction upgrade config from previous level
            build.IsAllowed = false;

            repair.StagesCount          = 10;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemIngotIron>(count: 2);
            repair.AddStageRequiredItem <ItemIngotCopper>(count: 2);

            upgrade.AddUpgrade <ObjectLandClaimT3>()
            .AddRequiredItem <ItemIngotSteel>(count: 25)
            .AddRequiredItem <ItemIngotCopper>(count: 25);
        }
Esempio n. 19
0
        protected override void PrepareFarmPlotConstructionConfig(
            ConstructionTileRequirements tileRequirements,
            ConstructionStageConfig build,
            ConstructionStageConfig repair)
        {
            build.StagesCount          = 1;
            build.StageDurationSeconds = BuildDuration.Short;
            build.AddStageRequiredItem <ItemPlanks>(count: 20);
            build.AddStageRequiredItem <ItemSand>(count: 5);

            repair.StagesCount          = 1;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemPlanks>(count: 10);
        }
Esempio n. 20
0
        protected override void PrepareConstructionConfig(
            ConstructionTileRequirements tileRequirements,
            ConstructionStageConfig build,
            ConstructionStageConfig repair,
            ConstructionUpgradeConfig upgrade,
            out ProtoStructureCategory category)
        {
            category = GetCategory <StructureCategoryOther>();

            // TODO: set proper requirements
            build.StagesCount          = 10;
            build.StageDurationSeconds = BuildDuration.Short;
            build.AddStageRequiredItem <ItemIngotSteel>(count: 25);
            build.AddStageRequiredItem <ItemIngotCopper>(count: 25);
            build.AddStageRequiredItem <ItemIngotLithium>(count: 5);
            build.AddStageRequiredItem <ItemPlastic>(count: 5);
            build.AddStageRequiredItem <ItemComponentsHighTech>(count: 2);

            repair.StagesCount          = 10;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemIngotSteel>(count: 10);
            repair.AddStageRequiredItem <ItemIngotCopper>(count: 10);
        }
Esempio n. 21
0
        protected override void PrepareDecorationConstructionConfig(
            ConstructionTileRequirements tileRequirements,
            ConstructionStageConfig build,
            ConstructionStageConfig repair)
        {
            build.StagesCount          = 10;
            build.StageDurationSeconds = BuildDuration.Short;
            build.AddStageRequiredItem <ItemIngotGold>(count: 5);
            build.AddStageRequiredItem <ItemCoinPenny>(count: 100);

            repair.StagesCount          = 10;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemIngotGold>(count: 1);
        }
Esempio n. 22
0
        protected override void PrepareDecorationConstructionConfig(
            ConstructionTileRequirements tileRequirements,
            ConstructionStageConfig build,
            ConstructionStageConfig repair)
        {
            build.StagesCount          = 5;
            build.StageDurationSeconds = BuildDuration.Short;
            build.AddStageRequiredItem <ItemPlanks>(count: 15);
            build.AddStageRequiredItem <ItemGlue>(count: 1);

            repair.StagesCount          = 10;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemPlanks>(count: 5);
        }
        protected override void PrepareLandClaimConstructionConfig(
            ConstructionTileRequirements tileRequirements,
            ConstructionStageConfig build,
            ConstructionStageConfig repair,
            ConstructionUpgradeConfig upgrade,
            out ProtoStructureCategory category)
        {
            category = GetCategory <StructureCategoryOther>();

            build.StagesCount =
                1;                                               // important, due to issues with building permissions we had to make this 1 stage building
            build.StageDurationSeconds = BuildDuration.Short;    // irrelevant, since it is 1 stage building
            build.AddStageRequiredItem <ItemPlanks>(count: 100); // price reflects the entire cost
            build.AddStageRequiredItem <ItemStone>(count: 50);

            repair.StagesCount          = 10;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemPlanks>(count: 5);

            upgrade.AddUpgrade <ObjectLandClaimT2>()
            .AddRequiredItem <ItemIngotIron>(count: 25)
            .AddRequiredItem <ItemIngotCopper>(count: 25);
        }
Esempio n. 24
0
        protected override void PrepareFloorDecorationConstructionConfig(
            ConstructionStageConfig build,
            ConstructionStageConfig repair)
        {
            build.StagesCount          = 1;
            build.StageDurationSeconds = BuildDuration.Short;
            build.AddStageRequiredItem <ItemThread>(count: 100);
            build.AddStageRequiredItem <ItemRope>(count: 10);
            build.AddStageRequiredItem <ItemGlue>(count: 10);

            repair.StagesCount          = 10;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemThread>(count: 5);
        }
Esempio n. 25
0
        protected override void PrepareConstructionConfig(
            ConstructionTileRequirements tileRequirements,
            ConstructionStageConfig build,
            ConstructionStageConfig repair,
            ConstructionUpgradeConfig upgrade,
            out ProtoStructureCategory category)
        {
            category = GetCategory <StructureCategoryIndustry>();

            // Lithium salt extractor requires each tile to contain a geothermal spring.
            tileRequirements
            .Clear()
            .Add(ErrorRequiresGeothermalSpring,
                 c => c.Tile.StaticObjects.Any(_ => _.ProtoStaticWorldObject is ObjectDepositGeothermalSpring))
            .Add(ConstructionTileRequirements.BasicRequirements)
            .Add(ConstructionTileRequirements.ValidatorClientOnlyNoCurrentPlayer)
            .Add(ConstructionTileRequirements.ValidatorNoPhysicsBodyDynamic)
            .Add(ConstructionTileRequirements.ErrorNoFreeSpace,
                 c => !ConstructionTileRequirements.TileHasAnyPhysicsObjectsWhere(
                     c.Tile,
                     t => t.PhysicsBody.IsStatic &&
                     !(t.PhysicsBody.AssociatedWorldObject?.ProtoWorldObject is
                       ObjectDepositGeothermalSpring)))
            .Add(ConstructionTileRequirements.ValidatorNotRestrictedArea)
            .Add(LandClaimSystem.ValidatorIsOwnedOrFreeArea);

            build.StagesCount          = 10;
            build.StageDurationSeconds = BuildDuration.Short;
            build.AddStageRequiredItem <ItemIngotSteel>(count: 20);
            build.AddStageRequiredItem <ItemIngotCopper>(count: 15);
            build.AddStageRequiredItem <ItemCement>(count: 25);

            repair.StagesCount          = 10;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemIngotSteel>(count: 5);
            repair.AddStageRequiredItem <ItemIngotCopper>(count: 2);
        }
Esempio n. 26
0
        protected override void PrepareConstructionConfig(
            ConstructionStageConfig build,
            ConstructionStageConfig repair,
            ConstructionUpgradeConfig upgrade,
            out ProtoStructureCategory category)
        {
            category = GetCategory <StructureCategoryDecorations>();

            build.StagesCount          = 5;
            build.StageDurationSeconds = BuildDuration.Medium;
            build.AddStageRequiredItem <ItemPlanks>(count: 5);

            repair.StagesCount          = 5;
            repair.StageDurationSeconds = BuildDuration.Medium;
            repair.AddStageRequiredItem <ItemPlanks>(count: 3);
        }
Esempio n. 27
0
        protected override void PrepareConstructionConfig(
            ConstructionStageConfig build,
            ConstructionStageConfig repair,
            ConstructionUpgradeConfig upgrade,
            out ProtoStructureCategory category)
        {
            category = GetCategory <StructureCategoryOther>();

            build.StagesCount          = 10;
            build.StageDurationSeconds = BuildDuration.Short;
            build.AddStageRequiredItem <ItemPlanks>(count: 4);

            repair.StagesCount          = 10;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemPlanks>(count: 2);
        }
Esempio n. 28
0
        protected override void PrepareConstructionConfig(
            ConstructionStageConfig build,
            ConstructionStageConfig repair,
            ConstructionUpgradeConfig upgrade,
            out ProtoStructureCategory category)
        {
            category = GetCategory <StructureCategoryBuildings>();

            build.StagesCount          = 3;
            build.StageDurationSeconds = BuildDuration.Short;
            build.AddStageRequiredItem <ItemIngotIron>(count: 1);

            repair.StagesCount          = 3;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemIngotIron>(count: 1);
        }
Esempio n. 29
0
        protected override void PrepareConstructionConfig(
            ConstructionStageConfig build,
            ConstructionStageConfig repair,
            ConstructionUpgradeConfig upgrade,
            out ProtoStructureCategory category)
        {
            category = GetCategory <StructureCategoryBuildings>();

            build.StagesCount          = 5;
            build.StageDurationSeconds = BuildDuration.VeryLong;
            build.AddStageRequiredItem <ItemCement>(count: 10);
            build.AddStageRequiredItem <ItemIngotSteel>(count: 5);

            repair.StagesCount          = 5;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemIngotSteel>(count: 4);
        }
Esempio n. 30
0
        protected override void PrepareDecorationConstructionConfig(
            ConstructionTileRequirements tileRequirements,
            ConstructionStageConfig build,
            ConstructionStageConfig repair)
        {
            //category = GetCategory<StructureCategoryBuildings>();

            build.StagesCount          = 10;
            build.StageDurationSeconds = BuildDuration.Short;
            build.AddStageRequiredItem <ItemTwigs>(count: 5);
            build.AddStageRequiredItem <ItemThread>(count: 3);
            build.AddStageRequiredItem <ItemBones>(count: 2);
            build.AddStageRequiredItem <ItemStone>(count: 2);

            repair.StagesCount          = 10;
            repair.StageDurationSeconds = BuildDuration.Short;
            repair.AddStageRequiredItem <ItemTwigs>(count: 5);
        }