private static void Postfix(GasVentConfig __instance, GameObject go, Tag prefab_tag) { Debug.Log(" === VentPressureMod_GasVentConfig_ConfigureBuildingTemplate Postfix === "); Vent vent = go.GetComponent <Vent>(); VentPressureState.StateManager.State.MaximumPressure.TryGetValue("GasVent", out vent.overpressureMass); }
static void Postfix(GasVentConfig __instance, ref GameObject go) { Vent vent = go.AddOrGet <Vent>(); vent.overpressureMass = DynamicBuildingsState.StateManager.State.GVOP; }