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

Function mkobj_at

src/mkobj.c:226–234  ·  view source on GitHub ↗

make a random object of class 'let' at a specific location; 'let' might be random class; place_object() will validate */

Source from the content-addressed store, hash-verified

224/* make a random object of class 'let' at a specific location;
225 'let' might be random class; place_object() will validate <x,y> */
226struct obj *
227mkobj_at(char let, coordxy x, coordxy y, boolean artif)
228{
229 struct obj *otmp;
230
231 otmp = mkobj(let, artif);
232 place_object(otmp, x, y);
233 return otmp;
234}
235
236/* make a specific object at a specific location */
237struct obj *

Callers 10

fill_zooFunction · 0.85
mkshobj_atFunction · 0.85
makemonFunction · 0.85
makenicheFunction · 0.85
fill_ordinary_roomFunction · 0.85
populate_mazeFunction · 0.85
create_objectFunction · 0.85
fill_empty_mazeFunction · 0.85
drinksinkFunction · 0.85
sink_backs_upFunction · 0.85

Calls 2

mkobjFunction · 0.85
place_objectFunction · 0.85

Tested by

no test coverage detected