* Attach a monster id to an object, to provide * a lasting association between the two. */
| 2144 | * a lasting association between the two. |
| 2145 | */ |
| 2146 | struct obj * |
| 2147 | obj_attach_mid(struct obj *obj, unsigned int mid) |
| 2148 | { |
| 2149 | if (!mid || !obj) |
| 2150 | return (struct obj *) 0; |
| 2151 | newomid(obj); |
| 2152 | OMID(obj) = mid; |
| 2153 | return obj; |
| 2154 | } |
| 2155 | |
| 2156 | staticfn struct obj * |
| 2157 | save_mtraits(struct obj *obj, struct monst *mtmp) |