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

Function nomerge_exception

src/mkobj.c:3277–3286  ·  view source on GitHub ↗

does 'obj' use the 'nomerge' flag persistently? */

Source from the content-addressed store, hash-verified

3275
3276/* does 'obj' use the 'nomerge' flag persistently? */
3277staticfn boolean
3278nomerge_exception(struct obj *obj)
3279{
3280 /* special prize objects for achievement tracking are set 'nomerge'
3281 until they get picked up by the hero */
3282 if (is_mines_prize(obj) || is_soko_prize(obj))
3283 return TRUE;
3284
3285 return FALSE;
3286}
3287
3288/* This must stay consistent with the defines in obj.h. */
3289static const char *const obj_state_names[NOBJ_STATES] = {

Callers 1

insane_obj_bitsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected