| 1486 | } |
| 1487 | |
| 1488 | void GetUniqueItem(const Player &player, Item &item, _unique_items uid) |
| 1489 | { |
| 1490 | UniqueItemFlags[uid] = true; |
| 1491 | |
| 1492 | for (auto power : UniqueItems[uid].powers) { |
| 1493 | if (power.type == IPL_INVALID) |
| 1494 | break; |
| 1495 | SaveItemPower(player, item, power); |
| 1496 | } |
| 1497 | |
| 1498 | CopyUtf8(item._iIName, UniqueItems[uid].UIName, sizeof(item._iIName)); |
| 1499 | item._iIvalue = UniqueItems[uid].UIValue; |
| 1500 | |
| 1501 | if (item._iMiscId == IMISC_UNIQUE) |
| 1502 | item._iSeed = uid; |
| 1503 | |
| 1504 | item._iUid = uid; |
| 1505 | item._iMagical = ITEM_QUALITY_UNIQUE; |
| 1506 | item._iCreateInfo |= CF_UNIQUE; |
| 1507 | } |
| 1508 | |
| 1509 | void ItemRndDur(Item &item) |
| 1510 | { |
no test coverage detected