forked from OverlayPlugin/cactbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jobs_options.ts
111 lines (96 loc) · 3 KB
/
jobs_options.ts
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import UserConfig from '../../resources/user_config';
import { BaseOptions } from '../../types/data';
import { Job } from '../../types/job';
import { BuffInfo } from './buff_tracker';
export interface JobsNonConfigOptions {
JustBuffTracker: boolean;
LowerOpacityOutOfCombat: boolean;
OpacityOutOfCombat: number;
PlayCountdownSound: boolean;
CountdownSoundVolume: number;
HideWellFedAboveSeconds: number;
ShowMPTickerOutOfCombat: boolean;
MidHealthThresholdPercent: number;
LowHealthThresholdPercent: number;
BigBuffShowCooldownSeconds: number;
BigBuffIconWidth: number;
BigBuffIconHeight: number;
BigBuffBarHeight: number;
BigBuffTextHeight: number;
BigBuffBorderSize: number;
GpAlarmPoint: number;
GpAlarmSoundVolume: number;
NotifyExpiredProcsInCombat: number;
NotifyExpiredProcsInCombatSound: 'disabled' | 'expired' | 'threshold';
CompactView: boolean;
}
export interface JobsConfigOptions {
ShowHPNumber: Job[];
ShowMPNumber: Job[];
ShowMPTicker: Job[];
MaxLevel: number;
PerBuffOptions: {
[s: string]: Partial<BuffInfo>;
};
FarThresholdOffence: number;
PldMediumMPThreshold: number;
PldLowMPThreshold: number;
DrkMediumMPThreshold: number;
DrkLowMPThreshold: number;
/** One more fire IV and then despair. */
BlmMediumMPThreshold: number;
/** Should cast despair. */
BlmLowMPThreshold: number;
}
const defaultJobsNonConfigOptions: JobsNonConfigOptions = {
JustBuffTracker: false,
LowerOpacityOutOfCombat: true,
OpacityOutOfCombat: 0.5,
PlayCountdownSound: true,
CountdownSoundVolume: 0.3,
HideWellFedAboveSeconds: 15 * 60,
ShowMPTickerOutOfCombat: false,
MidHealthThresholdPercent: 0.8,
LowHealthThresholdPercent: 0.2,
BigBuffShowCooldownSeconds: 20,
BigBuffIconWidth: 44,
BigBuffIconHeight: 32,
BigBuffBarHeight: 5,
BigBuffTextHeight: 0,
BigBuffBorderSize: 1,
GpAlarmPoint: 0,
GpAlarmSoundVolume: 0.8,
NotifyExpiredProcsInCombat: 5,
NotifyExpiredProcsInCombatSound: 'threshold',
CompactView: false,
};
// See user/jobs-example.js for documentation.
const defaultJobsConfigOptions: JobsConfigOptions = {
ShowHPNumber: ['PLD', 'WAR', 'DRK', 'GNB', 'WHM', 'SCH', 'AST', 'SGE', 'BLU'],
ShowMPNumber: ['PLD', 'DRK', 'WHM', 'SCH', 'AST', 'SGE', 'BLM', 'BLU'],
ShowMPTicker: ['BLM'],
MaxLevel: 80,
PerBuffOptions: {
// This is noisy since it's more or less permanently on you.
// Players are unlikely to make different decisions based on this.
standardFinish: {
hide: true,
},
},
FarThresholdOffence: 24,
PldMediumMPThreshold: 6199,
PldLowMPThreshold: 4399,
DrkMediumMPThreshold: 5999,
DrkLowMPThreshold: 2999,
// One more fire IV and then despair.
BlmMediumMPThreshold: 3999,
// Should cast despair.
BlmLowMPThreshold: 2399,
};
export interface JobsOptions extends BaseOptions, JobsConfigOptions, JobsNonConfigOptions {}
const Options: JobsOptions = {
...UserConfig.getDefaultBaseOptions(),
...defaultJobsNonConfigOptions,
...defaultJobsConfigOptions,
};
export default Options;