-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstrategy.ts
More file actions
60 lines (55 loc) · 1.77 KB
/
strategy.ts
File metadata and controls
60 lines (55 loc) · 1.77 KB
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
//
// Strategies
//
// The strategy involves any details about how the game is played, should Elder
// Pledge be used, what spells and toggles should be active etc, auto clicking,
// auto buying and so on are all part of a strategy.
//
class Strategy {
autoAscend: boolean
autoBuy: boolean
autoClick: boolean
autoClickGoldenCookies : boolean
autoClickReindeer : boolean
autoPledge: boolean
unlockSeasonUpgrades: boolean
clickRateOverride: number
preferredSeason: string
dragonAura1: string
dragonAura2: string
constructor(public name: string, {
autoAscend = true,
autoBuy = true,
autoClick = true,
autoClickGoldenCookies = true,
autoClickReindeer = true,
autoPledge = true,
unlockSeasonUpgrades = true,
clickRateOverride = -1,
preferredSeason = "fools",
dragonAura1 = null,
dragonAura2 = null,
} = {}) {
this.autoAscend = autoAscend;
this.autoBuy = autoBuy;
this.autoClick = autoClick;
this.autoClickGoldenCookies = autoClickGoldenCookies;
this.autoClickReindeer = autoClickReindeer;
this.autoPledge = autoPledge;
this.unlockSeasonUpgrades = unlockSeasonUpgrades;
this.clickRateOverride = clickRateOverride;
this.preferredSeason = preferredSeason;
this.dragonAura1 = dragonAura1;
this.dragonAura2 = dragonAura2;
}
static Default: Strategy = new Strategy("default");
static Passive: Strategy = new Strategy("passive", {
autoAscend: false,
autoBuy: false,
autoClick: false,
autoClickGoldenCookies: false,
autoClickReindeer: false,
autoPledge: false,
unlockSeasonUpgrades: false,
preferredSeason: ""});
}