aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAyrton Stout <ayrtonstout@u.boisestate.edu>2016-12-31 15:47:41 -0700
committerDoctorKraft <DoctorKraft@users.noreply.github.com>2018-03-18 00:19:48 +0100
commit8cff0d4a9062a2eedd0391e21e2cadb363d47904 (patch)
treef298efe47e42ea23f52cfd9fc6cfcdcf9a92d5de /src
parent608260b853167849626004a10fd9c49714824813 (diff)
Fixed array size bug with the auction house bid price. Lowered the default max bid price (#18697)
Closes #18698 (cherry picked from commit 4df1b28054e6712954dceb8c71b18b4b2ef2e972)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/AuctionHouseBot/AuctionHouseBot.cpp2
-rw-r--r--src/server/game/AuctionHouseBot/AuctionHouseBot.h4
-rw-r--r--src/server/worldserver/worldserver.conf.dist4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/server/game/AuctionHouseBot/AuctionHouseBot.cpp b/src/server/game/AuctionHouseBot/AuctionHouseBot.cpp
index f548ec80b85..a066fe8e361 100644
--- a/src/server/game/AuctionHouseBot/AuctionHouseBot.cpp
+++ b/src/server/game/AuctionHouseBot/AuctionHouseBot.cpp
@@ -287,7 +287,7 @@ void AuctionBotConfig::GetConfigFromFile()
SetConfig(CONFIG_AHBOT_CLASS_RANDOMSTACKRATIO_GLYPH, "AuctionHouseBot.Class.RandomStackRatio.Glyph", 0);
SetConfig(CONFIG_AHBOT_BIDPRICE_MIN, "AuctionHouseBot.BidPrice.Min", 0.6f);
- SetConfig(CONFIG_AHBOT_BIDPRICE_MAX, "AuctionHouseBot.BidPrice.Max", 1.4f);
+ SetConfig(CONFIG_AHBOT_BIDPRICE_MAX, "AuctionHouseBot.BidPrice.Max", 0.9f);
}
char const* AuctionBotConfig::GetHouseTypeName(AuctionHouseType houseType)
diff --git a/src/server/game/AuctionHouseBot/AuctionHouseBot.h b/src/server/game/AuctionHouseBot/AuctionHouseBot.h
index 768f8f97876..26c233174a4 100644
--- a/src/server/game/AuctionHouseBot/AuctionHouseBot.h
+++ b/src/server/game/AuctionHouseBot/AuctionHouseBot.h
@@ -196,9 +196,9 @@ enum AuctionBotConfigBoolValues
enum AuctionBotConfigFloatValues
{
CONFIG_AHBOT_BUYER_CHANCE_FACTOR,
- CONFIG_AHBOT_FLOAT_COUNT,
CONFIG_AHBOT_BIDPRICE_MIN,
- CONFIG_AHBOT_BIDPRICE_MAX
+ CONFIG_AHBOT_BIDPRICE_MAX,
+ CONFIG_AHBOT_FLOAT_COUNT
};
// All basic config data used by other AHBot classes for self-configure.
diff --git a/src/server/worldserver/worldserver.conf.dist b/src/server/worldserver/worldserver.conf.dist
index 92b1ec5ffac..1a514e87d05 100644
--- a/src/server/worldserver/worldserver.conf.dist
+++ b/src/server/worldserver/worldserver.conf.dist
@@ -3358,10 +3358,10 @@ AuctionHouseBot.BuyPrice.Seller = 1
# AuctionHouseBot.BidPrice.*
# Description: These values determine the range that the Bid Price will fall into, as a percentage of the Buy Price
# Default: 0.6 - (Min)
-# 1.4 - (Max)
+# 0.9 - (Max)
AuctionHouseBot.BidPrice.Min = 0.6
-AuctionHouseBot.BidPrice.Max = 1.4
+AuctionHouseBot.BidPrice.Max = 0.9
#
# AuctionHouseBot.Alliance.Price.Ratio