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

Function ia_dotakeoff

src/do_wear.c:1861–1870  ·  view source on GitHub ↗

'i' or 'I[' followed by and then 'T'; plain dotakeoff() would not give any feedback when picking suit covered by cloak, or shirt covered by suit and/or cloak, due to the default behavior of equip_ok() (skipping inaccessible items) */

Source from the content-addressed store, hash-verified

1859 covered by cloak, or shirt covered by suit and/or cloak, due to the
1860 default behavior of equip_ok() (skipping inaccessible items) */
1861int
1862ia_dotakeoff(void)
1863{
1864 int res;
1865
1866 gi.item_action_in_progress = TRUE;
1867 res = dotakeoff();
1868 gi.item_action_in_progress = FALSE;
1869 return res;
1870}
1871
1872/* the #remove command - take off ring or other accessory */
1873int

Callers

nothing calls this directly

Calls 1

dotakeoffFunction · 0.85

Tested by

no test coverage detected