Esempio n. 1
0
 public DWUltraGlideSwimChargeFins() : base("DWUltraGlideSwimChargeFins", friendlyName, description)
 {
     OnFinishedPatching += () =>
     {
         Main.AddModTechType(this.TechType);
         EquipmentPatch.AddSubstitution(this.TechType, TechType.SwimChargeFins);
         UnderwaterMotorPatches.AddSpeedModifier(this.TechType, 3f);
         Reflection.AddCompoundTech(this.TechType, new List <TechType>()
         {
             TechType.SwimChargeFins,
             TechType.UltraGlideFins
         });
         CoroutineHost.StartCoroutine(PostPatchSetup());
     };
 }
Esempio n. 2
0
        public PlasteelHighCapTank() : base("PlasteelHighCapTank", "Plasteel Ultra Capacity Tank", "Lightweight tank with high oxygen capacity")
        {
            OnFinishedPatching += () =>
            {
                Main.AddSubstitution(this.TechType, TechType.PlasteelTank);
                Main.AddSubstitution(this.TechType, TechType.HighCapacityTank);
                Main.AddModTechType(this.TechType);
                Reflection.AddCompoundTech(this.TechType, new List <TechType>()
                {
                    TechType.PlasteelTank,
                    TechType.HighCapacityTank
                });
                CoroutineHost.StartCoroutine(PostPatchSetup());

                UnderwaterMotorPatches.AddSpeedModifier(this.TechType, -0.10625f);
                Main.AddCustomOxyExclusion(this.TechType, true, true);
                Main.AddCustomOxyTank(this.TechType, -1f, icon);
            };
        }