MCPcopy Create free account
hub / github.com/NetHack/NetHack / mk_named_object

Function mk_named_object

src/mkobj.c:2252–2267  ·  view source on GitHub ↗

make a new corpse or statue, uninitialized if a statue (i.e. no books); never returns Null */

Source from the content-addressed store, hash-verified

2250/* make a new corpse or statue, uninitialized if a statue (i.e. no books);
2251 never returns Null */
2252struct obj *
2253mk_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
2269boolean
2270is_flammable(struct obj *otmp)

Callers 2

savebonesFunction · 0.85
really_doneFunction · 0.85

Calls 2

mkcorpstatFunction · 0.85
onameFunction · 0.85

Tested by

no test coverage detected