mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[8284] Use BuyCound instead Stackable for seelction original items amount for new character.
This commit is contained in:
parent
3fc547e6e6
commit
47f96447b8
2 changed files with 4 additions and 4 deletions
|
|
@ -668,7 +668,6 @@ bool Player::Create( uint32 guidlow, const std::string& name, uint8 race, uint8
|
||||||
|
|
||||||
uint32 item_id = oEntry->ItemId[j];
|
uint32 item_id = oEntry->ItemId[j];
|
||||||
|
|
||||||
|
|
||||||
// Hack for not existed item id in dbc 3.0.3
|
// Hack for not existed item id in dbc 3.0.3
|
||||||
if(item_id==40582)
|
if(item_id==40582)
|
||||||
continue;
|
continue;
|
||||||
|
|
@ -680,9 +679,10 @@ bool Player::Create( uint32 guidlow, const std::string& name, uint8 race, uint8
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// max stack by default (mostly 1), 1 for infinity stackable
|
// BuyCount by default
|
||||||
uint32 count = iProto->Stackable > 0 ? uint32(iProto->Stackable) : 1;
|
uint32 count = iProto->BuyCount;
|
||||||
|
|
||||||
|
// special amount for foor/drink
|
||||||
if(iProto->Class==ITEM_CLASS_CONSUMABLE && iProto->SubClass==ITEM_SUBCLASS_FOOD)
|
if(iProto->Class==ITEM_CLASS_CONSUMABLE && iProto->SubClass==ITEM_SUBCLASS_FOOD)
|
||||||
{
|
{
|
||||||
switch(iProto->Spells[0].SpellCategory)
|
switch(iProto->Spells[0].SpellCategory)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8283"
|
#define REVISION_NR "8284"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue