MCPcopy Create free account
hub / github.com/diasurgical/devilution / HoldThemeRooms

Function HoldThemeRooms

Source/themes.cpp:457–478  ·  view source on GitHub ↗

HoldThemeRooms marks theme rooms as populated.

Source from the content-addressed store, hash-verified

455
456// HoldThemeRooms marks theme rooms as populated.
457void HoldThemeRooms()
458{
459 int i, x, y;
460 char v;
461
462 if (currlevel != 16) {
463 if (leveltype == DTYPE_CATHEDRAL) {
464 for (i = 0; i < numthemes; i++) {
465 v = themes[i].ttval;
466 for (y = 0; y < MAXDUNY; y++) {
467 for (x = 0; x < MAXDUNX; x++) {
468 if (dTransVal[x][y] == v) {
469 dFlags[x][y] |= BFLAG_POPULATED;
470 }
471 }
472 }
473 }
474 } else {
475 DRLG_HoldThemeRooms();
476 }
477 }
478}
479
480// PlaceThemeMonsts places theme monsters with the specified frequency.
481//

Callers 1

LoadGameLevelFunction · 0.85

Calls 1

DRLG_HoldThemeRoomsFunction · 0.85

Tested by

no test coverage detected