make a new corpse or statue, uninitialized if a statue (i.e. no books); never returns Null */
| 2250 | /* make a new corpse or statue, uninitialized if a statue (i.e. no books); |
| 2251 | never returns Null */ |
| 2252 | struct obj * |
| 2253 | mk_named_object( |
| 2254 | int objtype, /* CORPSE or STATUE */ |
| 2255 | struct permonst *ptr, |
| 2256 | coordxy x, coordxy y, |
| 2257 | const char *nm) |
| 2258 | { |
| 2259 | struct obj *otmp; |
| 2260 | unsigned corpstatflags = (objtype != STATUE) ? CORPSTAT_INIT |
| 2261 | : CORPSTAT_NONE; |
| 2262 | |
| 2263 | otmp = mkcorpstat(objtype, (struct monst *) 0, ptr, x, y, corpstatflags); |
| 2264 | if (nm) |
| 2265 | otmp = oname(otmp, nm, ONAME_NO_FLAGS); |
| 2266 | return otmp; |
| 2267 | } |
| 2268 | |
| 2269 | boolean |
| 2270 | is_flammable(struct obj *otmp) |
no test coverage detected