File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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###############################################################################
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments