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

Function GetRandomAvailableItemPosition

Source/items.cpp:437–445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435}
436
437Point GetRandomAvailableItemPosition()
438{
439 Point position = {};
440 do {
441 position = Point { GenerateRnd(80), GenerateRnd(80) } + Displacement { 16, 16 };
442 } while (!ItemPlace(position));
443
444 return position;
445}
446
447void AddInitItems()
448{

Callers 2

AddInitItemsFunction · 0.85
SpawnNoteFunction · 0.85

Calls 2

GenerateRndFunction · 0.85
ItemPlaceFunction · 0.85

Tested by

no test coverage detected