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

Function Theme_GoatShrine

Source/themes.cpp:852–865  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

850// Parameters:
851// - t: theme number (index into themes array).
852void Theme_GoatShrine(int t)
853{
854 int xx, yy;
855
856 TFit_GoatShrine(t);
857 AddObject(OBJ_GOATSHRINE, themex, themey);
858 for (yy = themey - 1; yy <= themey + 1; yy++) {
859 for (xx = themex - 1; xx <= themex + 1; xx++) {
860 if (dTransVal[xx][yy] == themes[t].ttval && !nSolidTable[dPiece[xx][yy]] && (xx != themex || yy != themey)) {
861 AddMonster(xx, yy, DIR_SW, themeVar1, TRUE);
862 }
863 }
864 }
865}
866
867// Theme_Cauldron initializes the cauldron theme.
868//

Callers 1

CreateThemeRoomsFunction · 0.85

Calls 3

TFit_GoatShrineFunction · 0.85
AddObjectFunction · 0.85
AddMonsterFunction · 0.85

Tested by

no test coverage detected