Exemplo n.º 1
0
            public static void Postfix(AlgaeDistilleryConfig __instance, ref GameObject go)
            {
                float ratio;

                ratio = DynamicBuildingsState.StateManager.State.SlimeConsumeKGsPerSecond / 0.6f;
                ManualDeliveryKG manualDeliveryKG = go.AddOrGet <ManualDeliveryKG>();

                manualDeliveryKG.refillMass = 120f * ratio;
                manualDeliveryKG.capacity   = 480f * ratio;
                AlgaeDistillery algaeDistillery = go.AddOrGet <AlgaeDistillery>();

                algaeDistillery.emitMass = 30f * ratio;

                ElementConverter elementConverter = go.AddOrGet <ElementConverter>();

                var newConsumedElements = new[] { new ElementConverter.ConsumedElement(SimHashes.SlimeMold.CreateTag(), 0.6f * ratio) };

                var newOutputElements = new[]    {
                    new ElementConverter.OutputElement(0.2f * ratio, SimHashes.Algae, 303.15f, true, 0f, 1f, false, 0f, 0),
                    new ElementConverter.OutputElement(0.400000036f * ratio, SimHashes.DirtyWater, 303.15f, true, 0f, 0.5f, false, 0f, 0)
                };

                elementConverter.outputElements   = newOutputElements;
                elementConverter.consumedElements = newConsumedElements;
            }
Exemplo n.º 2
0
        private static void Postfix(AlgaeDistilleryConfig __instance, GameObject go, Tag prefab_tag)
        {
            ElementConverter elementConverter = go.AddOrGet <ElementConverter>();

            elementConverter.outputElements = new ElementConverter.OutputElement[2]
            {
                //new ElementConverter.OutputElement(0.2f, SimHashes.Algae, 303.15f, true, 0f, 1f, false, 1f, 255, 0),
                //new ElementConverter.OutputElement(0.400000036f, SimHashes.DirtyWater, 303.15f, true, 0f, 0.5f, false, 1f, 255, 0)

                new ElementConverter.OutputElement(0.2f, SimHashes.Algae, 0f, true, 0f, 1f, true, 1f, 255, 0),
                new ElementConverter.OutputElement(0.4f, SimHashes.DirtyWater, 0f, true, 0f, 0.5f, true, 1f, 255, 0)
            };
        }
 private static void Postfix(AlgaeDistilleryConfig __instance, GameObject go, Tag prefab_tag)
 {
     NoFixedTemp_Utils.ChangeMinTemperature(go);
 }