mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[7015] Implement support -1 in item_template.stackable and item_template.maxcount fields.
Also disable incorrect used vanity pets/currences/quest items special slotes. All items in its will be send by mail to characters at re-login. Fixed code for item stacks operations with size > 255.
This commit is contained in:
parent
7864c9aee1
commit
ee505ec9da
16 changed files with 109 additions and 61 deletions
|
|
@ -2564,8 +2564,8 @@ void Spell::DoCreateItem(uint32 i, uint32 itemtype)
|
|||
|
||||
if (num_to_add < 1)
|
||||
num_to_add = 1;
|
||||
if (num_to_add > pProto->Stackable)
|
||||
num_to_add = pProto->Stackable;
|
||||
if (num_to_add > pProto->GetMaxStackSize())
|
||||
num_to_add = pProto->GetMaxStackSize();
|
||||
|
||||
// init items_count to 1, since 1 item will be created regardless of specialization
|
||||
int items_count=1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue