private static void AddBuilding() { Utils.AddBuildingToPlanScreen("HEP", HEPBridgeInsulationTileConfig.ID, HEPBridgeTileConfig.ID); PGameUtils.CopySoundsToAnim("wallbridge_orb_transporter_kanim", "orb_transporter_kanim"); // заменяем технологию для клеевской пластины var klei_tech_current = Db.Get().Techs.TryGetTechForTechItem(HEPBridgeTileConfig.ID); var klei_tech_new_id = HEPBridgeInsulationTileOptions.Instance.research_klei.ToString(); if (klei_tech_current != null && klei_tech_current.Id != klei_tech_new_id) { klei_tech_current.unlockedItemIDs.Remove(HEPBridgeTileConfig.ID); Utils.AddBuildingToTechnology(klei_tech_new_id, HEPBridgeTileConfig.ID); } var mod_tech_id = HEPBridgeInsulationTileOptions.Instance.research_mod.ToString(); Utils.AddBuildingToTechnology(mod_tech_id, HEPBridgeInsulationTileConfig.ID); }
public override BuildingDef CreateBuildingDef() { PGameUtils.CopySoundsToAnim(VacuumPump.Animation, "pumpgas_kanim"); GeneratedBuildings.RegisterWithOverlay(OverlayScreen.GasVentIDs, ID); return(VacuumPump?.CreateDef()); }
private static void AddBuilding() { Utils.AddBuildingToPlanScreen("Medical", BuildableGeneShufflerConfig.ID); Utils.AddBuildingToTechnology("MedicineIV", BuildableGeneShufflerConfig.ID); PGameUtils.CopySoundsToAnim(BuildableGeneShufflerConfig.anim, "geneshuffler_kanim"); }