spec->type = TYPE_PLAYER;
} else if (string_prefix("divisions", restriction)) {
spec->type = TYPE_DIVISION;
+ } else if (string_prefix("garbage", restriction)) {
+ spec->type = TYPE_GARBAGE;
} else {
notify(player, T("Unknown type."));
return -1;
mush_panic(T("Couldn't allocate memory in search!"));
for (n = spec.low; n <= spec.high; n++) {
- if (IsGarbage(n))
+ if (IsGarbage(n) && spec.type != TYPE_GARBAGE)
continue;
if (spec.owner == ANY_OWNER && !CanSearch(player, Owner(n)))
continue;