| 2131 | } |
| 2132 | |
| 2133 | void CreateItem(int uid, int x, int y) |
| 2134 | { |
| 2135 | int ii, idx; |
| 2136 | |
| 2137 | if (numitems < MAXITEMS) { |
| 2138 | ii = itemavail[0]; |
| 2139 | GetSuperItemSpace(x, y, ii); |
| 2140 | idx = 0; |
| 2141 | itemavail[0] = itemavail[MAXITEMS - numitems - 1]; |
| 2142 | itemactive[numitems] = ii; |
| 2143 | |
| 2144 | while (AllItemsList[idx].iItemId != UniqueItemList[uid].UIItemId) { |
| 2145 | idx++; |
| 2146 | } |
| 2147 | |
| 2148 | GetItemAttrs(ii, idx, currlevel); |
| 2149 | GetUniqueItem(ii, uid); |
| 2150 | SetupItem(ii); |
| 2151 | item[ii]._iMagical = ITEM_QUALITY_UNIQUE; |
| 2152 | numitems++; |
| 2153 | } |
| 2154 | } |
| 2155 | |
| 2156 | void CreateRndItem(int x, int y, BOOL onlygood, BOOL sendmsg, BOOL delta) |
| 2157 | { |
no test coverage detected