예제 #1
0
        public override int GetSlotCapacity(int slotIndex, int value)
        {
            if (slotIndex != 8)
            {
                return(slotIndex > 3 && Terrain.ExtractContents(value) != 90
                                        ? 0
                                        : base.GetSlotCapacity(slotIndex, value));
            }
            var type = DrillBlock.GetType(value);

            return((type == DrillType.IronTubularis || type == DrillType.SteelTubularis) ? base.GetSlotCapacity(slotIndex, DrillBlock.SetType(value, DrillType.SteelDrill)) : 0);
        }
예제 #2
0
        public override int GetSlotCapacity(int slotIndex, int value)
        {
            if (slotIndex != 8)
            {
                return(base.GetSlotCapacity(slotIndex, value));
            }
            if (Terrain.ExtractContents(value) != DrillBlock.Index)
            {
                return(0);
            }
            var type = DrillBlock.GetType(value);

            return((type == DrillType.DiamondDrill || type == DrillType.SteelDrill) ? base.GetSlotCapacity(slotIndex, value) : 0);
        }