|
|
|
|
@ -1555,7 +1555,7 @@ void SetupAllItems(const Player &player, Item &item, _item_indexes idx, uint32_t
|
|
|
|
|
SetupItem(item); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void SetupBaseItem(Point position, _item_indexes idx, bool onlygood, bool sendmsg, bool delta) |
|
|
|
|
void SetupBaseItem(Point position, _item_indexes idx, bool onlygood, bool sendmsg, bool delta, bool spawn = false) |
|
|
|
|
{ |
|
|
|
|
if (ActiveItemCount >= MAXITEMS) |
|
|
|
|
return; |
|
|
|
|
@ -1571,6 +1571,8 @@ void SetupBaseItem(Point position, _item_indexes idx, bool onlygood, bool sendms
|
|
|
|
|
NetSendCmdPItem(false, CMD_DROPITEM, item.position, item); |
|
|
|
|
if (delta) |
|
|
|
|
DeltaAddItem(ii); |
|
|
|
|
if (spawn) |
|
|
|
|
NetSendCmdPItem(false, CMD_SPAWNITEM, item.position, item); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void SetupAllUseful(Item &item, int iseed, int lvl) |
|
|
|
|
@ -3307,7 +3309,7 @@ void CreateRndUseful(Point position, bool sendmsg)
|
|
|
|
|
NetSendCmdPItem(false, CMD_DROPITEM, item.position, item); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void CreateTypeItem(Point position, bool onlygood, ItemType itemType, int imisc, bool sendmsg, bool delta) |
|
|
|
|
void CreateTypeItem(Point position, bool onlygood, ItemType itemType, int imisc, bool sendmsg, bool delta, bool spawn) |
|
|
|
|
{ |
|
|
|
|
_item_indexes idx; |
|
|
|
|
|
|
|
|
|
@ -3317,7 +3319,7 @@ void CreateTypeItem(Point position, bool onlygood, ItemType itemType, int imisc,
|
|
|
|
|
else |
|
|
|
|
idx = IDI_GOLD; |
|
|
|
|
|
|
|
|
|
SetupBaseItem(position, idx, onlygood, sendmsg, delta); |
|
|
|
|
SetupBaseItem(position, idx, onlygood, sendmsg, delta, spawn); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void RecreateItem(const Player &player, Item &item, _item_indexes idx, uint16_t icreateinfo, uint32_t iseed, int ivalue, bool isHellfire) |
|
|
|
|
|