diff options
| author | Chaz Brown <iamparadox@netscape.net> | 2009-06-05 21:12:12 -0400 |
|---|---|---|
| committer | Chaz Brown <iamparadox@netscape.net> | 2009-06-05 21:12:12 -0400 |
| commit | 715f410fb7fdebe1c22401cb749ad57eae637040 (patch) | |
| tree | c43f21e862007a5d294cf3da08866176f9ef3541 /src/game/AuctionHouseMgr.cpp | |
| parent | a319125b4f49109cf008b5f055cf56cd30a7ed7f (diff) | |
Fix AHBot to calculate the deposit for auctions so it can be used to check the code for figuring deposit amount on a wide range of items. Fix ahbotoptions command so it works from the server console again. change commented out lines in GetAuctionDeposit so they display in debug loglevel. Min/Max Time settings replaced with a function that selects 12 24 and 48 randomly as the auction times. Backport from TC2
--HG--
branch : trunk
Diffstat (limited to 'src/game/AuctionHouseMgr.cpp')
| -rw-r--r-- | src/game/AuctionHouseMgr.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/game/AuctionHouseMgr.cpp b/src/game/AuctionHouseMgr.cpp index 2619d589ec7..adb4a4a2787 100644 --- a/src/game/AuctionHouseMgr.cpp +++ b/src/game/AuctionHouseMgr.cpp @@ -92,11 +92,13 @@ uint32 AuctionHouseMgr::GetAuctionDeposit(AuctionHouseEntry const* entry, uint32 faction_pct = 0.0f; deposit = 0.0f; } - //sLog.outString("SellPrice:\t\t%u", MSV); - //sLog.outString("Deposit Percent:\t%f", faction_pct); - //sLog.outString("Min Auction Time:\t%u", (time / MIN_AUCTION_TIME )); - //sLog.outString("Count:\t\t\t%u", pItem->GetCount()); - //sLog.outString("Deposit:\t\t%f", deposit); + sLog.outDebug("SellPrice:\t\t%u", MSV); + sLog.outDebug("Deposit Percent:\t%f", faction_pct); + sLog.outDebug("Auction Time1:\t\t%u", time); + sLog.outDebug("Auction Time2:\t\t%u", MIN_AUCTION_TIME); + sLog.outDebug("Auction Time3:\t\t%u", (time / MIN_AUCTION_TIME )); + sLog.outDebug("Count:\t\t\t%u", pItem->GetCount()); + sLog.outDebug("Deposit:\t\t%f", deposit); if (deposit > 0) return (uint32)deposit; else |
