// Token: 0x0600070D RID: 1805 RVA: 0x00029550 File Offset: 0x00027750
        public override void ConfigureBuildingTemplate(GameObject go, Tag prefab_tag)
        {
            Storage storage = BuildingTemplates.CreateDefaultStorage(go);

            storage.showDescriptor = true;
            storage.storageFilters = STORAGEFILTERS.LIQUIDS;
            storage.capacityKg     = 1000f;
            go.AddOrGet <DropAllWorkable>();
            go.AddOrGet <AutoDropInv>();
            PipedLiquidBottler pipedLiquidBottler = go.AddOrGet <PipedLiquidBottler>();

            pipedLiquidBottler.Storage  = storage;
            pipedLiquidBottler.workTime = 9f;
            ConduitConsumer conduitConsumer = go.AddOrGet <ConduitConsumer>();

            conduitConsumer.storage              = storage;
            conduitConsumer.conduitType          = ConduitType.Liquid;
            conduitConsumer.ignoreMinMassCheck   = true;
            conduitConsumer.forceAlwaysSatisfied = true;
            conduitConsumer.alwaysConsume        = true;
            conduitConsumer.capacityKG           = storage.capacityKg;
            conduitConsumer.keepZeroMassObject   = false;
        }
Esempio n. 2
0
 // Token: 0x06008BEB RID: 35819 RVA: 0x002D3170 File Offset: 0x002D1370
 public Instance(PipedLiquidBottler master) : base(master)
 {
 }