public EatMyDiction() { this.ClassID = "MarlaCat"; // c96baff4-0993-4893-8345-adb8709901a7 this.ResourcePath = "Submarine/Build/Eatmydiction"; this.GameObject = Resources.Load <GameObject>(this.ResourcePath); this.TechType = TechTypePatcher.AddTechType(this.ClassID, LanguageHelper.GetFriendlyWord("MarlaCatName"), LanguageHelper.GetFriendlyWord("MarlaCatDescription"), true); if (ConfigSwitcher.EatMyDiction_asBuidable) { this.IsHabitatBuilder = true; } this.Recipe = new TechDataHelper() { _craftAmount = 1, _ingredients = new List <IngredientHelper>(new IngredientHelper[1] { new IngredientHelper(TechType.FiberMesh, 2) }), _techType = this.TechType }; }
public SofaCorner2() { // Feed DecortionItem interface this.ClassID = "SofaCorner2"; this.ResourcePath = "Submarine/Build/Bench"; this.GameObject = Resources.Load <GameObject>(this.ResourcePath); this.TechType = TechTypePatcher.AddTechType(this.ClassID, LanguageHelper.GetFriendlyWord("SofaCorner2Name"), LanguageHelper.GetFriendlyWord("SofaCorner2Description"), true); this.newsofa = AssetsHelper.Assets.LoadAsset <GameObject>("descent_bar_sofa_corner_02"); if (ConfigSwitcher.SofaCorner2_asBuidable) { this.IsHabitatBuilder = true; } this.Recipe = new TechDataHelper() { _craftAmount = 1, _ingredients = new List <IngredientHelper>(new IngredientHelper[2] { new IngredientHelper(TechType.Titanium, 1), new IngredientHelper(TechType.FiberMesh, 1) }), _techType = this.TechType }; }
public WallMonitor2() // Feeds abstract class { this.ClassID = "WallMonitor2"; //6a5c9533-75e5-47c6-a16e-0f5f71e14f4f this.ResourcePath = "WorldEntities/Doodads/Debris/Wrecks/Decoration/wall_monitor_01_02"; this.GameObject = Resources.Load <GameObject>(this.ResourcePath); this.SignObject = Resources.Load <GameObject>("Submarine/Build/Sign"); this.TechType = TechTypePatcher.AddTechType(this.ClassID, LanguageHelper.GetFriendlyWord("WallMonitor2Name"), LanguageHelper.GetFriendlyWord("WallMonitor2Description"), true); this.Recipe = new TechDataHelper() { _craftAmount = 1, _ingredients = new List <IngredientHelper>(new IngredientHelper[2] { new IngredientHelper(TechType.CopperWire, 1), new IngredientHelper(TechType.Glass, 1) }), _techType = this.TechType }; }
public SeamothDoll() // Feeds abstract class { this.ClassID = "SeamothDoll"; this.ResourcePath = DecorationItem.DefaultResourcePath + this.ClassID; this.GameObject = AssetsHelper.Assets.LoadAsset <GameObject>("seamothpuppet"); this.TechType = TechTypePatcher.AddTechType(this.ClassID, LanguageHelper.GetFriendlyWord("SeamothDollName"), LanguageHelper.GetFriendlyWord("SeamothDollDescription"), true); this.IsHabitatBuilder = true; this.Recipe = new TechDataHelper() { _craftAmount = 1, _ingredients = new List <IngredientHelper>(new IngredientHelper[3] { new IngredientHelper(TechType.Titanium, 1), new IngredientHelper(TechType.Glass, 1), new IngredientHelper(TechType.Silicone, 1) }), _techType = this.TechType }; }
public WallMonitor3() // Feeds abstract class { this.ClassID = "WallMonitor3"; //cb612e1b-d57a-44f5-a043-a886eb17e5a6 this.ResourcePath = "WorldEntities/Doodads/Debris/Wrecks/Decoration/wall_monitor_01_03"; this.GameObject = Resources.Load <GameObject>(this.ResourcePath); this.SignObject = Resources.Load <GameObject>("Submarine/Build/Sign"); this.TechType = TechTypePatcher.AddTechType(this.ClassID, LanguageHelper.GetFriendlyWord("WallMonitor3Name"), LanguageHelper.GetFriendlyWord("WallMonitor3Description"), true); this.Recipe = new TechDataHelper() { _craftAmount = 1, _ingredients = new List <IngredientHelper>(new IngredientHelper[2] { new IngredientHelper(TechType.ComputerChip, 1), new IngredientHelper(TechType.Glass, 1) }), _techType = this.TechType }; }
public ForkLiftDoll() { // Feed DecortionItem interface this.ClassID = "ForkLiftDoll"; this.ResourcePath = DecorationItem.DefaultResourcePath + this.ClassID; this.GameObject = AssetsHelper.Assets.LoadAsset <GameObject>("forkliftdoll"); this.TechType = TechTypePatcher.AddTechType(this.ClassID, LanguageHelper.GetFriendlyWord("ForkLiftDollName"), LanguageHelper.GetFriendlyWord("ForkLiftDollDescription"), true); if (ConfigSwitcher.Forklift_asBuidable) { this.IsHabitatBuilder = true; } this.Recipe = new TechDataHelper() { _craftAmount = 1, _ingredients = new List <IngredientHelper>(new IngredientHelper[3] { new IngredientHelper(TechType.Titanium, 1), new IngredientHelper(TechType.Glass, 1), new IngredientHelper(TechType.Silicone, 1) }), _techType = this.TechType }; }
TechType ITechTypeHandlerInternal.AddTechType(Assembly modAssembly, string internalName, string displayName, string tooltip, bool unlockAtStart) { string modName = modAssembly.GetName().Name; // Register the TechType. var techType = TechTypePatcher.AddTechType(internalName); // Remember which Assembly added it TechTypesAddedBy[techType] = modAssembly; // register Language Lines. if (displayName is not null) { LanguagePatcher.AddCustomLanguageLine(modName, internalName, displayName); } if (tooltip is not null) { LanguagePatcher.AddCustomLanguageLine(modName, "Tooltip_" + internalName, tooltip); var valueToString = TooltipFactory.techTypeTooltipStrings.valueToString; valueToString[techType] = "Tooltip_" + internalName; } // Unlock the TechType on start if (unlockAtStart) { KnownTechPatcher.UnlockedAtStart.Add(techType); } // Return the new TechType. return(techType); }
public BarFood2() // Feeds abstract class { this.ClassID = "BarFood2"; this.ResourcePath = DecorationItem.DefaultResourcePath + this.ClassID; this.GameObject = AssetsHelper.Assets.LoadAsset <GameObject>("barfood02"); this.TechType = TechTypePatcher.AddTechType(this.ClassID, LanguageHelper.GetFriendlyWord("BarFood2Name"), LanguageHelper.GetFriendlyWord("BarFood2Description"), true); this.Recipe = new TechDataHelper() { _craftAmount = 1, _ingredients = new List <IngredientHelper>(new IngredientHelper[4] { new IngredientHelper(TechType.Titanium, 1), new IngredientHelper(TechType.DisinfectedWater, 1), new IngredientHelper(TechType.CuredReginald, 1), new IngredientHelper(TechType.Melon, 1) }), _techType = this.TechType }; }
TechType ITechTypeHandlerInternal.AddTechType(string modName, string internalName, string displayName, string tooltip, bool unlockAtStart) { // Register the TechType. TechType techType = TechTypePatcher.AddTechType(internalName); // Remember which Assembly added it Assembly mod = ReflectionHelper.CallingAssemblyByStackTrace(); TechTypesAddedBy[techType] = mod; // Register Language lines. LanguagePatcher.AddCustomLanguageLine(modName, internalName, displayName); LanguagePatcher.AddCustomLanguageLine(modName, "Tooltip_" + internalName, tooltip); Dictionary <TechType, string> valueToString = TooltipFactory.techTypeTooltipStrings.valueToString; valueToString[techType] = "Tooltip_" + internalName; // Unlock the TechType on start if (unlockAtStart) { KnownTechPatcher.UnlockedAtStart.Add(techType); } // Return the new TechType. return(techType); }
public JackSepticEye() { this.ClassID = "JackSepticEyeDoll"; // 07a05a2f-de55-4c60-bfda-cedb3ab72b88 this.ResourcePath = "Submarine/Build/jacksepticeye"; this.GameObject = Resources.Load <GameObject>(this.ResourcePath); this.TechType = TechTypePatcher.AddTechType(this.ClassID, LanguageHelper.GetFriendlyWord("JackSepticEyeName"), LanguageHelper.GetFriendlyWord("JackSepticEyeDescription"), true); if (ConfigSwitcher.JackSepticEye_asBuildable) { this.IsHabitatBuilder = true; } this.Recipe = new TechDataHelper() { _craftAmount = 1, _ingredients = new List <IngredientHelper>(new IngredientHelper[2] { new IngredientHelper(TechType.Titanium, 1), new IngredientHelper(TechType.Glass, 1) }), _techType = this.TechType }; }
public static void Patch() { var harmony = HarmonyInstance.Create("com.ahk1221.automation101"); harmony.PatchAll(Assembly.GetExecutingAssembly()); SceneManager.sceneLoaded += SceneManager_sceneLoaded; var assetBundle = AssetBundle.LoadFromFile("./QMods/Automation101/connectingassets.assets"); ConnectingStuff = assetBundle.LoadAsset <GameObject>("ConnectStuff"); ConnectToolTechType = TechTypePatcher.AddTechType("ConnectTool", "Connect Tool", "Connect tool."); CraftDataPatcher.customEquipmentTypes[ConnectToolTechType] = EquipmentType.Hand; CustomPrefabHandler.customPrefabs.Add(new CustomPrefab("ConnectTool", "WorldEntities/Tools/ConnectTool", ConnectToolTechType, GetConnectToolPrefab)); }
public static void Patch() { WarpRifleTechType = TechTypePatcher.AddTechType(WARP_RIFLE_CLASSID, "Warp Rifle", "l o l"); WarpBatteryTechType = TechTypePatcher.AddTechType(WARP_BATTERY_CLASSID, "Warp Battery", "Powers Warp Rifles"); CustomPrefabHandler.customPrefabs.Add(new CustomPrefab( WARP_RIFLE_CLASSID, WARP_RIFLE_PREFABPATH, WarpRifleTechType, GetRifleResource)); CustomPrefabHandler.customPrefabs.Add(new CustomPrefab( WARP_BATTERY_CLASSID, WARP_BATTERY_PREFABPATH, WarpBatteryTechType, GetBatteryResource)); CraftDataPatcher.customEquipmentTypes.Add(WarpRifleTechType, EquipmentType.Hand); }
public static void Patch() { #region Harmony Patch HarmonyInstance harmony = HarmonyInstance.Create("com.Fuklebark.TheBestDefense"); harmony.PatchAll(Assembly.GetExecutingAssembly()); #endregion var assetBundle = AssetBundle.LoadFromFile(@"./QMods/TheBestDefense/thebestdefense.assets"); // Create a new TechType ConcussionTorpedoTechType = TechTypePatcher.AddTechType(ConcussionNameID, ConcussionFriendlyName, ConcussionDescription, unlockOnGameStart: true); NukeTorpedoTechType = TechTypePatcher.AddTechType(NukeNameID, NukeFriendlyName, NukeDescription, unlockOnGameStart: true); // Create the in-game item CustomPrefabHandler.customPrefabs.Add(new CustomPrefab(ConcussionNameID, $"WorldEntities/Tools/{ConcussionNameID}", ConcussionTorpedoTechType, GetConcussionTorpedoObject)); CustomPrefabHandler.customPrefabs.Add(new CustomPrefab(NukeNameID, $"WorldEntities/Tools/{NukeNameID}", NukeTorpedoTechType, GetNukeTorpedoObject)); // Get the custom icon from the Unity assets bundle var Sprite = assetBundle.LoadAsset <Sprite>("ConcussionTorpedo"); var NukeSprite = assetBundle.LoadAsset <Sprite>("NukeTorpedo"); CustomSpriteHandler.customSprites.Add(new CustomSprite(ConcussionTorpedoTechType, Sprite)); CustomSpriteHandler.customSprites.Add(new CustomSprite(NukeTorpedoTechType, NukeSprite)); //CustomSpriteHandler.customSprites.Add(new CustomSprite(ConcussionTorpedoTechType, assetBundle.LoadAsset<Sprite>("ConcussionTorpedo"))); //CustomSpriteHandler.customSprites.Add(new CustomSprite(NukeTorpedoTechType, assetBundle.LoadAsset<Sprite>("NukeTorpedo"))); // Add the new recipe to the Vehicle Station crafting tree //CraftTreePatcher.customNodes.Add(new CustomCraftNode(ConcussionTorpedoTechType, CraftTree.Type.SeamothUpgrades, $"TorpedoesMenu /{ConcussionNameID}")); //CraftTreePatcher.customNodes.Add(new CustomCraftNode(NukeTorpedoTechType, CraftTree.Type.SeamothUpgrades, $"TorpedoesMenu /{NukeNameID}")); // Create a new Recipie and pair the new recipie with the new TechType CraftDataPatcher.customTechData[ConcussionTorpedoTechType] = GetConcussionRecipe(); CraftDataPatcher.customTechData[NukeTorpedoTechType] = GetNukeRecipe(); CraftTreePatcher.customNodes.Add(new CustomCraftNode(ConcussionTorpedoTechType, CraftTree.Type.SeamothUpgrades, "Torpedoes/ConcussionTorpedo")); CraftTreePatcher.customNodes.Add(new CustomCraftNode(NukeTorpedoTechType, CraftTree.Type.SeamothUpgrades, "Torpedoes/NukeTorpedo")); //CraftTreePatcher.customNodes.Add(new CustomCraftNode(ConcussionTorpedoTechType, CraftScheme.SeamothUpgrades, "Torpedoes/ConcussionTorpedo")); // Define it's Equipment Type (Can't find an obvious one, There's gotta be a way it knows how to distingish a torpedo for the bay, but I dunno how) //CraftDataPatcher.customEquipmentTypes[ConcussionTorpedoTechType] = EquipmentType.SeamothTorpedo; //CraftDataPatcher.customEquipmentTypes[NukeTorpedoTechType] = EquipmentType.SeamothTorpedo; }
public LabShelf() // Feeds abstract class { this.ClassID = "LabShelf"; //33acd899-72fe-4a98-85f9-b6811974fbeb this.ResourcePath = "WorldEntities/Doodads/Debris/Wrecks/Decoration/biodome_lab_shelf_01"; this.GameObject = Resources.Load <GameObject>(this.ResourcePath); this.TechType = TechTypePatcher.AddTechType(this.ClassID, LanguageHelper.GetFriendlyWord("LabShelfName"), LanguageHelper.GetFriendlyWord("LabShelfDescription"), true); this.Recipe = new TechDataHelper() { _craftAmount = 1, _ingredients = new List <IngredientHelper>(new IngredientHelper[1] { new IngredientHelper(TechType.Titanium, 2) }), _techType = this.TechType }; }
/// <summary> /// Adds a dummy item /// </summary> /// <param name="name">The internal name of the item. Can be omitted and it will be automatically generated</param> /// <param name="languageName">The name of the item</param> /// <param name="languageTooltip">The tooltip of the item</param> /// <param name="spriteItem">The <see cref="TechType"/> from which to get the <see cref="Atlas.Sprite"/></param> /// <param name="fabricatorNodePath">The path where the item should be added in the fabricator</param> /// <param name="ingredientItems">The ingredient item(s) of the recipe. Must be either <see cref="IngredientHelper"/> or a <see cref="List{IngredientHelper}"/> of <see cref="IngredientHelper"/></param> /// <param name="resultingItems">The resulting items of the recipe. Must be either <see cref="TechType"/> or a <see cref="List{T}"/> of <see cref="TechType"/></param> /// <param name="prefabPath">The path of the prefab. Can be omitted and the item will not have a prefab</param> /// <returns>A <see cref="Result"/></returns> private static Result AddDummy(string name, string languageName, string languageTooltip, TechType spriteItem, string fabricatorNodePath, List <IngredientHelper> ingredientItems, List <TechType> resultingItems, string prefabPath = null) { TechType techType = TechTypePatcher.AddTechType(name, languageName, languageTooltip); Atlas.Sprite sprite = SpriteManager.Get(spriteItem); CustomSprite customSprite = new CustomSprite(techType, sprite); CustomCraftNode customCraftNode = new CustomCraftNode(techType, CraftTree.Type.Fabricator, fabricatorNodePath); TechDataHelper techData = new TechDataHelper() { _craftAmount = 0, _ingredients = ingredientItems, _linkedItems = resultingItems, _techType = techType }; CustomSpriteHandler.customSprites.Add(customSprite); CraftDataPatcher.customTechData.Add(techType, techData); CraftTreePatcher.customNodes.Add(customCraftNode); Result result = new Result() { CustomCraftNode = customCraftNode, CustomSprite = customSprite, Sprite = sprite, TechDataHelper = techData, TechType = techType, }; if (prefabPath == null) { return(result); } PrefabGenerator prefab = new PrefabGenerator(prefabPath, name, techType); CustomPrefabHandler.customPrefabs.Add(new CustomPrefab(prefab.InternalName, prefab.NewPrefabPath, prefab.Item, prefab.GameObject)); return(result); }
internal TechType AddTechType(string modName, string internalName, string displayName, string tooltip, bool unlockAtStart) { // Register the TechType. TechType techType = TechTypePatcher.AddTechType(internalName); // Register Language lines. LanguagePatcher.AddCustomLanguageLine(modName, internalName, displayName); LanguagePatcher.AddCustomLanguageLine(modName, "Tooltip_" + internalName, tooltip); Dictionary <TechType, string> valueToString = TooltipFactory.techTypeTooltipStrings.valueToString; valueToString[techType] = "Tooltip_" + internalName; // Unlock the TechType on start if (unlockAtStart) { KnownTechPatcher.UnlockedAtStart.Add(techType); } // Return the new TechType. return(techType); }
public BarNapkins() // Feeds abstract class { this.ClassID = "BarNapkins"; this.ResourcePath = DecorationItem.DefaultResourcePath + this.ClassID; this.GameObject = AssetsHelper.Assets.LoadAsset <GameObject>("barnapkins"); this.TechType = TechTypePatcher.AddTechType(this.ClassID, LanguageHelper.GetFriendlyWord("BarNapkinsName"), LanguageHelper.GetFriendlyWord("BarNapkinsDescription"), true); this.Recipe = new TechDataHelper() { _craftAmount = 1, _ingredients = new List <IngredientHelper>(new IngredientHelper[1] { new IngredientHelper(TechType.FiberMesh, 1) }), _techType = this.TechType }; }
public GenericSkeleton2() { this.ClassID = "GenericSkeleton2"; this.ResourcePath = DecorationItem.DefaultResourcePath + this.ClassID; this.GameObject = AssetsHelper.Assets.LoadAsset <GameObject>("Lost_river_generic_skeleton_02"); this.TechType = TechTypePatcher.AddTechType(this.ClassID, LanguageHelper.GetFriendlyWord("GenericSkeletonName") + " (B)", LanguageHelper.GetFriendlyWord("GenericSkeletonDescription"), true); this.Recipe = new TechDataHelper() { _craftAmount = 1, _ingredients = new List <IngredientHelper>(new IngredientHelper[1] { new IngredientHelper(TechType.Titanium, 1) }), _techType = this.TechType }; }
public ReaperSkullDoll() { this.ClassID = "ReaperSkullDoll"; this.ResourcePath = DecorationItem.DefaultResourcePath + this.ClassID; this.GameObject = AssetsHelper.Assets.LoadAsset <GameObject>("reaperskull"); this.TechType = TechTypePatcher.AddTechType(this.ClassID, LanguageHelper.GetFriendlyWord("ReaperSkullDollName"), LanguageHelper.GetFriendlyWord("ReaperSkullDollDescription"), true); this.Recipe = new TechDataHelper() { _craftAmount = 1, _ingredients = new List <IngredientHelper>(new IngredientHelper[1] { new IngredientHelper(TechType.Titanium, 1) }), _techType = this.TechType }; }
public PenHolder() { this.ClassID = "PenHolder"; this.ResourcePath = DecorationItem.DefaultResourcePath + this.ClassID; this.GameObject = AssetsHelper.Assets.LoadAsset <GameObject>("docking_clerical_penholder"); this.TechType = TechTypePatcher.AddTechType(this.ClassID, LanguageHelper.GetFriendlyWord("PenHolderName"), LanguageHelper.GetFriendlyWord("PenHolderDescription"), true); this.Recipe = new TechDataHelper() { _craftAmount = 1, _ingredients = new List <IngredientHelper>(new IngredientHelper[1] { new IngredientHelper(TechType.Titanium, 1) }), _techType = this.TechType }; }
public CircuitBox2d() // Feeds abstract class { this.ClassID = "CircuitBox2d"; // 3e4f0d4d-e8c9-4053-bada-980f442d50d1 this.ResourcePath = "WorldEntities/Doodads/Debris/Wrecks/Decoration/circuit_box_01_02"; this.GameObject = Resources.Load <GameObject>(this.ResourcePath); this.TechType = TechTypePatcher.AddTechType(this.ClassID, LanguageHelper.GetFriendlyWord("CircuitBox2Name"), LanguageHelper.GetFriendlyWord("CircuitBox2Description"), true); this.Recipe = new TechDataHelper() { _craftAmount = 1, _ingredients = new List <IngredientHelper>(new IngredientHelper[2] { new IngredientHelper(TechType.Titanium, 1), new IngredientHelper(TechType.Copper, 1) }), _techType = this.TechType }; }
public LabContainer4() // Feeds abstract class { this.ClassID = "LabContainer4"; this.ResourcePath = "WorldEntities/Doodads/Debris/Wrecks/Decoration/biodome_lab_containers_tube_02"; this.GameObject = Resources.Load <GameObject>(this.ResourcePath); this.TechType = TechTypePatcher.AddTechType(this.ClassID, LanguageHelper.GetFriendlyWord("LabContainer4Name"), LanguageHelper.GetFriendlyWord("LabContainer4Description"), true); this.Recipe = new TechDataHelper() { _craftAmount = 1, _ingredients = new List <IngredientHelper>(new IngredientHelper[2] { new IngredientHelper(TechType.Titanium, 1), new IngredientHelper(TechType.Glass, 1) }), _techType = this.TechType }; }
public Folder3() { this.ClassID = "Folder3"; this.ResourcePath = DecorationItem.DefaultResourcePath + this.ClassID; this.GameObject = AssetsHelper.Assets.LoadAsset <GameObject>("docking_clerical_folder3"); this.TechType = TechTypePatcher.AddTechType(this.ClassID, LanguageHelper.GetFriendlyWord("Folder1Name") + " (B)", LanguageHelper.GetFriendlyWord("Folder1Description"), true); this.Recipe = new TechDataHelper() { _craftAmount = 1, _ingredients = new List <IngredientHelper>(new IngredientHelper[2] { new IngredientHelper(TechType.Titanium, 1), new IngredientHelper(TechType.FiberMesh, 1) }), _techType = this.TechType }; }
public CircuitBox1() // Feeds abstract class { this.ClassID = "CircuitBox1"; // 4bc83dc1-dd91-4478-9b35-fd520ccaeb7c this.ResourcePath = "WorldEntities/Doodads/Debris/Wrecks/Decoration/circuit_box_01_01"; this.GameObject = Resources.Load <GameObject>(this.ResourcePath); this.TechType = TechTypePatcher.AddTechType(this.ClassID, LanguageHelper.GetFriendlyWord("CircuitBox1Name"), LanguageHelper.GetFriendlyWord("CircuitBox1Description"), true); this.Recipe = new TechDataHelper() { _craftAmount = 1, _ingredients = new List <IngredientHelper>(new IngredientHelper[2] { new IngredientHelper(TechType.Titanium, 1), new IngredientHelper(TechType.Copper, 1) }), _techType = this.TechType }; }
public LabTube() // Feeds abstract class { this.ClassID = "DecorationLabTube"; // a36047b0-1533-4718-8879-d6ba9229c978 this.ResourcePath = "WorldEntities/Doodads/Debris/Wrecks/Decoration/biodome_lab_tube_01"; this.GameObject = Resources.Load <GameObject>(this.ResourcePath); this.TechType = TechTypePatcher.AddTechType(this.ClassID, LanguageHelper.GetFriendlyWord("LabTubeName"), LanguageHelper.GetFriendlyWord("LabTubeDescription"), true); this.Recipe = new TechDataHelper() { _craftAmount = 1, _ingredients = new List <IngredientHelper>(new IngredientHelper[2] { new IngredientHelper(TechType.Titanium, 2), new IngredientHelper(TechType.Glass, 1) }), _techType = this.TechType }; }
public BarBottle5() // Feeds abstract class { this.ClassID = "BarBottle5"; this.ResourcePath = DecorationItem.DefaultResourcePath + this.ClassID; this.GameObject = AssetsHelper.Assets.LoadAsset <GameObject>("barbottle05"); this.TechType = TechTypePatcher.AddTechType(this.ClassID, LanguageHelper.GetFriendlyWord("BarBottleName"), LanguageHelper.GetFriendlyWord("BarBottleDescription"), true); this.Recipe = new TechDataHelper() { _craftAmount = 1, _ingredients = new List <IngredientHelper>(new IngredientHelper[2] { new IngredientHelper(TechType.Glass, 1), new IngredientHelper(TechType.BigFilteredWater, 1) }), _techType = this.TechType }; }
public CircuitBox3() // Feeds abstract class { this.ClassID = "CircuitBox3"; // 5d5fad52-7783-4107-a68c-6a94c473e25e this.ResourcePath = "WorldEntities/Doodads/Debris/Wrecks/Decoration/circuit_box_01_03"; this.GameObject = Resources.Load <GameObject>(this.ResourcePath); this.TechType = TechTypePatcher.AddTechType(this.ClassID, LanguageHelper.GetFriendlyWord("CircuitBox3Name"), LanguageHelper.GetFriendlyWord("CircuitBox3Description"), true); this.Recipe = new TechDataHelper() { _craftAmount = 1, _ingredients = new List <IngredientHelper>(new IngredientHelper[2] { new IngredientHelper(TechType.Titanium, 1), new IngredientHelper(TechType.Copper, 1) }), _techType = this.TechType }; }
public DecorativeLockerDoor() // Feeds abstract class { this.ClassID = "DecorativeLockerDoor"; // 078b41f8-968e-4ca3-8a7e-4e3d7d98422c this.ResourcePath = "WorldEntities/Doodads/Debris/Wrecks/Decoration/submarine_locker_05"; this.GameObject = Resources.Load <GameObject>(this.ResourcePath); this.TechType = TechTypePatcher.AddTechType(this.ClassID, LanguageHelper.GetFriendlyWord("DecorativeLockerName"), LanguageHelper.GetFriendlyWord("DecorativeLockerDescription"), true); this.IsHabitatBuilder = true; this.Recipe = new TechDataHelper() { _craftAmount = 1, _ingredients = new List <IngredientHelper>(new IngredientHelper[1] { new IngredientHelper(TechType.Titanium, 2) }), _techType = this.TechType }; }
public DecorativeLockerClosed() // Feeds abstract class { this.ClassID = "DecorativeLockerClosed"; // cd34fecd-794c-4a0c-8012-dd81b77f2840 this.ResourcePath = "Submarine/Build/submarine_locker_04"; this.GameObject = Resources.Load <GameObject>(this.ResourcePath); this.TechType = TechTypePatcher.AddTechType(this.ClassID, LanguageHelper.GetFriendlyWord("DecorativeLockerName"), LanguageHelper.GetFriendlyWord("DecorativeLockerDescription"), true); this.IsHabitatBuilder = true; this.Recipe = new TechDataHelper() { _craftAmount = 1, _ingredients = new List <IngredientHelper>(new IngredientHelper[1] { new IngredientHelper(TechType.Titanium, 2) }), _techType = this.TechType }; }
public LabContainerOpen3() // Feeds abstract class { this.ClassID = "LabContainerOpen3"; // 1faf2b57-ff4f-4ea5-a715-7cc5ff6aae60 this.ResourcePath = "WorldEntities/Doodads/Debris/Wrecks/Decoration/biodome_lab_containers_open_03"; this.GameObject = Resources.Load <GameObject>(this.ResourcePath); this.TechType = TechTypePatcher.AddTechType(this.ClassID, LanguageHelper.GetFriendlyWord("SmallLabContainerOpenName"), LanguageHelper.GetFriendlyWord("LabContainerOpenDescription"), true); this.Recipe = new TechDataHelper() { _craftAmount = 1, _ingredients = new List <IngredientHelper>(new IngredientHelper[2] { new IngredientHelper(TechType.Titanium, 1), new IngredientHelper(TechType.Glass, 1) }), _techType = this.TechType }; }