Пример #1
0
        public override bool Passes(Item item)
        {
            ItemFilter placeable = new FilterPlaceable();
            bool       ct        = false;

            if (item.createTile != -1)
            {
                ct = TileID.Sets.BasicChest[item.createTile];
            }
            return(placeable.Passes(item) && (MagicStorage.ContainsExactMatch(item.Name, "Crate") || (ct)));
        }
Пример #2
0
        public override bool Passes(Item item)
        {
            ItemFilter placeable = new FilterPlaceable();

            return(placeable.Passes(item) && (MagicStorage.ContainsExactMatch(item.Name, "Block") || MagicStorage.ContainsExactMatch(item.Name, "Brick") || item.createWall > 0));
        }
Пример #3
0
        public override bool Passes(Item item)
        {
            ItemFilter placeable = new FilterPlaceable();

            return(placeable.Passes(item) && (MagicStorage.ContainsExactMatch(item.Name, "Banner")));
        }
Пример #4
0
 public override bool Passes(Item item)
 {
     return(item.createTile >= 0 || item.createWall > 0 || (MagicStorage.ContainsExactMatch(item.Name, "Bar") || MagicStorage.ContainsExactMatch(item.Name, "Ore")));
 }