| 910 | } |
| 911 | |
| 912 | struct autopickup_exception * |
| 913 | check_autopickup_exceptions(struct obj *obj) |
| 914 | { |
| 915 | /* |
| 916 | * Does the text description of this match an exception? |
| 917 | */ |
| 918 | struct autopickup_exception *ape = ga.apelist; |
| 919 | |
| 920 | if (ape) { |
| 921 | char *objdesc = makesingular(doname(obj)); |
| 922 | |
| 923 | while (ape && !regex_match(objdesc, ape->regex)) |
| 924 | ape = ape->next; |
| 925 | } |
| 926 | return ape; |
| 927 | } |
| 928 | |
| 929 | boolean |
| 930 | autopick_testobj(struct obj *otmp, boolean calc_costly) |
no test coverage detected