Skip to content

resources: add data.party.isLimitedJob and update triggers#1028

Draft
Bing-su wants to merge 3 commits intoOverlayPlugin:mainfrom
Bing-su:fix/party-isLimitedJob
Draft

resources: add data.party.isLimitedJob and update triggers#1028
Bing-su wants to merge 3 commits intoOverlayPlugin:mainfrom
Bing-su:fix/party-isLimitedJob

Conversation

@Bing-su
Copy link
Collaborator

@Bing-su Bing-su commented Mar 14, 2026

Triggers written for Blue Mages are now modified to function for all Limited Job targets.
I also included a refactoring that adds nameToJob_ to PartyTracker.

Bing-su added 3 commits March 14, 2026 22:26
Introduces PartyTracker.isLimitedJob(name) which resolves the player's job and uses Util.isLimitedJob to determine if it's a limited job.
Introduce a nameToJob_ map in PartyTracker to store each member's job name, populate it when parsing party data, reset it with the tracker, and update jobName(name) to return from the map.
@cactbotbot
Copy link
Collaborator

cactbotbot commented Mar 14, 2026

@Bing-su Thanks for your contribution! 🌵🚀

@github-actions github-actions bot added resources /resources raidboss /ui/raidboss module oopsy /ui/oopsyraidsy module needs-review Awaiting review labels Mar 14, 2026
Comment on lines +655 to 656
// This trigger is intended only for Blue Mage, so do not use `data.party.isLimitedJob` here.
condition: (data, matches) => data.me === matches.target && data.job === 'BLU',
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

As this is a Blue Mage-specific trigger, I left it as it was and simply added a comment.

@github-actions github-actions bot removed the needs-review Awaiting review label Mar 14, 2026
Comment on lines +367 to +371
// LimitedJob tends to avail here, so call out your friend.
if (data.party.isLimitedJob(data.me)) {
const [otherPlayer] = data.formlessTargets.filter((x) => x !== data.me);
return {
alertText: output.formlessBusterBLU!({ player: data.party.member(otherPlayer) }),
alertText: output.formlessBusterLimitedJob!({ player: data.party.member(otherPlayer) }),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I changed both the comment and the trigger name here.

@Bing-su Bing-su changed the title resources: add isLimitedJob to PartyTracker and update triggers resources: add data.party.isLimitedJob and update triggers Mar 14, 2026
@github-actions github-actions bot added the needs-review Awaiting review label Mar 14, 2026
@xiashtra
Copy link
Collaborator

These changes are very premature right now when we don't know what capabilities BST will have yet, nor any information on if and how it will function in group content.

@github-actions github-actions bot removed the needs-review Awaiting review label Mar 17, 2026
@Bing-su Bing-su marked this pull request as draft March 17, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oopsy /ui/oopsyraidsy module raidboss /ui/raidboss module resources /resources

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants