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

Function addinv_nomerge

src/invent.c:1168–1178  ·  view source on GitHub ↗

return value will always be 'obj' */

Source from the content-addressed store, hash-verified

1166
1167/* return value will always be 'obj' */
1168struct obj *
1169addinv_nomerge(struct obj *obj)
1170{
1171 struct obj *result;
1172 unsigned save_nomerge = obj->nomerge;
1173
1174 obj->nomerge = 1;
1175 result = addinv(obj);
1176 obj->nomerge = save_nomerge;
1177 return result;
1178}
1179
1180/*
1181 * Some objects are affected by being carried.

Callers 4

finish_splittingFunction · 0.85
nhl_gamestateFunction · 0.85
touchfoodFunction · 0.85
use_royal_jellyFunction · 0.85

Calls 1

addinvFunction · 0.85

Tested by

no test coverage detected