Exemplo n.º 1
0
        protected override void OnFinishedPatch()
        {
            base.OnFinishedPatch();

            int coldResist = TechData.GetColdResistance(TechType.ColdSuit);

            Reflection.AddColdResistance(this.TechType, System.Math.Max(55, coldResist));
            Reflection.SetItemSize(this.TechType, 2, 3);
            Log.LogDebug($"Finished patching {this.TechType.AsString()}, found source cold resist of {coldResist}, cold resistance for techtype {this.TechType.AsString()} = {TechData.GetColdResistance(this.TechType)}");
        }
Exemplo n.º 2
0
 public ReinforcedColdSuit() : base("ReinforcedColdSuit", "Reinforced Cold Suit", "Reinforced, insulated diving suit providing physical protection and insulation from extreme temperatures.")
 {
     OnFinishedPatching += () =>
     {
         int coldResist = TechData.GetColdResistance(TechType.ColdSuit);
         Reflection.AddColdResistance(this.TechType, System.Math.Max(50, coldResist));
         Reflection.SetItemSize(this.TechType, 2, 3);
         Log.LogDebug($"Finished patching {this.TechType.AsString()}, found source cold resist of {coldResist}, cold resistance for techtype {this.TechType.AsString()} = {TechData.GetColdResistance(this.TechType)}");
         Main.AddSubstitution(this.TechType, TechType.ColdSuit);
         Main.AddSubstitution(this.TechType, TechType.ReinforcedDiveSuit);
         Main.AddModTechType(this.TechType);
         Reflection.AddCompoundTech(this.TechType, new List <TechType>()
         {
             TechType.ReinforcedDiveSuit,
             TechType.ColdSuit
         });
     };
 }
        public SuperSurvivalSuit() : base("SuperSurvivalSuit", "Ultimate Survival Suit", "The ultimate in survival gear. Provides protection from extreme temperatures and physical harm, reduces the need for external sustenance, and dramatically improves the body's ability to retain water.")
        {
            OnFinishedPatching += () =>
            {
#if BELOWZERO
                int coldResist = TechData.GetColdResistance(TechType.ColdSuit);
                Reflection.AddColdResistance(this.TechType, System.Math.Max(55, coldResist));
#endif
                Reflection.SetItemSize(this.TechType, 2, 3);
#if SUBNAUTICA_STABLE
                Log.LogDebug($"Finished patching {this.TechType.AsString()}");
#elif BELOWZERO
                Log.LogDebug($"Finished patching {this.TechType.AsString()}, found source cold resist of {coldResist}, cold resistance for techtype {this.TechType.AsString()} = {TechData.GetColdResistance(this.TechType)}");
#endif

                // the SurvivalSuit constructor will call AddModTechType already.
                // It has also been set up to add substitutions based on the value of the 'substitutions' property below,
                // as well as set up CompoundTech based on the value of CompoundDependencies
            };
        }