aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-02 10:10:53 +0800
committermegamage <none@none>2009-08-02 10:10:53 +0800
commitc9010dffc763a7bad816d854412412470050cfba (patch)
tree4da3fa21605ed276da0290695396c502bcc9e419 /src/game/Player.cpp
parent1c10f20e38774c6cb013c18ef1deed2096ffcaf3 (diff)
[8284] Use BuyCound instead Stackable for seelction original items amount for new character. Author: VladimirMangos
--HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index efebca11abe..613181ead72 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -725,7 +725,6 @@ bool Player::Create( uint32 guidlow, const std::string& name, uint8 race, uint8
uint32 item_id = oEntry->ItemId[j];
-
// Hack for not existed item id in dbc 3.0.3
if(item_id==40582)
continue;
@@ -737,9 +736,10 @@ bool Player::Create( uint32 guidlow, const std::string& name, uint8 race, uint8
continue;
}
- // max stack by default (mostly 1), 1 for infinity stackable
- uint32 count = iProto->Stackable > 0 ? uint32(iProto->Stackable) : 1;
+ // BuyCount by default
+ uint32 count = iProto->BuyCount;
+ // special amount for foor/drink
if(iProto->Class==ITEM_CLASS_CONSUMABLE && iProto->SubClass==ITEM_SUBCLASS_FOOD)
{
switch(iProto->Spells[0].SpellCategory)