Example #1
0
            public static void Postfix(LiquidReservoirConfig __instance, ref GameObject go)
            {
                Storage storage = BuildingTemplates.CreateDefaultStorage(go);

                storage.capacityKg = DynamicBuildingsState.StateManager.State.LiqRes;
                ConduitConsumer conduitConsumer = go.AddOrGet <ConduitConsumer>();

                conduitConsumer.capacityKG = storage.capacityKg;
            }
Example #2
0
 public static void Postfix(LiquidReservoirConfig __instance, ref BuildingDef __result) => __result.PermittedRotations = PermittedRotations.R360;
Example #3
0
 static void Postfix(LiquidReservoirConfig __instance, ref BuildingDef __result)
 {
     __result.ContinuouslyCheckFoundation = DynamicBuildingsState.StateManager.State.LiqResBase;
 }