MCPcopy Index your code
hub / github.com/NetHack/NetHack / addinv

Function addinv

src/invent.c:1151–1155  ·  view source on GitHub ↗

add obj to the hero's inventory in the default fashion */

Source from the content-addressed store, hash-verified

1149
1150/* add obj to the hero's inventory in the default fashion */
1151struct obj *
1152addinv(struct obj *obj)
1153{
1154 return addinv_core0(obj, (struct obj *) 0, TRUE);
1155}
1156
1157/* add obj to the hero's inventory by inserting in front of a specific item;
1158 used for throw-and-return in case '!fixinv' is in effect */

Callers 11

nhl_obj_u_giveobjFunction · 0.85
mhitm_ad_sgldFunction · 0.85
level_teleFunction · 0.85
thitmonstFunction · 0.85
addinv_nomergeFunction · 0.85
pick_objFunction · 0.85
out_containerFunction · 0.85
wizkit_addinvFunction · 0.85
ini_invFunction · 0.85
light_cocktailFunction · 0.85
money2uFunction · 0.85

Calls 1

addinv_core0Function · 0.85

Tested by

no test coverage detected