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

Function Theme_Shrine

Source/themes.cpp:541–556  ·  view source on GitHub ↗

Theme_Shrine initializes the shrine theme. Parameters: - t: theme number (index into themes array).

Source from the content-addressed store, hash-verified

539// Parameters:
540// - t: theme number (index into themes array).
541void Theme_Shrine(int t)
542{
543 char monstrnd[4] = { 6, 6, 3, 9 };
544
545 TFit_Shrine(t);
546 if (themeVar1 == 1) {
547 AddObject(OBJ_CANDLE2, themex - 1, themey);
548 AddObject(OBJ_SHRINER, themex, themey);
549 AddObject(OBJ_CANDLE2, themex + 1, themey);
550 } else {
551 AddObject(OBJ_CANDLE2, themex, themey - 1);
552 AddObject(OBJ_SHRINEL, themex, themey);
553 AddObject(OBJ_CANDLE2, themex, themey + 1);
554 }
555 PlaceThemeMonsts(t, monstrnd[leveltype - 1]);
556}
557
558// Theme_MonstPit initializes the monster pit theme.
559//

Callers 1

CreateThemeRoomsFunction · 0.85

Calls 3

TFit_ShrineFunction · 0.85
AddObjectFunction · 0.85
PlaceThemeMonstsFunction · 0.85

Tested by

no test coverage detected