getobj callback for object to apply grease to */
| 2582 | |
| 2583 | /* getobj callback for object to apply grease to */ |
| 2584 | staticfn int |
| 2585 | grease_ok(struct obj *obj) |
| 2586 | { |
| 2587 | if (!obj) |
| 2588 | return GETOBJ_SUGGEST; |
| 2589 | |
| 2590 | /* note: if changing the list of ungreasable objects, also change |
| 2591 | special_throne_effect in sit.c */ |
| 2592 | if (obj->oclass == COIN_CLASS) |
| 2593 | return GETOBJ_EXCLUDE; |
| 2594 | |
| 2595 | if (inaccessible_equipment(obj, (const char *) 0, FALSE)) |
| 2596 | return GETOBJ_EXCLUDE_INACCESS; |
| 2597 | |
| 2598 | /* Possible extension: don't suggest greasing objects which are already |
| 2599 | * greased. */ |
| 2600 | return GETOBJ_SUGGEST; |
| 2601 | } |
| 2602 | |
| 2603 | staticfn int |
| 2604 | use_grease(struct obj *obj) |
nothing calls this directly
no test coverage detected