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

Function AddMushPatch

Source/objects.cpp:1303–1316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1301}
1302
1303void AddMushPatch()
1304{
1305 int i;
1306 int y, x;
1307
1308 if (nobjects < MAXOBJECTS) {
1309 i = objectavail[0];
1310 GetRndObjLoc(5, &x, &y);
1311 dObject[x + 1][y + 1] = -1 - i;
1312 dObject[x + 2][y + 1] = -1 - i;
1313 dObject[x + 1][y + 2] = -1 - i;
1314 AddObject(OBJ_MUSHPATCH, x + 2, y + 2);
1315 }
1316}
1317
1318void AddSlainHero()
1319{

Callers 1

InitObjectsFunction · 0.85

Calls 2

GetRndObjLocFunction · 0.85
AddObjectFunction · 0.85

Tested by

no test coverage detected