forked from james-huston/mod-auctionator
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathAuctionatorConfig.h
70 lines (56 loc) · 1.46 KB
/
AuctionatorConfig.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef AUCTIONATOR_CONFIG_H
#define AUCTIONATOR_CONFIG_H
#include "Common.h"
struct AuctionatorHouseConfig
{
public:
uint32 enabled = 0;
uint32 maxAuctions = 100;
};
struct AuctionatorBidderConfig
{
public:
uint32 enabled;
uint32 cycleMinutes;
uint32 maxPerCycle;
};
struct AuctionatorPriceMultiplierConfig
{
public:
float poor = 1.0f;
float normal = 1.0f;
float uncommon = 1.5f;
float rare = 2.0f;
float epic = 6.0f;
float legendary = 10.0f;
};
struct AuctionatorSellerConfig
{
public:
uint32 queryLimit = 1000;
uint32 defaultPrice = 10000000;
uint32 auctionsPerRun = 100;
uint32 randomizeStackSize = 1;
float bidStartModifier = .3;
};
class AuctionatorConfig
{
private:
public:
AuctionatorConfig() {};
bool isEnabled = false;
uint32 characterId = 0;
uint32 characterGuid = 0;
uint32 auctionHouseId = 7;
AuctionatorHouseConfig hordeSeller;
AuctionatorHouseConfig allianceSeller;
AuctionatorHouseConfig neutralSeller;
AuctionatorBidderConfig allianceBidder;
AuctionatorBidderConfig hordeBidder;
AuctionatorBidderConfig neutralBidder;
AuctionatorPriceMultiplierConfig sellerMultipliers;
AuctionatorPriceMultiplierConfig bidderMultipliers;
AuctionatorSellerConfig sellerConfig;
uint32 bidOnOwn = 0;
};
#endif