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

Function AddTortures

Source/objects.cpp:254–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254void AddTortures()
255{
256 int ox, oy;
257
258 for (oy = 0; oy < MAXDUNY; oy++) {
259 for (ox = 0; ox < MAXDUNX; ox++) {
260 if (dPiece[ox][oy] == 367) {
261 AddObject(OBJ_TORTURE1, ox, oy + 1);
262 AddObject(OBJ_TORTURE3, ox + 2, oy - 1);
263 AddObject(OBJ_TORTURE2, ox, oy + 3);
264 AddObject(OBJ_TORTURE4, ox + 4, oy - 1);
265 AddObject(OBJ_TORTURE5, ox, oy + 5);
266 AddObject(OBJ_TNUDEM1, ox + 1, oy + 3);
267 AddObject(OBJ_TNUDEM2, ox + 4, oy + 5);
268 AddObject(OBJ_TNUDEM3, ox + 2, oy);
269 AddObject(OBJ_TNUDEM4, ox + 3, oy + 2);
270 AddObject(OBJ_TNUDEW1, ox + 2, oy + 4);
271 AddObject(OBJ_TNUDEW2, ox + 2, oy + 1);
272 AddObject(OBJ_TNUDEW3, ox + 4, oy + 2);
273 }
274 }
275 }
276}
277void AddCandles()
278{
279 int tx, ty;

Callers 1

InitObjectsFunction · 0.85

Calls 1

AddObjectFunction · 0.85

Tested by

no test coverage detected