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

Function perm_invent_toggled

src/invent.c:5660–5677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5658}
5659
5660void
5661perm_invent_toggled(boolean negated)
5662{
5663 in_perm_invent_toggled = TRUE;
5664 if (negated) {
5665 gp.perm_invent_toggling_direction = toggling_off;
5666 if (WIN_INVEN != WIN_ERR)
5667 destroy_nhwindow(WIN_INVEN), WIN_INVEN = WIN_ERR;
5668 gc.core_invent_state = 0;
5669 } else {
5670 gp.perm_invent_toggling_direction = toggling_on;
5671 if (iflags.perminv_mode == InvOptNone)
5672 iflags.perminv_mode = InvOptOn; /* all inventory except gold */
5673 sync_perminvent();
5674 }
5675 gp.perm_invent_toggling_direction = toggling_not;
5676 in_perm_invent_toggled = FALSE;
5677}
5678
5679/*invent.c*/

Callers 5

tty_preference_updateFunction · 0.85
can_set_perm_inventFunction · 0.85
handler_perminv_modeFunction · 0.85
done_object_cleanupFunction · 0.85
sync_perminventFunction · 0.85

Calls 1

sync_perminventFunction · 0.85

Tested by

no test coverage detected