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))); }
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)); }
public override bool Passes(Item item) { ItemFilter placeable = new FilterPlaceable(); return(placeable.Passes(item) && (MagicStorage.ContainsExactMatch(item.Name, "Banner"))); }
public override bool Passes(Item item) { return(item.createTile >= 0 || item.createWall > 0 || (MagicStorage.ContainsExactMatch(item.Name, "Bar") || MagicStorage.ContainsExactMatch(item.Name, "Ore"))); }