Skip to content

Commit

Permalink
triggers build: util: make_timeline - sort ignored combatants (quisqu…
Browse files Browse the repository at this point in the history
…ous#5616)

Sorts the ignored combatants list in `make_timeline.ts` for easier
future maintenance. No entries added or removed. a405451
  • Loading branch information
github-actions committed Jun 26, 2023
1 parent 047d465 commit f0e729b
Show file tree
Hide file tree
Showing 35 changed files with 619 additions and 175 deletions.
14 changes: 9 additions & 5 deletions 00-misc/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ Options.Triggers.push({
id: 'Test Lang',
type: 'GameLog',
// In game: /echo cactbot lang
netRegex: NetRegexes.echo({ line: 'cactbot lang.*?', capture: false }),
netRegex: { line: 'cactbot lang.*?', code: Util.gameLogCodes.echo, capture: false },
infoText: (data, _matches, output) => output.text({ lang: data.parserLang }),
outputStrings: {
text: {
Expand All @@ -234,7 +234,7 @@ Options.Triggers.push({
{
id: 'Test Response',
type: 'GameLog',
netRegex: NetRegexes.echo({ line: 'cactbot test response.*?', capture: false }),
netRegex: { line: 'cactbot test response.*?', code: Util.gameLogCodes.echo, capture: false },
response: (_data, _matches, output) => {
// cactbot-builtin-response
output.responseOutputStrings = {
Expand All @@ -254,7 +254,7 @@ Options.Triggers.push({
{
id: 'Test Watch',
type: 'GameLog',
netRegex: NetRegexes.echo({ line: 'cactbot test watch.*?', capture: false }),
netRegex: { line: 'cactbot test watch.*?', code: Util.gameLogCodes.echo, capture: false },
promise: (data) =>
Util.watchCombatant({
names: [
Expand Down Expand Up @@ -296,7 +296,7 @@ Options.Triggers.push({
{
id: 'Test Config',
type: 'GameLog',
netRegex: NetRegexes.echo({ line: 'cactbot test config.*?', capture: false }),
netRegex: { line: 'cactbot test config.*?', code: Util.gameLogCodes.echo, capture: false },
alertText: (data, _matches, output) => {
return output.text({ value: data.triggerSetConfig.testTriggerOutput.toString() });
},
Expand All @@ -312,7 +312,11 @@ Options.Triggers.push({
{
id: 'Test Combatant Cast Enable',
type: 'GameLog',
netRegex: NetRegexes.echo({ line: 'cactbot test combatant cast.*?', capture: false }),
netRegex: {
line: 'cactbot test combatant cast.*?',
code: Util.gameLogCodes.echo,
capture: false,
},
run: (data) => {
data.watchingForCast = true;
},
Expand Down
5 changes: 3 additions & 2 deletions 02-arr/dungeon/haukke_manor.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ Options.Triggers.push({
// Void Lamp Spawn
id: 'Haukke Normal Void Lamps',
type: 'GameLog',
netRegex: NetRegexes.message({
netRegex: {
line: 'The void lamps have begun emitting an eerie glow',
code: Util.gameLogCodes.message,
capture: false,
}),
},
infoText: (_data, _matches, output) => output.text(),
outputStrings: {
text: {
Expand Down
5 changes: 3 additions & 2 deletions 02-arr/raid/t1.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,11 @@ Options.Triggers.push({
{
id: 'T1 Slime Timer First',
type: 'GameLog',
netRegex: NetRegexes.message({
netRegex: {
line: 'The Allagan megastructure will be sealed off.*?',
code: Util.gameLogCodes.message,
capture: false,
}),
},
delaySeconds: 35,
suppressSeconds: 5,
infoText: (_data, _matches, output) => output.text(),
Expand Down
6 changes: 5 additions & 1 deletion 02-arr/raid/t8.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ Options.Triggers.push({
{
id: 'T8 Landmine Start',
type: 'GameLog',
netRegex: NetRegexes.message({ line: 'Landmines have been scattered.*?', capture: false }),
netRegex: {
line: 'Landmines have been scattered.*?',
code: Util.gameLogCodes.message,
capture: false,
},
alertText: (_data, _matches, output) => output.text(),
run: (data) => data.landmines = {},
outputStrings: {
Expand Down
6 changes: 5 additions & 1 deletion 03-hw/alliance/dun_scaith.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,11 @@ Options.Triggers.push({
// However, the RP text seems to be the only indicator.
id: 'Dun Scaith Shadow Links',
type: 'GameLog',
netRegex: NetRegexes.message({ line: 'Shadows gather on the floor.*?', capture: false }),
netRegex: {
line: 'Shadows gather on the floor.*?',
code: Util.gameLogCodes.message,
capture: false,
},
suppressSeconds: 5,
response: Responses.stopMoving(),
},
Expand Down
16 changes: 11 additions & 5 deletions 03-hw/alliance/weeping_city.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,21 @@ Options.Triggers.push({
// only when that boss is in progress.
id: 'Weeping City HeadMarker Arachne',
type: 'GameLog',
netRegex: NetRegexes.message({
netRegex: {
line: 'The Queen\'s Room will be sealed off.*?',
code: Util.gameLogCodes.message,
capture: false,
}),
},
run: (data) => data.arachneStarted = true,
},
{
id: 'Weeping City HeadMarker Ozma',
type: 'GameLog',
netRegex: NetRegexes.message({ line: 'The Gloriole will be sealed off.*?', capture: false }),
netRegex: {
line: 'The Gloriole will be sealed off.*?',
code: Util.gameLogCodes.message,
capture: false,
},
run: (data) => {
data.arachneStarted = false;
data.ozmaStarted = true;
Expand All @@ -89,10 +94,11 @@ Options.Triggers.push({
{
id: 'Weeping City HeadMarker Calofisteri',
type: 'GameLog',
netRegex: NetRegexes.message({
netRegex: {
line: 'The Tomb Of The Nullstone will be sealed off.*?',
code: Util.gameLogCodes.message,
capture: false,
}),
},
run: (data) => {
data.ozmaStarted = false;
data.calStarted = true;
Expand Down
Loading

0 comments on commit f0e729b

Please sign in to comment.