Skip to content

Commit 069773c

Browse files
authored
fix: Auction timings (#151)
1 parent 7cfa6c9 commit 069773c

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

conf/mod_ahbot.conf.dist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@
8989
#
9090
# AuctionHouseBot.ElapsingTimeClass
9191
# The elapsing time for the sold items. There are three classes:
92-
# 0 = long, auctions lasts from one to three days
93-
# 1 = medium, auctions lasts within a day
94-
# 2 = shorts, auctions lasts within an hour
92+
# 0 = long, auctions last from 1 to 3 days
93+
# 1 = medium, auctions last from 1 to 24 hours
94+
# 2 = shorts, auctions last from 10 to 60 minutes
9595
# Default 1
9696
#
9797
###############################################################################

src/AuctionHouseBot.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,13 @@ uint32 AuctionHouseBot::getElapsedTime(uint32 timeClass)
132132
switch (timeClass)
133133
{
134134
case 2:
135-
return urand(1, 5) * 600; // SHORT = In the range of one hour
135+
return urand(1, 6) * 600; // SHORT = From 10 to 60 minutes
136136

137137
case 1:
138-
return urand(1, 23) * 3600; // MEDIUM = In the range of one day
138+
return urand(1, 24) * 3600; // MEDIUM = From 1 to 24 hours
139139

140140
default:
141-
return urand(1, 3) * 86400; // LONG = More than one day but less than three
141+
return urand(24, 72) * 3600; // LONG = From 1 to 3 days
142142
}
143143
}
144144

0 commit comments

Comments
 (0)