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

Function mksobj_at

src/mkobj.c:237–248  ·  view source on GitHub ↗

make a specific object at a specific location */

Source from the content-addressed store, hash-verified

235
236/* make a specific object at a specific location */
237struct obj *
238mksobj_at(
239 int otyp,
240 coordxy x, coordxy y,
241 boolean init, boolean artif)
242{
243 struct obj *otmp;
244
245 otmp = mksobj(otyp, init, artif);
246 place_object(otmp, x, y);
247 return otmp;
248}
249
250
251/* used for extra orctown loot */

Callers 15

fill_zooFunction · 0.85
mdig_tunnelFunction · 0.85
zap_digFunction · 0.85
mkveggy_atFunction · 0.85
mkshobj_atFunction · 0.85
makerogueghostFunction · 0.85
make_corpseFunction · 0.85
meatmetalFunction · 0.85
monstoneFunction · 0.85
xkilledFunction · 0.85
rnd_treefruit_atFunction · 0.85
mkgoldFunction · 0.85

Calls 2

mksobjFunction · 0.85
place_objectFunction · 0.85

Tested by

no test coverage detected