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

Function explain_container_prompt

src/pickup.c:2910–2940  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2908}
2909
2910staticfn void
2911explain_container_prompt(boolean more_containers)
2912{
2913 static const char *const explaintext[] = {
2914 "Container actions:",
2915 "",
2916 " : -- Look: examine contents",
2917 " o -- Out: take things out",
2918 " i -- In: put things in",
2919 " b -- Both: first take things out, then put things in",
2920 " r -- Reversed: put things in, then take things out",
2921 " s -- Stash: put one item in", "",
2922 " n -- Next: loot next selected container",
2923 " q -- Quit: finished",
2924 " ? -- Help: display this text.",
2925 "", 0
2926 };
2927 const char *const *txtpp;
2928 winid win;
2929
2930 /* "Do what with <container>? [:oibrsq or ?] (q)" */
2931 if ((win = create_nhwindow(NHW_TEXT)) != WIN_ERR) {
2932 for (txtpp = explaintext; *txtpp; ++txtpp) {
2933 if (!more_containers && !strncmp(*txtpp, " n ", 3))
2934 continue;
2935 putstr(win, 0, *txtpp);
2936 }
2937 display_nhwindow(win, FALSE);
2938 destroy_nhwindow(win);
2939 }
2940}
2941
2942boolean
2943u_handsy(void)

Callers 1

use_containerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected