-
Notifications
You must be signed in to change notification settings - Fork 0
/
raidboss.js
61 lines (59 loc) · 1.93 KB
/
raidboss.js
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
"use strict";
Options.TimelineEnabled = true;
Options.AlertsEnabled = true;
Options.TextAlertsEnabled = true;
Options.SoundAlertsEnabled = false;
Options.SpokenAlertsEnabled = false;
Options.InfoSoundVolume = 0;
Options.AlertSoundVolume = 0;
Options.AlarmSoundVolume = 0;
Options.LongSoundVolume = 1;
Options.PullSoundVolume = 1;
Options.ShowTimerBarsAtSeconds = 60;
Options.KeepExpiredTimerBarsForSeconds = 0.7;
Options.BarExpiresSoonSeconds = 8;
Options.MaxNumberOfTimerBars = 6;
Options.PlayerNicks = {
"Tannie Kleinvoetjies": "Seth",
"Roe Two": "Shiroe",
};
Options.TransformTts = (tts) =>
tts
.replace(/\bTali\b/gi, "Tealight")
.replace(/\bShiroe\b/gi, "Shihro")
.replace(/\bMarielle\b/gi, "Marry")
.replace(/\bTymo\b/gi, "Timmy")
.replace(/\bKrato\b/gi, "Kraato")
.replace(/\bSeuny\b/gi, "Sunny")
.replace(/\bKali\b/gi, "Kel'Thuzaahd")
.replace(/\b => \b/gi, " then ")
.replace(/\b \+ \b/gi, " and ")
.replace(/\bNW\b/gi, "1")
.replace(/\bNE\b/gi, "2")
.replace(/\bSE\b/gi, "3")
.replace(/\bSW\b/gi, "4");
// .replace(/\bN(?:orth)?\s?.\s?S(?:outh)?\b/gi, "Snorth")
// .replace(/\bS(?:outh)?\s?.\s?N(?:orth)?\b/gi, "Snorth")
// .replace(/\bW(?:est)?\s?.\s?E(?:ast)?\b/gi, "Weast")
// .replace(/\bE(?:ast)?\s?.\s?W(?:est)?\b/gi, "Weast");
// .replace(/\b\/\b/gi, "slash");
Options.Triggers.map((element) => {
if (element["triggers"] !== undefined) {
element["triggers"].map((trigger) => {
if (trigger["options"] !== undefined) {
Object.assign(Options.PerTriggerOptions, {
[trigger["id"]]: trigger["options"],
});
}
});
}
if (element["timelineTriggers"] !== undefined) {
element["timelineTriggers"].map((trigger) => {
if (trigger["options"] !== undefined) {
Object.assign(Options.PerTriggerOptions, {
[trigger["id"]]: trigger["options"],
});
}
});
}
});