Skip to content

Commit

Permalink
raidboss: update seal triggers to SystemLogMessage (#5965)
Browse files Browse the repository at this point in the history
This is related to #4201.
  • Loading branch information
quisquous authored Dec 1, 2023
1 parent 6a3869f commit bf5b96c
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 51 deletions.
10 changes: 3 additions & 7 deletions ui/raidboss/data/02-arr/raid/t1.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Conditions from '../../../../../resources/conditions';
import { Responses } from '../../../../../resources/responses';
import Util from '../../../../../resources/util';
import ZoneId from '../../../../../resources/zone_id';
import { RaidbossData } from '../../../../../types/data';
import { TriggerSet } from '../../../../../types/trigger';
Expand Down Expand Up @@ -88,12 +87,9 @@ const triggerSet: TriggerSet<Data> = {
},
{
id: 'T1 Slime Timer First',
type: 'GameLog',
netRegex: {
line: 'The Allagan megastructure will be sealed off.*?',
code: Util.gameLogCodes.message,
capture: false,
},
type: 'SystemLogMessage',
// The Allagan megastructure will be sealed off
netRegex: { id: '7DC', param1: '379', capture: false },
delaySeconds: 35,
suppressSeconds: 5,
infoText: (_data, _matches, output) => output.text!(),
Expand Down
28 changes: 9 additions & 19 deletions ui/raidboss/data/03-hw/alliance/weeping_city.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Conditions from '../../../../../resources/conditions';
import { Responses } from '../../../../../resources/responses';
import Util from '../../../../../resources/util';
import ZoneId from '../../../../../resources/zone_id';
import { RaidbossData } from '../../../../../types/data';
import { TriggerSet } from '../../../../../types/trigger';
Expand Down Expand Up @@ -83,35 +82,26 @@ const triggerSet: TriggerSet<Data> = {
// Because of this, we restrict those triggers for each boss to activate
// only when that boss is in progress.
id: 'Weeping City HeadMarker Arachne',
type: 'GameLog',
netRegex: {
line: 'The Queen\'s Room will be sealed off.*?',
code: Util.gameLogCodes.message,
capture: false,
},
type: 'SystemLogMessage',
// The Queen's Room will be sealed off
netRegex: { id: '7DC', param1: '6E0', capture: false },
run: (data) => data.arachneStarted = true,
},
{
id: 'Weeping City HeadMarker Ozma',
type: 'GameLog',
netRegex: {
line: 'The Gloriole will be sealed off.*?',
code: Util.gameLogCodes.message,
capture: false,
},
type: 'SystemLogMessage',
// The Gloriole will be sealed off
netRegex: { id: '7DC', param1: '6E5', capture: false },
run: (data) => {
data.arachneStarted = false;
data.ozmaStarted = true;
},
},
{
id: 'Weeping City HeadMarker Calofisteri',
type: 'GameLog',
netRegex: {
line: 'The Tomb Of The Nullstone will be sealed off.*?',
code: Util.gameLogCodes.message,
capture: false,
},
type: 'SystemLogMessage',
// The Tomb Of The Nullstone will be sealed off
netRegex: { id: '7DC', param1: '6E6', capture: false },
run: (data) => {
data.ozmaStarted = false;
data.calStarted = true;
Expand Down
18 changes: 6 additions & 12 deletions ui/raidboss/data/04-sb/eureka/eureka_hydatos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,22 +91,16 @@ const triggerSet: TriggerSet<Data> = {
},
{
id: 'BA Seal',
type: 'GameLog',
netRegex: {
line: '.* will be sealed off.*?',
code: Util.gameLogCodes.message,
capture: false,
},
type: 'SystemLogMessage',
// "will be sealed off"
netRegex: { id: '7DC', capture: false },
run: (data) => data.sealed = true,
},
{
id: 'BA Clear Data',
type: 'GameLog',
netRegex: {
line: '.*is no longer sealed.*?',
code: Util.gameLogCodes.message,
capture: false,
},
type: 'SystemLogMessage',
// "is no longer sealed"
netRegex: { id: '7DE', capture: false },
run: (data) => {
delete data.side;
delete data.mythcall;
Expand Down
19 changes: 6 additions & 13 deletions ui/raidboss/data/06-ew/dungeon/the_sildihn_subterrane.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Outputs from '../../../../../resources/outputs';
import { Responses } from '../../../../../resources/responses';
import Util from '../../../../../resources/util';
import ZoneId from '../../../../../resources/zone_id';
import { RaidbossData } from '../../../../../types/data';
import { TriggerSet } from '../../../../../types/trigger';
Expand Down Expand Up @@ -122,12 +121,9 @@ const triggerSet: TriggerSet<Data> = {
triggers: [
{
id: 'Sildihn Geryon Seal Left Mechs',
type: 'GameLog',
netRegex: {
line: 'The Silt Pump will be sealed off.*?',
code: Util.gameLogCodes.message,
capture: false,
},
type: 'SystemLogMessage',
// The Silt Pump will be sealed off
netRegex: { id: '7DC', param1: '1068', capture: false },
// May be overwritten by Runaway Sludge below.
run: (data) => data.catapultMechs = leftDoorYesPump,
},
Expand All @@ -154,12 +150,9 @@ const triggerSet: TriggerSet<Data> = {
},
{
id: 'Sildihn Geryon Seal Right Mechs',
type: 'GameLog',
netRegex: {
line: 'The Settling Basin will be sealed off.*?',
code: Util.gameLogCodes.message,
capture: false,
},
type: 'SystemLogMessage',
// The Settling Basin will be sealed off
netRegex: { id: '7DC', param1: '106D', capture: false },
// May be overwritten by Suddenly Sewage below.
run: (data) => data.catapultMechs = rightDoorNoCeruleum,
},
Expand Down

0 comments on commit bf5b96c

Please sign in to comment.