diff options
| author | Subv <s.v.h21@hotmail.com> | 2012-08-03 20:47:09 -0500 |
|---|---|---|
| committer | Subv <s.v.h21@hotmail.com> | 2012-08-03 20:48:47 -0500 |
| commit | 17e852d9b3c7a28a66934e7ec9d7ab00a770d06d (patch) | |
| tree | 67bfb2ce377f0243b9cd270228df487b84841b74 /src/server/game/Entities/Item | |
| parent | 48db4b2b7da984258fede9cfa13ea8c0ea2dc788 (diff) | |
Items/Reforge: Partially implemented reforge, still ToDo: Apply real stat modifiers to the player
Diffstat (limited to 'src/server/game/Entities/Item')
| -rwxr-xr-x | src/server/game/Entities/Item/Item.cpp | 6 | ||||
| -rwxr-xr-x | src/server/game/Entities/Item/Item.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/server/game/Entities/Item/Item.cpp b/src/server/game/Entities/Item/Item.cpp index 4dff83ec4a5..f0cd629b5e3 100755 --- a/src/server/game/Entities/Item/Item.cpp +++ b/src/server/game/Entities/Item/Item.cpp @@ -1424,7 +1424,7 @@ uint32 Item::GetSellPrice(bool& normalSellPrice) const } } -uint32 Item::GetTransmogrifyCost() const +uint32 Item::GetSpecialPrice(uint32 minimumPrice) const { ItemTemplate const* proto = GetTemplate(); uint32 cost = 0; @@ -1453,8 +1453,8 @@ uint32 Item::GetTransmogrifyCost() const cost = proto->SellPrice; } - if (cost < 10000) - cost = 10000; + if (cost < minimumPrice) + cost = minimumPrice; return cost; } diff --git a/src/server/game/Entities/Item/Item.h b/src/server/game/Entities/Item/Item.h index 2d5ebaa555f..e8bf234c591 100755 --- a/src/server/game/Entities/Item/Item.h +++ b/src/server/game/Entities/Item/Item.h @@ -163,7 +163,7 @@ enum EnchantmentSlot BONUS_ENCHANTMENT_SLOT = 5, PRISMATIC_ENCHANTMENT_SLOT = 6, // added at apply special permanent enchantment //TODO: 7, - //TODO: 8, + REFORGE_ENCHANTMENT_SLOT = 8, TRANSMOGRIFY_ENCHANTMENT_SLOT = 9, MAX_INSPECTED_ENCHANTMENT_SLOT = 10, @@ -350,7 +350,7 @@ class Item : public Object bool CanBeTransmogrified() const; bool CanTransmogrify() const; static bool CanTransmogrifyItemWithItem(Item const* transmogrified, Item const* transmogrifier); - uint32 GetTransmogrifyCost() const; + uint32 GetSpecialPrice(uint32 minimumPrice = 10000) const; uint32 GetVisibleEntry() const { |
