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

Function dropx

src/do.c:785–796  ·  view source on GitHub ↗

dropx - take dropped item out of inventory; called in several places - may produce output (eg ship_object() and dropy() -> sellobj() both produce output) */

Source from the content-addressed store, hash-verified

783 called in several places - may produce output
784 (eg ship_object() and dropy() -> sellobj() both produce output) */
785void
786dropx(struct obj *obj)
787{
788 freeinv(obj);
789 if (!u.uswallow) {
790 if (ship_object(obj, u.ux, u.uy, FALSE))
791 return;
792 if (IS_ALTAR(levl[u.ux][u.uy].typ))
793 doaltarobj(obj); /* set bknown */
794 }
795 dropy(obj);
796}
797
798/* dropy - put dropped object at destination; called from lots of places */
799void

Callers 15

drop_uswapwepFunction · 0.85
glibrFunction · 0.85
dosinkringFunction · 0.85
dropFunction · 0.85
retouch_objectFunction · 0.85
digFunction · 0.85
hold_another_objectFunction · 0.85
droppFunction · 0.85
drop_weaponFunction · 0.85
reverse_lootFunction · 0.85
start_tinFunction · 0.85
emergency_disrobeFunction · 0.85

Calls 4

freeinvFunction · 0.85
ship_objectFunction · 0.85
doaltarobjFunction · 0.85
dropyFunction · 0.85

Tested by

no test coverage detected