|
|
|
|
@ -2208,7 +2208,7 @@ void RecreateTownItem(const Player &player, Item &item, _item_indexes idx, uint1
|
|
|
|
|
RecreateHealerItem(player, item, idx, icreateinfo & CF_LEVEL, iseed); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void CreateMagicItem(Point position, int lvl, ItemType itemType, int imid, int icurs, bool sendmsg, bool delta) |
|
|
|
|
void CreateMagicItem(Point position, int lvl, ItemType itemType, int imid, int icurs, bool sendmsg, bool delta, bool spawn = false) |
|
|
|
|
{ |
|
|
|
|
if (ActiveItemCount >= MAXITEMS) |
|
|
|
|
return; |
|
|
|
|
@ -2231,6 +2231,8 @@ void CreateMagicItem(Point position, int lvl, ItemType itemType, int imid, int i
|
|
|
|
|
NetSendCmdPItem(false, CMD_DROPITEM, item.position, item); |
|
|
|
|
if (delta) |
|
|
|
|
DeltaAddItem(ii); |
|
|
|
|
if (spawn) |
|
|
|
|
NetSendCmdPItem(false, CMD_SPAWNITEM, item.position, item); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void NextItemRecord(int i) |
|
|
|
|
@ -4515,9 +4517,9 @@ void CreateMagicArmor(Point position, ItemType itemType, int icurs, bool sendmsg
|
|
|
|
|
CreateMagicItem(position, lvl, itemType, IMISC_NONE, icurs, sendmsg, delta); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void CreateAmulet(Point position, int lvl, bool sendmsg, bool delta) |
|
|
|
|
void CreateAmulet(Point position, int lvl, bool sendmsg, bool delta, bool spawn /*= false*/) |
|
|
|
|
{ |
|
|
|
|
CreateMagicItem(position, lvl, ItemType::Amulet, IMISC_AMULET, ICURS_AMULET, sendmsg, delta); |
|
|
|
|
CreateMagicItem(position, lvl, ItemType::Amulet, IMISC_AMULET, ICURS_AMULET, sendmsg, delta, spawn); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void CreateMagicWeapon(Point position, ItemType itemType, int icurs, bool sendmsg, bool delta) |
|
|
|
|
|