mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +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
|
|
@ -888,8 +888,8 @@ Item* Item::CreateItem( uint32 item, uint32 count, Player const* player )
|
|||
ItemPrototype const *pProto = objmgr.GetItemPrototype( item );
|
||||
if( pProto )
|
||||
{
|
||||
if ( count > pProto->Stackable )
|
||||
count = pProto->Stackable;
|
||||
if ( count > pProto->GetMaxStackSize())
|
||||
count = pProto->GetMaxStackSize();
|
||||
|
||||
assert(count !=0 && "pProto->Stackable==0 but checked at loading already");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue