MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / AddCryptObjects

Function AddCryptObjects

Source/objects.cpp:3889–3900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3887}
3888
3889void AddCryptObjects(int x1, int y1, int x2, int y2)
3890{
3891 for (int j = y1; j < y2; j++) {
3892 for (int i = x1; i < x2; i++) {
3893 int pn = dPiece[i][j];
3894 if (pn == 76)
3895 AddObject(OBJ_L5LDOOR, { i, j });
3896 if (pn == 79)
3897 AddObject(OBJ_L5RDOOR, { i, j });
3898 }
3899 }
3900}
3901
3902void AddSlainHero()
3903{

Callers 3

InitObjectsFunction · 0.85
ObjChangeMapFunction · 0.85
LoadL1DungeonFunction · 0.85

Calls 1

AddObjectFunction · 0.85

Tested by

no test coverage detected