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

Function GetSuperItemLoc

Source/items.cpp:1076–1091  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1074}
1075
1076void GetSuperItemLoc(int x, int y, int *xx, int *yy)
1077{
1078 int i, j, k;
1079
1080 for (k = 1; k < 50; k++) {
1081 for (j = -k; j <= k; j++) {
1082 *yy = y + j;
1083 for (i = -k; i <= k; i++) {
1084 *xx = i + x;
1085 if (ItemSpaceOk(*xx, *yy)) {
1086 return;
1087 }
1088 }
1089 }
1090 }
1091}
1092
1093void CalcItemValue(int i)
1094{

Callers 3

OperateMushPatchFunction · 0.85
OperateInnSignChestFunction · 0.85
OperateLazStandFunction · 0.85

Calls 1

ItemSpaceOkFunction · 0.85

Tested by

no test coverage detected