Skip to content

Commit

Permalink
raidboss: o10s flip triggers
Browse files Browse the repository at this point in the history
There are untested, but the normal mode worked.

Thanks for the spin table of ids, xeph!
  • Loading branch information
quisquous committed Sep 24, 2018
1 parent 61f4cd0 commit 8d3c411
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions ui/raidboss/data/triggers/o10s.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,74 @@
en: 'Death From Above',
},
},
{
// Spin Table
// 31AC + 31AE = 31B2 (horiz + horiz = out)
// 31AC + 31B0 = 31B4 (horiz + vert = in)
// 31AD + 31AE = 31B3 (vert + horiz = x)
// 31AD + 31B0 = 31B5 (vert + vert = +)
id: 'O10S Spin Cleanup',
// 16 if it doesn't hit anybody, 15 if it does.
// Also, some log lines are inconsistent here and don't always list
// Midgardsormr's name and are sometimes blank.
regex: /1[56]:\y{ObjectId}:(?:Midgardsormr|):31B[2345]:/,
run: function(data) {
delete data.lastSpinWasHorizontal;
},
},
{
id: 'O10N Horizontal Spin 1',
regex: /15:\y{ObjectId}:Midgardsormr:31AC:/,
infoText: {
en: 'Next Spin: In/Out',
},
run: function(data) {
data.lastSpinWasHorizontal = true;
},
},
{
id: 'O10N Vertical Spin 1',
regex: /15:\y{ObjectId}:Midgardsormr:31AD:/,
infoText: {
en: 'Next Spin: Cross/Plus',
},
run: function(data) {
data.lastSpinWasHorizontal = false;
},
},
{
id: 'O10N Horizontal Spin 2',
regex: /15:\y{ObjectId}:Midgardsormr:31AE:/,
condition: function(data) {
return data.lastSpinWasHorizontal !== undefined;
},
alertText: function(data) {
if (data.lastSpinWasHorizontal) {
return {
en: 'Get Out',
};
}
return {
en: 'Go To Cardinals',
};
},
},
{
id: 'O10N Vertical Spin 2',
regex: /15:\y{ObjectId}:Midgardsormr:31B0:/,
condition: function(data) {
return data.lastSpinWasHorizontal !== undefined;
},
alertText: function(data) {
if (data.lastSpinWasHorizontal) {
return {
en: 'Get In',
};
}
return {
en: 'Go To Corners',
};
},
},
],
}];

2 comments on commit 8d3c411

@unfaiyted
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mention the callout not working: regex: / 14:31AA:Midgardsormr starts using Tail End on (\y{Name})/,

I believe from my testing it is the extra space. I corrected in the one I was working on when trying to do this spin/flip thing you also coded here :D

@quisquous
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh. That's very curious. I put the extra space as a way to say "the start of the line", since log formats are "[time] ability_id:etcetc" so that space is there between the ] and the ability id. I'll give that a try, but that would be very curious.

Sorry also to step on your toes with the spin/flip thing. I had a tiny bit of extra time last night, so I gave o10n a try and copied and pasted into o10s.

Please sign in to comment.