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)}"); }
public ReinforcedColdGloves() : base("ReinforcedColdGloves", "Reinforced Cold Gloves", "Reinforced insulating gloves provide physical protection and insulation from extreme temperatures.") { OnFinishedPatching += () => { int coldResist = TechData.GetColdResistance(TechType.ColdSuitGloves); DWEquipmentBonanza.Reflection.AddColdResistance(this.TechType, System.Math.Max(10, coldResist)); DWEquipmentBonanza.Reflection.SetItemSize(this.TechType, 2, 2); 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.ColdSuitGloves); Main.AddSubstitution(this.TechType, TechType.ReinforcedGloves); Main.AddModTechType(this.TechType); }; }
public InsulatedRebreather() : base("InsulatedRebreather", "Insulated Rebreather", "Rebreather equipped with insulation helps slow the onset of hypothermia") { OnFinishedPatching += () => { int coldResist = TechData.GetColdResistance(TechType.ColdSuitHelmet); DWEquipmentBonanza.Reflection.AddColdResistance(this.TechType, System.Math.Max(20, coldResist)); DWEquipmentBonanza.Reflection.SetItemSize(this.TechType, 2, 2); Log.LogDebug($"Finished patching {this.TechType.AsString()}, using source cold resist of {coldResist}, cold resistance for techtype {this.TechType.AsString()} = {TechData.GetColdResistance(this.TechType)}"); Main.AddSubstitution(this.TechType, TechType.ColdSuitHelmet); Main.AddSubstitution(this.TechType, TechType.Rebreather); Main.AddModTechType(this.TechType); Reflection.AddCompoundTech(this.TechType, new List <TechType>() { TechType.Rebreather, TechType.ColdSuit }); }; }
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 }; }
public InsulatedRebreather() : base("InsulatedRebreather", "Insulated Rebreather", "Rebreather equipped with insulation helps slow the onset of hypothermia") { OnFinishedPatching += () => { int coldResist = TechData.GetColdResistance(TechType.ColdSuitHelmet); CombinedItems.Reflection.AddColdResistance(this.TechType, System.Math.Max(20, coldResist)); CombinedItems.Reflection.SetItemSize(this.TechType, 2, 2); 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.ColdSuitHelmet); Main.AddSubstitution(this.TechType, TechType.Rebreather); Main.AddModTechType(this.TechType); KnownTech.CompoundTech compound = new KnownTech.CompoundTech(); compound.techType = this.TechType; compound.dependencies = new List <TechType>() { TechType.Rebreather, TechType.ColdSuit }; Reflection.AddCompoundTech(compound); }; }