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

Function AddCryptBook

Source/objects.cpp:814–827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

812}
813
814void AddCryptBook(_object_id ot, int v2, Point position)
815{
816 if (ActiveObjectCount >= MAXOBJECTS)
817 return;
818
819 int oi = AvailableObjects[0];
820 AvailableObjects[0] = AvailableObjects[MAXOBJECTS - 1 - ActiveObjectCount];
821 ActiveObjects[ActiveObjectCount] = oi;
822 dObject[position.x][position.y] = oi + 1;
823 Object &object = Objects[oi];
824 SetupObject(object, position, ot);
825 AddCryptObject(object, v2);
826 ActiveObjectCount++;
827}
828
829void AddCryptStoryBook(int s)
830{

Callers 2

AddCryptStoryBookFunction · 0.85
AddNakrulBookFunction · 0.85

Calls 2

SetupObjectFunction · 0.85
AddCryptObjectFunction · 0.85

Tested by

no test coverage detected