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

Function init_castle_tune

src/dungeon.c:1110–1118  ·  view source on GitHub ↗

initialize the Castle drawbridge tune */

Source from the content-addressed store, hash-verified

1108
1109/* initialize the Castle drawbridge tune */
1110staticfn void
1111init_castle_tune(void)
1112{
1113 int i;
1114
1115 for (i = 0; i < 5; i++)
1116 svt.tune[i] = 'A' + rn2(7);
1117 svt.tune[5] = 0;
1118}
1119
1120/* fix up the special level names and locations for quick access */
1121staticfn void

Callers 1

init_dungeonsFunction · 0.85

Calls 1

rn2Function · 0.85

Tested by

no test coverage detected